Bench Start Error - Debian 7 Test

I’m attempting to understand some of the errors I get better, so I created a new VM of Debian 7.

What I’ve done:

wget https://raw.githubusercontent.com/frappe/bench/master/playbooks/install.py
sudo python install.py --production

This is the result of bench start… … where did I go wrong?

Frappe/ERPNext has been successfully installed!
cgp@debian:~$ cd /home/frappe/frappe-bench
cgp@debian:/home/frappe/frappe-bench$ bench start
Traceback (most recent call last):
  File "/usr/local/bin/bench", line 11, in <module>
	load_entry_point('bench', 'console_scripts', 'bench')()
  File "/home/frappe/.bench/bench/cli.py", line 40, in cli
	bench_command()
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 716, in __call__
	return self.main(*args, **kwargs)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 696, in main
	rv = self.invoke(ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 1057, in invoke
	Command.invoke(self, ctx)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 889, in invoke
	return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python2.7/dist-packages/click/core.py", line 534, in invoke
	return callback(*args, **kwargs)
  File "/home/frappe/.bench/bench/commands/__init__.py", line 21, in bench_command
	setup_logging(bench_path=bench_path)
  File "/home/frappe/.bench/bench/utils.py", line 265, in setup_logging
	hdlr = logging.FileHandler(log_file)
  File "/usr/lib/python2.7/logging/__init__.py", line 901, in __init__
	StreamHandler.__init__(self, self._open())
  File "/usr/lib/python2.7/logging/__init__.py", line 924, in _open
	stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: '/home/frappe/frappe-bench/logs/bench.log'


It seems permission issue.

Try by switching to frappe user su frappe and go to frappe-bench and run bench start