Hi Everyone
Trying to debug the Frappe for the first time, followed this link Pycharm Debugging - #5 by hpema108
put a line break in init.py. The complier breaks fine and I can step through the code. The problem is I am getting
Permission denied: ‘/home/frappeuser/frappe-bench/logs/bench.log’
when I run through __init__py, deleted bench.log and started again still to no avail.
Traceback (most recent call last):
File “/usr/lib/pycharm/helpers/pydev/pydevd.py”, line 1580, in
globals = debugger.run(setup[‘file’], None, None, is_module)
File “/usr/lib/pycharm/helpers/pydev/pydevd.py”, line 964, in run
pydev_imports.execfile(file, globals, locals) # execute the script
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/usr/bin/bench-repo/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 “/usr/bin/bench-repo/bench/commands/init.py”, line 21, in bench_command
setup_logging(bench_path=bench_path)
File “/usr/bin/bench-repo/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/frappeuser/frappe-bench/logs/bench.log’
not sure why. Now I can run bench start fine from frappeuser folder.