Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memmon: socket.error: [Errno 13] Permission denied #122

Open
Matvik opened this issue Jul 29, 2019 · 3 comments
Open

Memmon: socket.error: [Errno 13] Permission denied #122

Matvik opened this issue Jul 29, 2019 · 3 comments
Labels

Comments

@Matvik
Copy link

Matvik commented Jul 29, 2019

Memmon in unable to start, repeated error in memmon-stderr---supervisor-IgIsou.log:

Checking programs yii-queue-worker=1073741824
Traceback (most recent call last):
File "/usr/local/bin/memmon", line 11, in
sys.exit(main())
File "/usr/local/lib/python2.7/dist-packages/superlance/memmon.py", line 418, in main
memmon.runforever()
File "/usr/local/lib/python2.7/dist-packages/superlance/memmon.py", line 152, in runforever
infos = self.rpc.supervisor.getAllProcessInfo()
File "/usr/lib/python2.7/xmlrpclib.py", line 1243, in call
return self.__send(self.__name, args)
File "/usr/lib/python2.7/xmlrpclib.py", line 1602, in __request
verbose=self.__verbose
File "/usr/lib/python2.7/dist-packages/supervisor/xmlrpc.py", line 509, in request
self.connection.request('POST', handler, request_body, self.headers)
File "/usr/lib/python2.7/httplib.py", line 1042, in request
self._send_request(method, url, body, headers)
File "/usr/lib/python2.7/httplib.py", line 1082, in _send_request
self.endheaders(body)
File "/usr/lib/python2.7/httplib.py", line 1038, in endheaders
self._send_output(message_body)
File "/usr/lib/python2.7/httplib.py", line 882, in _send_output
self.send(msg)
File "/usr/lib/python2.7/httplib.py", line 844, in send
self.connect()
File "/usr/lib/python2.7/dist-packages/supervisor/xmlrpc.py", line 530, in connect
self.sock.connect(self.socketfile)
File "/usr/lib/python2.7/socket.py", line 228, in meth
return getattr(self._sock,name)(*args)
socket.error: [Errno 13] Permission denied

Supervisor version 3.3.1, Debian 9.

@Matvik
Copy link
Author

Matvik commented Aug 9, 2019

Any news?

@cosmin8905
Copy link

Hey guys, any word on this or any potential workaround ? FYI tried changing the local port to something different but getting the same Permission denied socket error

@al2m4n
Copy link

al2m4n commented Sep 18, 2023

In my case, it was a socket permission error for the user I am running the supervisor.
added chown={your_user}:{your_group} to the [unix_http_server] section in /etc/supervisor/supervisord.conf and it's working for me now.
Change your_user and your_group with your credentials.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

4 participants