Use Visor

Issues and notifications

An issue opens when a process can’t start, exits when it shouldn’t, or keeps restarting, and when supervisord stops answering. Visor records every issue. It sends notifications only for the configs you watch.

Kinds of issue

Kinds of issue
KindOpens whenCloses
Can’t startA process reaches FATAL: supervisord gave up starting it. It won’t start again by itself, even with autorestart=true.By itself, once the process has stayed running for a minute.
Exited unexpectedlyA process exits with a code its config doesn’t expect. A planned exit, such as a queue worker reaching its --max-time, opens nothing.When you resolve it, or when its program is removed.
Crash loopsupervisord restarts a process again and again: 5 times within 10 minutes by default.When you resolve it, or when its program is removed.
supervisord unreachableTwo checks in a row get no answer, or supervisord turns down the password. On a server whose SSH connection dropped, it says Can’t reach the server over SSH instead.When supervisord answers again.

Changes you make through Visor don’t open issues: a stop you asked for isn’t a crash. Starting a broken program still opens one.

Each server tab has its own Issues page. When its connection comes back, the notification list says Reconnected to the server, with how long it was down.

The Issues page

Open it from the sidebar or with ⌘2. Open, Resolved and All split the list. Each issue shows its kind, what happened, when it started, how long it lasted and its status:

  • Open, Open · notified or Open · not watched
  • Resolved by itself
  • Marked resolved by you
  • Dismissed
The Issues page on its Open tab, listing a crash loop, an unexpected exit and two can’t-start issues, each with its process, when it started and its statusThe Issues page on its Open tab, listing a crash loop, an unexpected exit and two can’t-start issues, each with its process, when it started and its status

Search, filter by kind and date (last 24 hours, 7 days, 30 days or a custom range), or tick Notified only. Logs opens the process’s log. Resolve closes an issue, and Visor won’t reopen it for the same failure. Resolved issues can be deleted.

The supervisord log tab shows supervisord’s own log. Resolved issues are kept for 90 days by default.

Watching a config

Every config file has a Watch bell: in the dashboard’s Watch column, on its page and in the menu-bar popover. Click it to switch. New configs are watched.

  • Watching (a filled bell): Visor notifies you when a process in this file fails.
  • Not watching (a crossed-out bell in the popover, an empty one on the dashboard): Visor stays quiet about this file. Its issues are still recorded.

supervisord not answering is about every config, so it notifies you whatever you watch.

Notifications

A notification names the process and what happened: mailer can’t start, mailer exited unexpectedly, mailer keeps restarting or supervisord isn’t responding. When supervisord turns down the password, it says supervisord wants a password; when a server’s SSH connection dropped, Can’t reach the server over SSH. A severity mark comes first. The line under it gives the config file and the reason, for a repeat with a count such as the 3rd time in 10 minutes.

Visor shows at most one banner a minute for the same process and kind, so a flapping process doesn’t flood you. Every notification also goes into Visor’s own list: the bell in the sidebar and the popover, with Unread, All and Mark all as read.

Notifications from a server name it, and clicking one opens its tab.

Changes made outside Visor, such as a restart from supervisorctl or a deploy script, notify you too, grouped, and each kind can be muted. See Activity.

In Settings, Send notifications turns them all off, and four boxes pick the kinds: a process can’t start, exits unexpectedly, keeps restarting, or supervisord stops responding. macOS asks for permission the first time Visor runs.

Crash loops

A crash loop is a process that keeps dying and coming back. Visor counts the restarts supervisord makes on its own, and opens an issue after 5 within 10 minutes. Change both numbers under Open a crash-loop issue after in Settings: from 2 to 100 restarts, within 1 minute to 24 hours.

Restarts you ask for don’t count, and neither do restarts after someone stops a process on purpose with supervisorctl. While the loop goes on, the same issue counts each new restart instead of opening another.

To find out why a program won’t start, see Troubleshooting.

Edit this page on GitHub

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.