Hi,
When I create a new app by bench new-app abc.com, this app is made in the apps folder the terminal will run: supervisorctl restart frappe
Error occurs: <class ‘PermissionError’>, [Errno 13] Permission denied: file: /usr/lib/python3/dist-packages/supervisor/xmlrpc.py line: 560
I checked in erpnext forum but there is no solution.
Is there any way to fix that?
Please help.
Thanks
peterg
3
What have you done to troubleshoot? Did you check permissions on the file in question?
athul
4
Can you try the same with sudo?
I know this isn’t the best solution but it works 
mainul
5
@Duc_Nguyen Please follow this.
nano /etc/supervisor/supervisord.conf
add this your frappe’s user under this section. in chown
key
[unix_http_server]
file = /var/run/supervisor.sock ; (the path to the socket file)
chmod = 0760
chown = frappe:frappe; this is you user name.
after this.
restart supervisor service.
sudo service supervisor restart
2 Likes