skirl

When something does not work

Start with Admin → Diagnostics (admins): it checks the server, the connection from your browser, the push services and every device, and says what to do about each problem. Run checks again after a fix. What each check means: Diagnostics.

  • An error message on screen, or in a script's answer: Error messages explains each one.
  • A message that did not reach a phone: open it; it says what happened on each device, and Delivery and the delivery log says what each answer means.

The commands below use notify.example.com for your server's name: put in your own.

It works on the server but not in my browser#

The container is healthy, and on the server this answers {"healthy":true}:

curl http://localhost:8080/v1/health

but the address does not open in your browser. Check these in order; each has one command and what its answer means.

1. The name points at the wrong place. Ask what the name points at:

dig +short notify.example.com

Behind a Cloudflare Tunnel you get Cloudflare's addresses (such as 104.21.x.x and 172.67.x.x). A private address such as 192.168.1.20 or 10.0.0.5 means a record made by hand is answering instead of the tunnel's: delete it in your DNS provider's records (keep the one the tunnel made, which points at <tunnel ID>.cfargotunnel.com). Behind your own proxy you should get your public address. No answer at all: see the next cause.

2. The name was looked up before it existed, and a DNS server still remembers "no such name". Ask your usual DNS server, then Cloudflare's:

dig notify.example.com
dig @1.1.1.1 notify.example.com

If the first says status: NXDOMAIN and the second gives an address, your DNS server has the earlier "no such name" cached. The AUTHORITY SECTION of the first answer shows the zone's SOA line; its last number is how long such an answer may be kept, in seconds (Cloudflare's is 1800: half an hour). Wait that long, or clear the cache, and restart the router if it is the DNS server. On Linux:

resolvectl flush-caches

On macOS:

sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder

On Windows, in a Command Prompt:

ipconfig /flushdns

3. A network filter blocks the new name. Another site on the same address opens, but this one is cut off while the secure connection is set up:

curl -sv https://notify.example.com/v1/health -o /dev/null

Connection reset by peer or SSL_ERROR_SYSCALL straight after Client hello, while another name on the same server or tunnel opens, means something between you and the server drops this name: a router's or a DNS filter's blocking of new or unknown sites, a company firewall, or the internet provider. To prove it, open the address from another network, such as the phone's mobile data with Wi-Fi off: if it opens there, nothing on the server can fix it. Allow the name in that filter, or ask whoever runs the network to.

4. A container with the same name already exists. Starting Skirl fails, or an old Skirl answers:

docker ps -a --filter name=skirl

More than one line, or an older image or an Exited status, means an earlier container named skirl is still there, and starting Skirl says Conflict. The container name "/skirl" is already in use. Remove the old one; its data stays in its volume, and the new one uses the same volume if it names it:

docker rm -f skirl

A sender gets no message through#

Connect a system waits for a sender's first message and, after two minutes, names these three:

  1. The address is wrong. The sender must use your server's address exactly, https:// included.
  2. The token is missing or wrong. Skirl refuses the message with 401 or 403, and the sender's log or test button says so. Make a new token on the topic's Send to this topic tab and paste it in again; a token limited to another topic is refused too.
  3. The sender cannot reach this server. The sender is on a network that cannot reach that address (a cloud service cannot reach an address that only works at home). Give it an address it can reach, such as the one behind your tunnel or proxy.

To tell them apart, run this health check on the machine that sends:

curl -sS https://notify.example.com/v1/health
{"healthy":true}

That answer means the address is right and this machine reaches it: look at the token (2). A timeout or "could not resolve" is 1 or 3. The tool's own log usually says which too: a 401 or 403 is 2. Any other refusal comes with a code and a reason: Error messages.

The sender says it worked, but nothing shows. A sender whose address names a template with events (Alertmanager, Grafana, GitHub, Gitea, GitLab, Wazuh) also sends the events you did not tick, and Skirl accepts them and drops them: the sender sees success, the topic stays empty. Tick the event in the sender's steps and copy its address again; each sender's page lists its events (Connecting your systems). The Docker companion leaves out the events you did not tick before it sends: Docker containers.

Notifications do not arrive#

  • Open the message. It has a line for each of your devices: received, sent, not confirmed yet, sending, skipped with the reason (such as muted, below topic minimum or quiet hours) or failed with the reason. What to do about each: Delivery and the delivery log.
  • Settings → Devices shows each device's state (Send a test is in Settings → Notifications, on the device itself). Waiting for a notification to arrive: the device is off or its browser closed. Not receiving: the push service dropped it; turn notifications on again there. No device at all: turn notifications on, on that device: Phones and browsers.
  • On an iPhone, notifications come only to Skirl on the Home Screen, not to a Safari tab.
  • Check this device in Settings → Notifications, on the device that gets nothing, says which step fails there and what to do (Check this device).
  • In Admin → Diagnostics, the Push card must show that Google, Mozilla and Apple can be reached: a server that may not open connections to the internet cannot send notifications.

A notification arrives late#

Skirl sends a push the moment a message arrives. When it comes later than that:

  • The push service did not take it at once. Skirl tries again after 5 seconds, 30 seconds and 2 minutes (or when the push service asks, up to 5 minutes), then gives up: failed. Meanwhile the message's line for that device says retrying (attempt 2) and so on.
  • The phone held it. Priority 1 and 2 go to the push service as very low and low urgency, which lets a phone saving its battery keep them until it wakes; priority 4 and 5 go as high. Send what cannot wait at priority 4 or 5.
  • The device was off or offline. The push service keeps the notification until the device is back, for as long as the message is kept, but never more than 3 days.
  • Skirl was restarting. Pushes on their way when it stopped are sent when it starts, if it is back within 10 minutes; older ones fail with server restarted.
  • It was sent for later. A message sent with a delay arrives when it is due. On the topic's page, the Scheduled filter (for those who may send there) shows the ones still waiting.

Quiet hours never delay a notification: during them a message below the priority you let through is not sent at all, and stays in the inbox (Quiet hours).

A notification arrives twice#

  • The message is in the inbox twice. The sender sent it twice: look at its own settings for repeats or retries.
  • Two devices on one phone or computer. Each entry in Settings → Devices gets its own notification: two browsers on one computer, for example. Remove the one you do not want.
  • ntfy's app reads the same topic on that phone: each app shows the message. Remove the topic from one of them (ntfy's apps and tools).

A message that replaces an earlier one (the same sequence id) replaces its notification too, rather than adding one.

The inbox does not update by itself#

The app keeps a live connection to Skirl and shows new messages, read and unread, and other changes at once, on every device you have open. While that connection is cut, the app fetches what is on screen every 30 seconds instead, so changes show, but late; a tab hidden for more than a minute fetches again when you come back to it.

When it happens all the time, a proxy is usually holding the live connection back or cutting it. Admin → Diagnostics shows it on the Live connection card (Held back by the proxy), with the lines to add to your proxy: Diagnostics. The tested setups for each proxy are in the reverse proxy guide.

I was signed out#

A session ends, and the app opens the sign-in page, when:

  • you did not use Skirl in that browser for about 30 days;
  • your password was changed: by you on another device (every session but that one ends) or by an admin (every session ends);
  • an admin used Sign out everywhere, disabled you or deleted you (People and roles);
  • an admin turned proxy mode off, or the proxy's address is no longer among the trusted ones, while you use Skirl over HTTPS: Skirl no longer sees the connection as HTTPS and looks for another sign-in cookie. Sign in again, and have an admin check the HTTPS card in Admin → Diagnostics.

Sign out in one browser ends only that session; your other devices stay signed in.

The setup wizard says a connection check failed#

The wizard's step 3 tests HTTPS, the forwarded headers, WebSockets and streaming from your browser through your proxy, names the proxy, and shows the lines to add for it. Admin → Diagnostics runs the same tests later. The tested setups for nginx, Caddy, Traefik and Cloudflare Tunnel are in the installation guide and the reverse proxy guide.

This page on GitHub