Skip to content

Troubleshooting

What to check when photon-server won't start, can't be reached, won't play a film or can't find your files.

Browse the docs

When something goes wrong, photon-server nearly always says why: in the app, on Settings › Server › Dashboard, or in its log. This page is organised by what you see. Under each, look for the message, then do what it says.

To read the log, run docker compose logs -f server, or see where the log is for other installs.

The server won’t start

Look at the last lines of the log.

The log saysWhat to do
PHOTON_DATABASE_URL is not set (or PHOTON_VALKEY_URL)Set the address. See Configuration.
schema version mismatch … (run photon-server migrate)The database needs updating for this version. Run photon-server migrate, then start the server again. The standard Docker setup does this for you.
postgres … is older than 18Move to PostgreSQL 18 or newer.
valkey: …Valkey’s address, user or password is wrong, or Valkey isn’t running.
ffmpeg not found, not a release build, or older than 8FFmpeg is missing, broken or too old. Install a release, version 8 or newer, beside the server or on the system path.
waiting for a restore to finish before startingA restore is running. The server starts when it ends.
usage: photon-server …The server was given a command it doesn’t know. See Configuration.

Once it is running, the log says serving, with its address and version.

I can’t open the web app, or an app can’t reach the server

  1. On the server’s machine, open http://localhost:8640 in a browser. If nothing answers, the server isn’t running, or in Docker, its port isn’t published.
  2. Open http://localhost:8640/health. If it loads with no error, the server is fine, and the problem is between you and it: the network, a firewall, or the address the app was given.
  3. If it reports an error, the server can’t reach its database or Valkey. The log says not ready, and which one.
You seeWhat to do
Apps on your network don’t list the serverType its address into the app instead. A server run from the standard Compose file can’t be found automatically. The log line clients must be given the server's address means the same on other installs.
Jellyfin apps can’t connectCheck Settings › Server › Network › Jellyfin apps is On, and in Docker that its port is published too. The log says jellyfin's apps cannot reach this node if the port is taken by something else.
Secure (HTTPS) connections stopped workingThe log says secure connections not applied if the certificate under Settings › Server › Network can’t be read. The server keeps using the last one that worked.
Everyone looks like they are on the home network, or nobody doesBehind a reverse proxy, add the proxy to Settings › Server › Network › Trusted proxies.

For reaching the server from outside your home, see Reach your server from outside.

A film won’t play

The app shows the server’s reason.

The app saysWhat to do
Nothing it plays can be made of this file, with reasons such as “Video codec” or “HDR”Even converting can’t help this app. Try another app or device, or another version of the film.
Every node is already transcoding as many videos at once as it mayEvery transcode slot is in use. Wait for someone to finish, or raise Transcodes at once; see Transcoding.
… or is short of space toThe cache folder has less than 2 GB free. The log says transcode refused for want of space, with the folder. Free some space there.
Every node is delivering as many streams at once as it mayThe server is at its Streams at once or Egress limit. See Run several servers; these apply to a single server too.
The playback has stopped, or lapsedThe app went quiet for two minutes and the film was stopped. Start it again.
The provider is fetching the title; it plays once it has itA Stremio title is still being fetched. Try again shortly. See Stremio addons.
Nothing the provider offers of the title could be readEvery source the Stremio addon offered failed.

A film plays, but is being converted

That is not a fault, but it costs the server work. Settings › Server › Dashboard shows the reasons under the film, after Because of:. Transcoding explains each reason and how to avoid it.

The most common is Bitrate: the person’s quality setting is below the file. Away from home, Settings › Server › Network › Remote streams › Limit (Mbps) may also apply.

Converting is slow, or my graphics card isn’t used

Look at the dashboard’s Server card, under Encoder. If it says Software, the server isn’t using your graphics card.

The log saysWhat to do
encoding videoShows which encoder it chose, its device, and whether it makes HEVC.
the encoder set encodes no test picture: encoding on the first that doesThe encoder you chose doesn’t work. In Docker, check the graphics card is passed into the container; see Hardware transcoding.
transcoding will fail: ffmpeg would not encode a test pictureEven the processor can’t convert. FFmpeg is broken; reinstall it.
encoding H.264 aloneThe hardware can’t make HEVC, so everything is converted to H.264. It still works.
tone mapping on vaapi through the cpu insteadThe graphics card can’t tone map HDR, so the processor does, more slowly.
burning subtitles in on vaapi through the cpu insteadThe graphics card can’t draw subtitles into the picture, so the processor does, more slowly.
burning subtitles in will failPicture or styled subtitles can’t be drawn into a converted film.
styled subtitles play only on clients that draw them: ffmpeg has no libassYour FFmpeg can’t draw styled subtitles. Apps that draw them themselves still show them.
remux failedOne film’s conversion failed. The line includes the error.

HDR looks washed out or too dark

The app has said the screen shows HDR when it doesn’t, or the other way round. In the web app, check your display is set to HDR in your computer’s settings. See HDR and Dolby Vision.

The server can’t find my folder

On Settings › Server › Libraries, choose Check access beside the library. It says whether the server can read the folder, or why not: it is missing, it isn’t a folder, permission is denied, or it didn’t answer in time (as with a network drive that has stopped responding).

Settings › Server › Libraries, with Check access open on one library showing the folder is readable

  • In Docker, the path must be the path inside the container, such as /media/Films, not the path on your machine.
  • The server must have permission to read the folder and everything in it.
  • With several servers, every one must have the media at the same path.

New films don’t appear

The log saysWhat to do
out of inotify watches … raise fs.inotify.max_user_watchesLinux has a limit on how many folders can be watched for changes, and it was reached. Raise fs.inotify.max_user_watches on the machine (a Docker container shares it). Until then, new films appear at the next scheduled scan.
libraries are scanned on schedule onlyWatching for changes couldn’t start. New films appear at the next scheduled scan, or choose Run now beside Scan libraries on Settings › Server › Scheduled tasks.
folder not read, file left outA folder or file couldn’t be read. The line gives the path and why: usually permissions, or a drive that has gone.
NFO not readAn NFO file (a small file of details beside a film) couldn’t be read. The film is matched another way.

See Keep libraries up to date.

Plugins, trackers, webhooks and notifications

You seeWhere to look
A plugin is refused when you add itThe message says what is wrong. See Install and manage plugins.
A tracker won’t linkAn admin hasn’t set it up, or the tracker refused the server’s details. See Sync with trackers.
A webhook never arrivesSettings › Server › Jobs › Given up lists failed deliveries, with the reply. See Webhooks.
An import failsIts row on Settings › Server › Import history says why.
A notification doesn’t reach a deviceFailed pushes are listed under Settings › Server › Jobs › Given up. See Notifications and push.
the database is neither backed up nor restoredThe PostgreSQL tools aren’t installed. See Back up and restore.

Pages are slow

The log records any database request that takes over 200 milliseconds as slow query. Health, logs and metrics shows how to watch the server over time.