Anaconda Repository version: 2.20 and above.
Issues:
http://localhost:9001 refused connection
unix://tmp/supervisor.sock no such file
These errors may occur when starting up Repository using supervisorctl.
Solutions:
If Repository is not accessible from the UI, you can check the status with the following command:
supervisorctl status
NOTE: Run as the anaconda-server or binstar user depending on your version.
Verify that the supervisord.conf file exists. On most installations it is located in either ~/repo/etc/supervisord.confon versions 2.27 and above or ~/miniconda2/etc/supervisord.confon versions 2.26 or below.
To find the paths that are checked:
supervisord
If the file exists, point supervisord to the full path of the supervisord.conf file and then start the services with supervisorctl:
supervisord -c /home/anaconda-server/repo/etc/supervisord.conf
supervisorctl restart all
If the supervisord.conf file does not exist you can recreate it with the following command:
anaconda-server-install-supervisord-config.sh
supervisorctl restart all
Alternate Solution:
If the above solutions have not resolved the issue, the sock file may have been corrupted. Check the supervisor.sock file for the socket attribute specified by the s at the beginning of the permissions with the following command:
ls -ls /home/anaconda-server/repo/*.sock
If there is no s and only a -, run:
supervisorctl stop all
rm -rf /home/anaconda-server/repo/etc/supervisor.sock
supervisord -c /home/anaconda-server/repo/etc/supervisord.conf
supervisorctl restart all