Diagnostics
Admin → Diagnostics checks that Skirl works from end to end: the database, the way from your browser through any proxy, the push services that carry notifications, and every person's devices. Each problem says what was found, what it means and what to do. After a fix, Run checks again.
Most of the time the line under the title says "The server checks pass. The connection checks from this browser pass." When it says a check needs attention, it names its card: open that card with What to do and find the check below.
The Diagnostics page#
The line under the title sums it up in two parts:
- the server checks: "The server checks pass.", "1 server check needs attention: Devices." (it names the cards), "Checking the server…", and "1 person is not receiving notifications." when someone has no device receiving. Admin → Overview says exactly the same (Overview);
- the connection checks from this browser: "The connection checks from this browser pass.", or "1 connection check from this browser needs attention: HTTPS."
Next to it: when the server last checked, and Run checks again.
Six cards follow, each the worst of the checks behind it; every check has one. A card with a problem has What to do, which opens those checks with their fixes (Hide folds them):
| Card | Says | The checks behind it |
|---|---|---|
| Database | Writable or Not writable, with the database file | The database is writable |
| HTTPS | Valid certificate, Plain HTTP or Not passed on | HTTPS is in use, The server knows you use HTTPS, This is the public address |
| Live connection | Direct, Passing through proxy or Held back by the proxy | Live connection gets through, Messages stream without delay, The proxy passes the address on, Visitor addresses are passed through |
| Push | Keys in place or Keys not usable, and whether Apple, Google and Mozilla are reachable | Push keys are in place, Push services answer, The clocks agree |
| Devices | Everyone receiving, or how many people (or devices) are not receiving, with how many devices are receiving, waiting and failing, and how many need to open Skirl once to update (The devices list) | Every person has a device receiving |
| Deliveries | Getting through, Notifications failing, None sent, None due or Nothing to send, with the last 24 hours' notifications | Notifications are getting through |
Below the cards: the devices list, Recent deliveries, and Address and proxy, the public address and the proxy settings with Run setup again (Admin settings).
Two kinds of check#
- Server checks run on the server: the database, the push keys, the push services, the devices and the deliveries. Their last result is kept and shown to every admin.
- Connection checks run in your browser each time you open Diagnostics, and again with Run checks again. They test the way from this browser to Skirl, so open Diagnostics the way people reach Skirl: at the public address, through the proxy.
When the checks run#
Run checks again runs both kinds at once. The server checks also run by themselves:
- 5 seconds after Skirl starts, then every 30 minutes;
- straight after the public address or the proxy settings are saved;
- when an admin has Skirl open and the last result is more than 5 minutes old.
A result more than 30 minutes old is not shown as current: Overview and Diagnostics say they are checking again until the new one is in.
A run nobody asked for tries only the push services your devices use, the ones Skirl talks to anyway to send them notifications; Run checks again and the setup wizard try Google's, Mozilla's and Apple's all (Privacy).
One run goes at a time, and at most 6 a minute: more is refused with "the checks are already running" or "too many diagnostic runs, please wait".
The Admin link in the sidebar, and Diagnostics in the admin menu, show a number when something needs attention: the server checks that failed plus the people with no device receiving.
Overview#
Admin → Overview shows Skirl's version, how long it has been up and the size of its database, then the Diagnostics line: "The server checks pass." or which need attention, how many people are not receiving, when it was checked, and Open Diagnostics. It is word for word the start of the line on Diagnostics, worked out from the same result: the two pages cannot disagree. The connection checks are not on Overview: they run in the browser that opens Diagnostics.
Below it, the figures:
- People, with Manage people; Topics, with All topics.
- Devices: how many, and how many are receiving, waiting or not receiving.
- Messages: how many arrived today (the last 24 hours) and in 7 days.
- Deliveries: how many notifications today, test notifications included, how many were received and how many were not sent or failed, and how many in 7 days (Delivery and the delivery log).
- Busiest topics: the topics with the most messages in the last 7 days.
The server checks#
The database is writable#
Skirl writes a value to its database and reads it back. It passes with "SQLite at /data/skirl.db: a write and a read worked." (the database file's place on your server).
When it fails, the title is The database cannot be written: "Writing to the SQLite database at … failed." Nothing can be stored: messages, sign-ins and settings fail. Check that the disk of Skirl's data directory has free space and that Skirl may write to it, then restart Skirl.
Push keys are in place#
Skirl signs every notification with its own push keys. It makes them itself on its first start and keeps them in the database: there is nothing to paste. This check reads them and checks that the two halves belong together.
When it fails, the title is Push keys are not usable, with one of: "No push key pair is stored.", "The stored public key does not match the private key." or "The stored private key cannot be read." Browsers cannot turn notifications on, and devices already on get nothing.
Restart Skirl: it makes a missing pair and corrects a public key that does not match. A new pair means every device has to turn notifications on again. A private key that cannot be read stops Skirl from starting; restore the database from a backup (Restoring).
Push services answer#
Skirl opens a secure connection to each push service, with a limit of 5 seconds each: Google (Chrome, Edge, Android), Mozilla (Firefox) and Apple (Safari, iPhone, iPad). The check lists each with "answers", what went wrong, or "not tried, as no device uses it".
It passes with "Every push service answers: Google, Mozilla and Apple." or, for a run nobody asked for, "The push services your devices use answer. Run checks again to try the others too." With no device yet it is skipped: "No device uses a push service yet. Run checks again to try Google, Mozilla and Apple."
When it does not pass, the title is Push services cannot be reached:
- one or some cannot be reached ("Mozilla (Firefox) cannot be reached: no answer within 5 seconds."): the devices that use it get no notifications;
- "No push service can be reached from this server.": no phone or desktop gets notifications.
The fix shown is to allow outgoing HTTPS (TCP port 443) from the server to the hosts that failed: fcm.googleapis.com, updates.push.services.mozilla.com, web.push.apple.com. What went wrong says where to look:
| Problem | Likely cause |
|---|---|
| no answer within 5 seconds | A firewall drops outgoing connections, or the server has no internet. |
| the name does not resolve | The server's DNS does not answer for that name. |
| it resolves to a private address | A DNS filter on your network answers for that name with a local address; Skirl sends only to public ones. |
| its certificate is not trusted here | Something between the server and the internet opens secure connections (a filtering proxy), or the server lacks the usual certificates. |
| the connection was refused or dropped | A firewall refuses the connection. |
| the secure connection failed | The secure connection could not be set up for another reason. |
Every person has a device receiving#
Skirl counts every active person's devices: "3 devices receiving, 1 waiting, 0 failing." It warns, with the title Some people are not receiving, when someone has no device receiving ("1 person has no device receiving.") or a device is failing. They miss notifications on their phones and desktops.
It is the Devices card. The devices list below the cards shows the same, person by person, with what to do. Send them the install link, or ask them to turn notifications on again. A device whose push registration is gone (the browser or the app was reinstalled, or its data cleared) is failing even when the same person has another device receiving: its owner removes it in Settings → Devices, or turns notifications on again on it (Your settings).
Notifications are getting through#
Whether the notifications Skirl sent in the last 24 hours reached the devices they were sent to. A test notification (Send a test) counts as any other. Whether each person has a device to send to is the check above, Every person has a device receiving.
It is the Deliveries card, which says one of these:
| Card | What the check found | |
|---|---|---|
| Nothing to send, "nothing published in the last 24 hours" | "Nothing was published in the last 24 hours, so there was nothing to send. Nothing to do." | Passes: a quiet server is not a problem. |
| None due, "3 messages in the last 24 hours, no device subscribed" | "3 messages were published in the last 24 hours, and no notification was due: nobody subscribed to their topics has a device with notifications on." | Passes. |
| None sent, "2 skipped in the last 24 hours, none failed" | "No notification went out in the last 24 hours: 2 were skipped (muted, quiet hours, below a topic's minimum, or a device that is failing). Nothing failed." | Passes: people chose not to get them (Skipped). |
| Getting through, "12 sent, 10 received in the last 24 hours" | "In the last 24 hours 12 notifications were sent, and all were received.", or "In the last 24 hours 12 notifications were sent: 10 received, 2 not confirmed yet. None failed." | Passes. "not confirmed yet" is Sent; "still being sent" is Queued. |
| Notifications failing, "2 of 12 failed in the last 24 hours" | "In the last 24 hours 2 of 12 notifications failed: 1 to Pixel 8 (ann) and 1 to Firefox on Linux (bob)." | Warns. |
It warns, with the title Notifications are failing, when any notification of the last 24 hours failed: Skirl gave up on it after its retries, so that device never got it ("Those devices missed these notifications."). Each device is named, with whose it is and how many failed to it, the most first; past three, the rest are counted ("and 2 to 2 other devices"). A notification that failed and then turned received (the device confirmed late) does not count, nor does one more than 24 hours old.
What to do then has Open the failed deliveries: Admin → Delivery log with Status set to Failed, and with only that device when it is one, showing what the push service answered for each: Failed. A device whose registration is gone fails once and is then skipped (device failing): this check warns for a day, and Every person has a device receiving until it is fixed.
The connection checks#
The setup wizard's step 3 shows these one by one; Diagnostics puts them on the HTTPS and Live connection cards. Each has a title for when it passes and one for when it does not.
HTTPS is in use#
Whether this page is on HTTPS. It passes with "This page is on HTTPS.", or, with Skirl opened at localhost, "Plain HTTP on this computer counts as secure; phones and other computers need HTTPS."
Otherwise the title is Not on HTTPS: "This page is on plain HTTP." Skirl works on your network, but phones and desktops cannot get notifications. Put Skirl behind a proxy with a certificate, or a tunnel: the installation guide and the reverse proxy guide have tested setups.
This is the public address#
Whether you opened Skirl at its public address. Otherwise the title is Opened at another address: "You opened Skirl at … but its public address is …", or "No public address is stored yet." Links and the QR code point somewhere else. Set the public address, or open Skirl at it to test the way people use.
The proxy passes the address on#
Whether the server sees the same address as your browser, so the proxy passes the address on unchanged. Otherwise the title is The proxy rewrites the address: "The server saw the address …, not …". Browsers are refused when they turn notifications on. The page shows the line to add for the proxy it found (Fixing the proxy from the page).
The server knows you use HTTPS#
On an HTTPS page, whether the server knows it: it has the certificate itself, or a trusted proxy says so. On a plain HTTP page it passes with "This page is not on HTTPS, so there is nothing to pass on."
Otherwise the title is HTTPS is not passed on. Sign-in cookies are weaker and browsers are refused when they turn notifications on. Two cases:
- "The proxy does not tell the server that you use HTTPS.": the proxy needs a line; the page shows it.
- "The proxy says you use HTTPS, but proxy mode is off, so the server does not believe it.": Trust this proxy fixes it.
Visitor addresses are passed through#
Whether the server sees each visitor's own address: "The proxy passes on visitor addresses: the server sees you as …", or "The server sees your own address."
Otherwise the title is Visitor addresses do not get through. Everyone looks like one visitor, so one script's bad token pauses everyone's tokens, and one person's wrong passwords pause their own sign-in wherever they are, and everyone's tokens too (Rate limits). Two cases:
- "The proxy sends visitor addresses (X-Forwarded-For), but the server does not trust it yet.": Trust this proxy fixes it.
- "Every request seems to come from …: the proxy does not pass on visitor addresses.": the proxy needs a line; the page shows it.
Live connection gets through#
Your browser opens a WebSocket connection to the server, sends a word and waits up to 5 seconds for it to come back. Otherwise the title is Live connection is blocked by the proxy: "The WebSocket connection did not get through." Live updates in ntfy-style clients that use WebSocket fail. The proxy must allow WebSocket upgrades: the page says how for the proxy it found.
Messages stream without delay#
Your browser opens a stream on which the server sends two test events 2 seconds apart. The first must arrive within 1.5 seconds, and the two must not arrive together. Otherwise the title is The proxy holds messages back, with "The test stream did not come through.", "The two test events, sent 2 seconds apart, arrived together." or "The first test event took … seconds to arrive." Messages show up late, or only on reload. The proxy must not buffer responses: the page shows the line.
The clocks agree#
The server's clock and this browser's, compared. They pass within 5 minutes of each other. Otherwise the title is The clocks differ: "The server's clock and this browser's differ by … minutes; either may be the wrong one." Push services reject requests signed with a wrong time. Turn on automatic time on whichever is wrong, the server or this computer.
It is on the Push card and in the setup wizard's step 4.
Fixing the proxy from the page#
When a connection check fails that a proxy setting fixes, the page names the proxy it found (nginx, Nginx Proxy Manager, Caddy, Traefik or Cloudflare) and shows the lines to add for exactly the checks that failed, each with Copy; Show full example shows a whole working setup. If the guess is wrong, Show for another proxy shows them for another one; Another proxy lists what any proxy must do, with examples for nginx, Caddy and Traefik. Reload the proxy, then Test again (in the wizard) or Run checks again.
Trust this proxy appears when the proxy sends the right headers but Skirl does not believe them yet. It turns on Skirl is behind a reverse proxy and adds the proxy's address to the trusted proxy addresses. For a public address it asks first, with Trust and the address: trust it only if it is your own proxy, such as Cloudflare. When the proxy settings were fixed when Skirl was started, the page says so instead.
The tested setups for each proxy are in the reverse proxy guide.
The devices list#
Every active person's devices: Person, Device, Skirl build, Last delivered (the last notification it confirmed) and Status, with the reason. A person with no device receiving also gets a line saying what their browser last reported.
- Skirl build is the build of Skirl's code on the device, as it last told the server when it confirmed a notification; "not reported yet" until it has (code from before this was added never tells it). Needs to open Skirl once to update under it means that build is not the server's, or the device was sent a notification and its code never told a build (older code does not): the device gets the new code the next time Skirl is opened there (Skirl's code on each device).
- Last error, under the status, is the newest step that failed in Skirl's code on that device, with when: "Last error, 3 h ago: Skirl's code on the device failed at setting the app badge: TypeError (…)" (Shown, but Skirl's code on the device failed).
| Status | What it means |
|---|---|
| Receiving | Notifications arrive and are confirmed. |
| Waiting for browser | Notifications are sent but none has been confirmed yet: "1 message is waiting. It arrives when the browser is running.", or "Notifications are on, but none has arrived yet." |
| Not receiving | The push service dropped the device: "The browser's push registration is gone." It has to turn notifications on again. |
| Not installed | An iPhone or iPad with Skirl in a Safari tab: "iPhones only get notifications from the Home Screen app, not from a Safari tab." |
| Blocked | "Notifications are blocked in this browser." |
| Off | "Notifications are not turned on in this browser." |
| Not supported | "This browser cannot receive notifications." |
| Needs HTTPS | "Skirl was opened over plain HTTP here; notifications need HTTPS." |
| No sign-in yet | The person has never signed in ("No browser yet"). |
A device that is not receiving has Send a test, which then follows the test as Check this device does on the device itself (Check this device): "The push service took it." (or why not), "This device confirmed it …" or that it is still waiting, up to 60 seconds, then "Skirl's code on this device reported no error." or the step that failed. The result stays when the device turns receiving. A line without a device has Copy install link: send it to that person; it opens the steps for their phone or computer (Phones and browsers).
Recent deliveries#
The last 20 messages that went to devices, each in one sentence, such as "Reached 2 of 4 devices. sam's iPhone skipped (muted), priya's Firefox waiting." "waiting" means sent and not confirmed yet. What each word and reason means: Delivery and the delivery log.
The setup wizard#
The wizard at /setup gets a new Skirl running in five steps; each tests itself and says what to fix. While nobody has an account, anyone who opens Skirl gets step 1. After that it is for admins: a member who opens it goes to the inbox.
The top says Setup · step n of 5; Finish later goes to the inbox, where admins see "Setup is not finished: the connection test and a test notification are still to do." with Continue setup and Dismiss. A step already done can be opened again from the list of steps. Run setup again under Address and proxy on Diagnostics opens the wizard at step 2. Skirl remembers when setup was finished and which checks you went on without.
Step 1: Admin account#
The first admin: Username (lower case letters, digits, _, . and -), Display name, and a Password of at least 8 characters. When the server was started with SKIRL_SETUP_TOKEN, the step also asks for the Setup token: its value, from the server's environment. Create admin account makes the account and signs you in. Everyone else is added later in Admin → People (People and roles).
Step 2: Public address#
The address phones and browsers use to reach Skirl, filled in with the address you opened the wizard at. Use this address saves it (Public address). If you confirm another address than the one this browser is on, the step warns that the connection test checks the address this browser uses: open the wizard at the other address to test that one. A public address fixed when Skirl was started is shown with where it was set, and Continue.
Step 3: Connection test#
The connection checks, run from this browser, with the way they took ("browser → nginx → server"). Failing checks show their fix (Fixing the proxy from the page) and Test again. Continue without it goes on and remembers which checks you skipped; Continue when every check passes.
Step 4: Push keys#
Nothing to paste: Skirl made its push keys itself. The step shows Push keys are in place, Push services answer and The clocks agree, and warns when the page is on plain HTTP. Check again runs the server checks again; Continue goes on either way.
Step 5: Test notification#
Turn notifications on in this browser and watch the test arrive. On your phone: scan the QR code, or open the link with Copy link, on the phone: it shows that phone's steps (Phones and browsers). Your devices fills in as each device turns notifications on, and shows it receiving when its test arrives.
Connect your first system and Finish setup both finish setup; the first goes on to Connect a system (Connecting your systems).