Troubleshooting

The problems that come up most often, with the fix for each. Deployment issues are listed first.

Deployment

SymptomFix
Session cookies are not kept behind a proxy — you are signed out on every request. Set TRUST_PROXY=1 and serve over HTTPS. With NODE_ENV=production the cookies are Secure, so plain HTTP will not keep them.
The app restarts in a crash loop Check that SESSION_SECRET is set to a long random value and that DATA_DIR is writable by the process user. Production configuration rejects default secrets.
It stays down after a server reboot CloudPanel does not supervise Node processes. Use pm2 plus a @reboot cron entry, and remember the PATH line — see Start on boot.
Uploads fail with 413 Raise MAX_UPLOAD_BYTES and the user quota, and check the reverse proxy body size limit — the proxy refuses the body before the application sees it.
Uploads fail with 415 The file content is not a recognised type. Files are validated by magic bytes, not by extension. Accepted: PNG, JPEG, GIF, WebP, MP4, MP3, WAV, OGG.
Everything is signed out after an update Expected if SESSION_SECRET changed. Keep it in .env outside the release directory so updates cannot overwrite it.

The audience display

SymptomFix
The audience window stays blank Reload both windows; the display announces itself when it loads so the operator can resend the current slide.
No audience window opens Allow pop-ups for the site. The display opens as a separate browser window.
It will not go fullscreen on the projector Drag the window to the projector first, then press F. Browsers cannot choose a physical monitor — see Audience display.
Text is cut off or letterboxed Match the presentation aspect (16:9 or 4:3) to the projector's input setting.

The mobile remote

SymptomFix
“That pairing code has expired / already been used / is not valid” Codes live five minutes and are single use, and a newer code replaces the old one. Generate a fresh code in Tools → Connect Mobile Remote and pair again.
“This remote is no longer authorised. Pair again.” The device was disconnected from the dialog or its token expired (12 hours). Pair again.
The pairing button is greyed out The pairing cooldown is running (30 seconds between codes by default). It counts down and re-enables itself.
The phone connects, but updates feel slow WebSocket upgrades are not reaching the app, so the remote is on its REST fallback. Add the WebSocket proxy configuration and confirm the upgrade returns 101.
The phone cannot reach the instance at all For a LAN install, the phone must be on the same network and the pairing link must use the local address — set PUBLIC_URL accordingly.

Data and storage

SymptomFix
The data file will not load Look for a preserved *.corrupt-* file next to it and restore from backup. Do not hand-edit the JSON.
The storage meter looks wrong Usage is recomputed from what is actually stored and corrected automatically the next time content changes. Everything counts — presentations, songs, plans and uploads.
Upgrades keep overwriting user data DATA_DIR is inside the release directory. Move it outside — for example /home/cloudpanel/htdocs/simple-worship-data — and set DATA_DIR accordingly.

Browser and client

SymptomFix
The workspace looks stale after an upgrade Hard-refresh the browser. API responses are no-store and versioned assets are immutable, so a reload is enough to pick up new code.
Animations do not play Reduced motion is enabled at the operating system level. Animations are disabled automatically out of respect for that setting.
Keyboard shortcuts do nothing Click the workspace first so the window has focus. Some browser shortcuts (for example Ctrl+K in some browsers) can take precedence.

Updates

SymptomFix
“Update command failed” Read the reported exit code, signal, stderr and stdout in the maintenance panel, and run the exact command shown yourself. /api/admin/update also reports whether git and npm are on PATH.
The update check does nothing UPDATE_CHECK_URL must be configured. Nothing is contacted until an administrator presses the button.
An update times out Raise UPDATE_TIMEOUT_MS (10 minutes by default) for slow connections.

Still stuck?