[Supervisorctl] Problem in installation

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

Does anybody help?

What have you done to troubleshoot? Did you check permissions on the file in question?

Can you try the same with sudo?

I know this isn’t the best solution but it works :sweat_smile:

@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

1 Like