Hi Team,
I just tried a fresh install on a local hosted vm Ubuntu 14 and Im getting a permission error. I have noticed that the install now puts frappe-bench in /home/frappe which im assuming is my challenge. Im logged in as ‘hemant’ and when I go to the frappe-bench folder as recommended in other post to do the update I get this error:
hemant@ubuntu:/home/frappe/frappe-bench$ bench update
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
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 903, in init
StreamHandler.init(self, self._open())
File “/usr/lib/python2.7/logging/init.py”, line 928, in _open
stream = open(self.baseFilename, self.mode)
IOError: [Errno 13] Permission denied: ‘/home/frappe/frappe-bench/logs/bench.log’
I have tried to add ‘hemant’ to the ‘frappe’ group but still getting this error. I am trying not to run bench command as sudo cause I have tried that in another fresh install and the update works…I think when doing bench as sudo is not right.
Is there a recommendation from a fresh install point of view or additional steps that needed to be done to get this to work. ERPNext works, but the update does not.
awaiting your feedback.
regards
Hemant