Hello. I am using erp next with apps.
I am trying to update my bench apps with bench update command. But I got this error:
user@ubuntu:/home/frappe/frappe-bench/apps/desk$ bench update
Traceback (most recent call last):
File "/usr/local/bin/bench", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.10/dist-packages/bench/cli.py", line 77, in cli
logger = setup_logging()
File "/usr/local/lib/python3.10/dist-packages/bench/utils/__init__.py", line 185, in setup_logging
hdlr = logging.FileHandler(log_file)
File "/usr/lib/python3.10/logging/__init__.py", line 1169, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python3.10/logging/__init__.py", line 1201, in _open
return open_func(self.baseFilename, self.mode,
PermissionError: [Errno 13] Permission denied: '/home/frappe/frappe-bench/logs/bench.log'
How can I solve this issue?
NCP
2
Hi @solution,
Please bench update command on frappe-bench directory.
/home/frappe/frappe-bench$ bench update
apply and check it.
Thank You!
1 Like
Surely I tried
user@ubuntu:/home/frappe/frappe-bench$ bench update
Traceback (most recent call last):
File "/usr/local/bin/bench", line 8, in <module>
sys.exit(cli())
File "/usr/local/lib/python3.10/dist-packages/bench/cli.py", line 77, in cli
logger = setup_logging()
File "/usr/local/lib/python3.10/dist-packages/bench/utils/__init__.py", line 185, in setup_logging
hdlr = logging.FileHandler(log_file)
File "/usr/lib/python3.10/logging/__init__.py", line 1169, in __init__
StreamHandler.__init__(self, self._open())
File "/usr/lib/python3.10/logging/__init__.py", line 1201, in _open
return open_func(self.baseFilename, self.mode,
PermissionError: [Errno 13] Permission denied: '/home/frappe/frappe-bench/logs/bench.log'
NCP
4
Please use sudo and then check it.
/home/frappe/frappe-bench$ sudo bench update