Reference
Troubleshooting
Most sections start with the error your terminal prints, from supervisorctl or supervisord, then say what Visor shows and how to fix it, with or without Visor. In Visor, the dashboard and the menu-bar popover say what’s wrong in one line, and Open Doctor walks you through the fix (see First run and Doctor). Visor keeps checking in the background, so many problems clear by themselves once fixed. Show details has the exact error.
supervisord isn’t running
supervisorctl prints one of these:
unix:///tmp/supervisor.sock no such fileunix:///tmp/supervisor.sock refused connectionThe address is the serverurl that supervisorctl uses, so yours may be another socket or http://localhost:9001. no such file means the socket isn’t there. refused connection means the socket or port is there, but nothing answers on it. Either way, supervisord is stopped, or supervisorctl reads a different config than supervisord.
Start supervisord with your config:
supervisord -c /opt/homebrew/etc/supervisord.confWith Homebrew, brew services start supervisor also starts it at login. A Linux package runs it as a service: sudo systemctl start supervisor (on Fedora, supervisord). If supervisorctl still can’t connect, point it at the same config: supervisorctl -c /opt/homebrew/etc/supervisord.conf status.
In Visor, the dashboard says Nothing answers at followed by the socket or address.
- Open Doctor and click Start supervisord. Visor starts it as you, never with sudo.
- If your config has
nodaemon=true, start supervisord the way you set it up, or run the command Doctor shows. - If it doesn’t start, Doctor shows what supervisord printed and the end of its log. Fix what it names, then Check again.
If supervisord is running but slow to answer, Visor says supervisord isn’t answering instead, and tries again on its next check.
For every cause of these two errors, including a deleted socket and a supervisorctl that reads another config, see supervisor.sock: no such file.
Permission denied on the socket
supervisorctl has no message of its own for this, so it prints the Python error:
error: <class 'PermissionError'>, [Errno 13] Permission denied: file: /usr/local/Cellar/supervisor/4.2.5_1/libexec/lib/python3.13/site-packages/supervisor/xmlrpc.py line: 557The path after file: and the line number depend on where supervisord is installed and its version. The socket isn’t open to your user. Usually supervisord was started with sudo, so root owns the socket. ls -l /tmp/supervisor.sock (your socket path) shows who owns it.
Fix it in one of two ways, then restart supervisord:
- Stop the copy root started and start it again as yourself.
- Open the socket to your user with
chown=andchmod=under[unix_http_server].
In Visor, the dashboard says supervisord won’t let Visor in. Doctor offers three fixes: run supervisord as yourself (recommended), open the socket to your user under [unix_http_server], or use a local port with a password. It shows the commands and lines to add; it never runs sudo or changes the files. On Linux, the fix is to open the socket to a supervisor group; see Install on Linux.
supervisord wants a password
supervisorctl prints:
Server requires authenticationIn its interactive shell, it then asks for Username: and Password:. When you run one command, such as supervisorctl status, supervisorctl 4.2.5 adds a second line with 401 Unauthorized in it.
supervisord is running, but it turned down the username and password. They are set by username= and password= under [unix_http_server] or [inet_http_server]. Put the same two lines under [supervisorctl], or pass them with supervisorctl -u and -p.
In Visor, the dashboard says supervisord wants a password. Open Settings › Connection, enter the username and password from your supervisord.conf, and click Save and reconnect. Leave the username empty to use the [supervisorctl] credentials in the config.
If Visor says Visor can’t read the saved password, macOS didn’t let it read your Keychain. Allow Visor to use the saved password, or enter it again in Settings.
Config not found
supervisord and supervisorctl print this when they find no config:
Error: No config file found at default paths (...); use the -c option to specify a config file at a different pathThe list in brackets is every place they looked, and it depends on where supervisord is installed. Pass your config with -c, as in supervisord -c /path/to/supervisord.conf.
Doctor says Where is your config? when supervisord is installed but its config isn’t in any of the usual places:
/opt/homebrew/etc/supervisord.conf
/usr/local/etc/supervisord.conf
/etc/supervisord.conf
/etc/supervisor/supervisord.confType the path or click Choose…, then Use this config. You can change it later under Config file in Settings. A file without any supervisord sections isn’t accepted.
Can’t add or edit configs
Doctor says Visor can watch, but not edit when the folder your program files live in isn’t writable for you. Everything else works. Run the command Doctor shows to make the folder yours, or create it if it doesn’t exist, then check again.
A program won’t start
supervisorctl start myapp prints:
myapp: ERROR (spawn error)supervisorctl status then shows the program in BACKOFF while supervisord tries again, and in FATAL once it gives up:
myapp BACKOFF Exited too quickly (process log may have details)myapp FATAL Exited too quickly (process log may have details)myapp is your program’s name. When supervisord can’t even run the command, the reason after the state is different, such as can't find command '/opt/myapp/bin/server'.
supervisord counts a start as good once the program has stayed up for startsecs seconds (1 by default). If it exits sooner, supervisord waits a second longer each time and tries again, up to startretries more times (3 by default). Then it gives up and logs gave up: myapp entered FATAL state, too many start retries too quickly. A FATAL program stays stopped until you start it.
The reason is in the program’s own output. Read the end of its stderr:
supervisorctl tail myapp stderrWith redirect_stderr=true, the errors are in the stdout log: supervisorctl tail myapp. The full file is the one stderr_logfile= names. supervisorctl maintail shows supervisord’s own log. Common causes:
- a wrong path in
command=, or adirectory=that doesn’t exist; - a
user=that can’t read the files or run the command; - an environment variable the program needs, which supervisord doesn’t set;
- a program that sends itself to the background and exits. Run it in the foreground instead.
Fix the cause, then supervisorctl start myapp. A program that is meant to exit quickly, such as a one-off job, needs startsecs=0. FATAL Exited too quickly goes through the causes one by one.
In Visor, the config’s page opens with the Last error (see A config’s page). It shows supervisord’s reason and how many times it tried, for example Exited too quickly (process log may have details). supervisord gave up after 4 start attempts. That number is startretries plus one. While supervisord is still retrying, it ends with supervisord is retrying. instead. Under it are the last lines of stderr, with Restart, Open stderr log and Open in editor. When a line of the config caused it, Caused by line links to that line and its fix. A program that reaches FATAL also opens a Can’t start issue (see Kinds of issue).
A program isn’t loaded
supervisorctl start myapp or supervisorctl status myapp prints:
myapp: ERROR (no such process)For a group, it says ERROR (no such group). supervisord hasn’t loaded that program, usually because its file was added or renamed after supervisord read its config. Check the name with supervisorctl status, then load the change:
supervisorctl reread
supervisorctl updateIf it still isn’t there, check that the files= line under [include] matches the file.
In Visor, the programs of a file supervisord hasn’t loaded show as Not loaded, with a Load button. For a file it already runs, apply the change: applying is the same as supervisorctl update (see How applying works).
A server refuses the login
The report says The server refused the login for deploy. Check the user, password or key. The user, password or key on the Add a server form doesn’t work on that server. Try the same login with ssh in a terminal, then fix the form and click Test again.
A key needs its passphrase
The report says The key file is locked with a passphrase. Enter the passphrase on the server’s form, or add the key to your SSH agent:
ssh-add --apple-use-keychain ~/.ssh/id_ed25519On Linux, leave out --apple-use-keychain. Visor only blames the passphrase when your SSH agent doesn’t hold that key.
A changed host key
Visor refuses a server whose host key changed since you trusted it, because that is what a man-in-the-middle looks like. If the server was rebuilt or its key was replaced on purpose, run the command Visor shows to remove the old key. It names the file that holds the old key, with its full path, such as:
ssh-keygen -R 'staging.example.com' -f '/Users/you/.ssh/known_hosts'The old key can be in your own ~/.ssh/known_hosts or in Visor’s list of keys you trusted, known_hosts in its data folder (~/Library/Application Support/Visor on macOS, ~/.config/Visor on Linux). Visor shows the right one.
Then connect again and check the new fingerprint before you trust it.
The server’s socket is closed to its user
The issue says this user isn’t allowed to open its socket (permission denied). A Linux package’s supervisord keeps its socket for root. Turn on Use sudo for the server, or follow the group fix in the server report: let a group use the socket, add the SSH user to it, restart supervisord and check again. Each connection is a new SSH login, so nobody needs to log out.
macOS says Visor can’t be opened
Visor isn’t signed by Apple yet, so the first time you open it, macOS says it can’t check it for malicious software. Open it once as Install on macOS shows, and macOS remembers your choice.
If Doctor says Move Visor to Applications first, quit Visor, drag it into Applications and open it from there. Run from the disk image or Downloads, it can’t open when you log in.
Known limits
A few things don’t work everywhere yet:
- A supervisord run by another user, such as
deploy, can’t be managed in this computer’s tab. Add it as a server instead: Remote servers › Add a server, with hostlocalhostand userdeploy. - If you turn off Visor’s notifications in macOS, nothing is lost: the bell in the sidebar and the popover still show what’s unread.
- On Wayland, the desktop decides where the popover opens, so it can’t sit under the tray icon.
- Workers started through Docker show the Docker client’s CPU and memory, not the container’s.
The full list is in Visor’s known issues.
The text is under CC BY 4.0: reuse it with credit to Touhidur Rahman and a link to this page. The code examples are free to copy.