Skip to content

Troubleshooting

Start with the service's log. Most problems are named there:

journalctl -u xlx-observatory -n 50

The Service Won't Start

A setting is wrong. The log names the file and line:

/etc/xlx-observatory/xlx-observatory.ini:57: unknown setting NODE_IP in [page]
/etc/xlx-observatory/xlx-observatory.ini:60: "partial": want full, last3, last2, last1 or hide

Fix the line and restart. Settings must be in the right section, and numbers within their range. See Configuration.

Calling home is on but the key is missing:

calling home: open /etc/xlx-observatory/callinghome.hash: read-only file system (as root, run: xlx-observatory -config /etc/xlx-observatory/xlx-observatory.ini -init-hash)

Create the key as shown in Calling Home.

Something else is using port 8090. Change LISTEN in [Server] and the address in the web server's configuration to match.

"Can't read the reflector status"

A red box at the top of every page says the dashboard can't read xlxd's status file:

  • no such file or directory: xlxd hasn't written it yet, or XML_PATH doesn't match XML_PATH in /etc/xlxd/xlxd.ini. xlxd writes it every 10 seconds while it runs.
  • permission denied: the file must be readable by the xlx-observatory user. In the xlxd package it is world-readable.
  • no <XLXnnn linked nodes> section: the file isn't xlxd's status file, or xlxd was stopped part way through writing it.

The status file can't be in /home: the service can't see it there.

The Header Says "not running"

Up shows not running when the dashboard can't find a running xlxd from PID_PATH. Check that:

  • xlxd is running: systemctl status xlxd
  • PID_PATH in [Reflector] matches PID_PATH in /etc/xlxd/xlxd.ini. The xlxd package uses /run/xlxd/xlxd.pid; xlxd's own default is /var/log/xlxd.pid.
  • the process in that file is named xlxd. A stale PID file left behind by a crash, now pointing at some other program, shows as not running.

While xlxd isn't running the reflector isn't registered with the directory either.

Updates Say "Every 10 s" Instead of "Live"

The header shows Live when xlxd's JSON monitor is answering, and Every 10 s when it isn't. The pages still work without it; they update when the status file changes.

  • MONITOR in [Reflector] must match JSON_PORT in xlxd.ini (10001 by default). An empty MONITOR turns it off.
  • xlxd sends the monitor to one listener at a time. If another dashboard, or the PHP dashboard's live page, is listening to the same xlxd, they take turns and each drops back to every 10 seconds. Run only one.
  • After xlxd restarts, the dashboard finds the monitor again within about a minute.

Pages Don't Update by Themselves

If the header says Live but pages only change when you reload them, the web server is holding back the /events stream. In nginx, the location = /events block needs proxy_buffering off and a long proxy_read_timeout. In Apache, the /events ProxyPass line needs flushpackets=on and must come before the / line. See Installation.

Browsers without JavaScript reload the page every 30 seconds instead.

A Logo, Banner or custom.css Doesn't Show

These are read on each page view, so a missing one is almost always the file itself. Check that:

  • the setting is in [Page] and the service was restarted after adding it
  • the file is not in /home. Keep it in /etc/xlx-observatory.
  • the xlx-observatory user can read it: chmod 644 it
  • a logo is PNG, JPEG, GIF, WebP or SVG with a matching file extension, and 1 MB at most
  • custom.css ends in .css and is 256 KB at most
  • in custom.css, the lines you changed are uncommented

To test as the service user:

sudo -u xlx-observatory head -c 100 /etc/xlx-observatory/logo.png | wc -c

The Reflector Isn't in the Directory

  • Calling home is off by default. Check ENABLE=1 in [CallingHome] and look for calling home every ... in the log.
  • Look for calling home: errors in the log. The dashboard retries every minute.
  • Nothing is sent while xlxd shows as not running.
  • If the directory refuses the registration, the reflector number is registered with a different key. Use the key from the old server or PHP dashboard. See Calling Home.
  • The Reflectors page updates every 10 minutes (INTERVAL in [ReflectorList]), so allow that long before checking there.

The Reflectors Page Is Empty or Out of Date

The list is downloaded from the XLX directory. If a download fails, the page says so and shows the last list it had, and the dashboard tries again every minute. The server needs to reach xlxapi.rlx.lu over HTTP.

Times Look Wrong

Times on the pages are shown in each visitor's own time zone, named at the bottom of the page. xlxd writes its times in the server's time zone, so if the server's clock or time zone is wrong, every time on the pages is off by the same amount. Check with timedatectl.