Troubleshooting
API reference
Every endpoint, with its fields and error codes, is in the API documentation. The test page uses the same API: the Camera tab's camera test calls GET /api/v1/camera/status, and New test recording on the Recordings tab calls the same start / mark / stop endpoints the safe uses, and lists each call under API calls from this page.
Health check
Run health check on the test page's System tab (/test#system) checks the whole Pi in a second or two. Each check says what's wrong and what to do. Copy report copies the result for a support message.

Events listed as stuck (at "recording" or "processing" with nothing left to finish them) have a Fix button: it finishes the clip if one was saved, otherwise marks the event failed with the reason.
| Symptom | Likely cause |
|---|---|
| Log sub-event now says the recording already ended | max_duration_seconds ran out, so the Pi stopped the recording itself. Leave that field empty, or set it longer than the test. |
Recording failed with SIGBUS or "Bus error" in the error | The SD card couldn't be read back while the clip was being finished. Run the health check: SD card health lists the card's read errors. Reseat the card and check the power supply (official supply, short cable); if the errors come back, replace the card with a high-endurance one and flash it fresh. |
| Recording failed with "killed", "signal 9" or out of memory | The Pi ran out of memory. Re-run deploy.sh on Pis set up before swap moved into compressed RAM, close the live view during tests, and see the Memory line in the health check. |
| Event stays at processing for more than a minute | Not normal: finishing a clip is a copy and takes seconds at any length. Run the health check; a stuck event has a Fix button. |
| A recording has a warning that the camera's timestamps jumped | The camera restarted its video during the recording (a reboot or a settings change). The clip was finished with its timing rebuilt; the picture is complete, the sound left out. |
| Motion recordings never appear | The camera's motion detection is off or watches no area. Camera tab → Camera features → Motion area: it should say it watches part or all of the picture (Watch the whole picture if not); then Watch events for 60 s and walk past. The Motion & notifications card shows whether the Pi is listening. |
The Configuration card under it lists the settings the Pi runs with. Support may ask you for these.
Checking logs on the Pi
The System tab's Logs card shows what the Pi's software has been doing: the recording app, the live view relay, software updates, or the whole Pi. Errors & warnings narrows it down. On Pis that keep their logs across restarts, Before last restart shows what happened before the Pi hung or lost power. Copy or Download them to send to Comlink. Passwords are hidden.
Pis set up before this was added keep their logs only until they restart; re-running the deploy script once makes them keep them. Over SSH:
ssh pi@recording-pi.local
sudo journalctl -u recording-pi -f
Live view says "No picture"
If the video keeps freezing, switch the live view to Snapshots: the camera's own picture about twice a second, which can't freeze and is enough to aim and focus the camera.
The page reached the Pi, but no video arrived within 15 seconds. Click Try again first. If it still shows no picture:
- Open System → Logs and pick Live view relay: it says whether the camera's stream stopped.
- Run the health check: low memory or a power dip mean the Pi is struggling.
- On a company or guest network, the video may be blocked: it needs UDP port 8189 to the Pi.
Wrong date on the picture
The camera draws its own date and time onto the picture, and resets it to 2020-01-01 whenever it loses power. The Pi sets the camera's clock from its own within 5 minutes of finding the camera, once the Pi's clock has synced with internet time. The Camera card's Clock chip and the health check's Camera clock line show whether that worked.
Camera not found
The Recording Pi searches for the camera via ONVIF continuously — every few seconds after startup until it finds it, then every 5 minutes in case its address changed — so there's no need to restart anything once the camera is fixed. The log shows ONVIF discovery: found camera at ... when it does. Clicking Test camera on the test page searches immediately and shows what's wrong:
| Test page says | What to do |
|---|---|
| No ONVIF camera answered | Camera is off, unplugged, still booting, or ONVIF Discoverable is off. Check the PoE injector light and the camera's settings — see Camera Setup. The camera and Pi must be on the same router (discovery doesn't cross routers/VLANs). |
| refused the request … the login was wrong | CAMERA_ONVIF_USERNAME / CAMERA_ONVIF_PASSWORD in the Pi's .env don't match the camera's admin account. |
| … different subnets, so they can't reach each other | The camera most likely missed the router's DHCP answer and fell back to its built-in IP. Power-cycle the camera now that the router is up. |
| nothing is listening on its RTSP port | Check RTSP Server Port in the camera's network settings. |
| didn't answer within …s / now has a different IP address | The camera went offline or moved. The Pi re-searches automatically; click Test again on the Camera tab to search right away. |
| Camera not seen on the network just now — this is its last known address | The search got no answer, so the Pi tried the address it last found the camera at. If that's followed by nothing is listening on its RTSP port, something answered at that address but sent no video: usually the camera restarting (it answers on the network before its video is up; the test retries once a few seconds later), or the camera moved to a new address and another device now has the old one. Compare the MAC address on the camera's label with ip neigh show <address> on the Pi, or check the router's device list. |
| The live view is open right now … | The live view is a second video connection to the camera, and many cameras allow only one or two. Stop the live view and test again. Recordings pause the live view, so they aren't affected. |
Search attempts and their reasons are also in the log: sudo journalctl -u recording-pi | grep -i camera.
The camera chip in the status bar at the top shows the camera's last known address. It's green while the camera answers, and turns amber (not answering) when the latest check, the Pi's own search or a camera test, got no answer; hover it for when the camera last answered. To dig into a camera that keeps dropping out, see scripts/camera_settings_test.py in the repo.
Test page shows "failed" after stopping a recording
The "Recording failed" message on the test page says why — e.g. "Recording produced no video. No camera found on the network …" (the full detail is in GET /api/v1/events/{event_id}'s error) — see Camera not found for what each reason means. A failed recording also makes the Pi search for the camera again straight away. Other common causes are the camera going offline mid-recording, or the SD card running low on space.
Can't reach the test page at all
- Confirm the Pi is powered on and connected — check your router's device list for its hostname
- Confirm the service is running:
sudo systemctl status recording-pi - Try the Pi's IP address directly instead of
recording-pi.local, if.localnames don't resolve on your network - A red Pi not responding badge at the top means two status checks in a row went unanswered (up to about 20 seconds). It goes away by itself once the Pi answers again. If it keeps coming back, run the health check: its Wi-Fi line shows the signal and whether Wi-Fi power saving is on (it should be off; re-run
deploy.sh), and its Power supply line whether the power has dipped.scripts/api_soak_test.pyin the repo runs recordings in a loop while timing every outage
SSH connection fails
ssh -v pi@recording-pi.local
The -v flag shows where the connection is failing — usually either the Pi isn't on the network yet, or the hostname doesn't resolve (try its IP address instead).
"REMOTE HOST IDENTIFICATION HAS CHANGED" after the Pi was re-flashed or replaced is expected: every new card creates its own SSH key on first boot. Remove the old entry, then connect again:
ssh-keygen -R recording-pi.local