Tag Archives: socket.py

error: <class ‘OSError‘>, [Errno 97] Address family not supported by protocol

Problem description

Use supervisor to host the process, and use supervisorctl to report an error:

[~]$ supervisorctl status
error: <class 'OSError'>, [Errno 97] Address family not supported by protocol: file: /home/miniconda3/envs/open3d/lib/python3.7/socket.py line: 151
[~]$ 
[~]$ supervisorctl start all
error: <class 'OSError'>, [Errno 97] Address family not supported by protocol: file: /home/miniconda3/envs/open3d/lib/python3.7/socket.py line: 151

Cause of problem

The commands used when starting supervisor are:

$ supervisord -c /etc/supervisord.d/supervisord.conf

That is:
the configuration file supervisor.conf is placed under the path /etc/Supervisor. D/,
this path is not the built-in path of supervisor CTL .

Solution

    execute the relevant commands of supervisorctl at the path where the file supervisord. Conf is stored; Place the file supervisor.conf in the default path of supervisor CTL , for example: /etc