Run the server

Troubleshooting

Problems people meet when they set up KROMA, with their cause and the fix. Each heading is what you see. Start by reading the server log: it usually names the problem.

Read the server log

  • In KROMA: Server > Logs.
  • Docker: docker compose logs kroma, in the folder of the compose file. Add -f to follow it live.
  • Synology package: /var/packages/kroma/var/kroma.log, over SSH.
  • Container Manager, QNAP, Unraid, TrueNAS: the log of the kroma container, in the app manager.

For more detail, set RUST_LOG=debug and restart KROMA. Remove it afterwards: the debug log grows fast.

Find the server's address

The server's address on your network is a number such as 192.168.1.50.

  • On a NAS: the address you use to open its admin page.
  • On Linux: run hostname -I. The first number is usually the one.
  • On a Mac: System Settings > Wi-Fi or Network > Details.
  • In your router: the list of connected devices shows every address.

KROMA is at that address on port 4040: http://192.168.1.50:4040.

The web page does not open

  1. Check that the server runs:
    • Docker: docker compose ps shows kroma as running.
    • Synology package: Package Center shows KROMA as Running.
  2. Check the address. It starts with http://, not https://, and ends with :4040.
  3. Open http://SERVER_IP:4040/api/health in the browser. If it answers with "status":"ok", the server works and the problem is in the browser: clear its cache, or try another one.
  4. Check the firewall of the machine that runs KROMA. It must allow TCP port 4040:
    • Synology: Control Panel > Security > Firewall > Edit Rules.
    • Linux with ufw: sudo ufw allow 4040/tcp.

Create the owner account from the server's local network

You opened KROMA through an address from outside your network, such as a tunnel or a domain name. The first account can only be created from home. Open KROMA with its local address, such as http://192.168.1.50:4040, from a device on the same network.

A library stays empty after a scan

KROMA cannot see or read the folder, or does not recognize the files in it.

  1. Read the log after a scan. Two warnings point at this problem: entries skipped, followed by the folder and one file KROMA could not open, and configured libraries produced no items.
  2. Check that the folder exists where KROMA looks:
    • Docker: the library folder must be the path inside the container, such as /media/Films. List it from inside:

      docker compose exec kroma ls /media

      An empty answer means the folder is not mounted. Check the volumes: lines of the compose file.

    • Synology package: the path starts with /volume1/, or the number of your volume.

  3. Give KROMA read access to the folder:
  4. Check the names of the files. See Name your files.
  5. Under Server > Sources, select Scan on the library.

A film you deleted is still listed

KROMA takes a title out of the listing only after a scan that read every folder of its library. It keeps the title out of sight, with its watch history and resume points, and lists it again when the file comes back. While one folder is missing, empty, or holds a link KROMA cannot open, the scan keeps every title of that library listed. A share that is not mounted yet loses nothing that way.

  1. Open Server > Tasks and read the last run of Library scan. Each folder KROMA could not read has a line that names the library and the folder, and ends with kept every title it holds.
  2. Mount that folder again, or remove the link whose file is gone. A folder that is empty on purpose holds the library back too: remove it from the library under Server > Sources.
  3. Under Server > Sources, select Scan on the library.

A film shows the wrong title or poster

KROMA picked the wrong match from the file name. Signed in as the owner, open the film, choose Fix the match, search for the right title, then select Use this title. To avoid it, name the folder with the title and the year: Blade Runner 2049 (2017).

A home video or a film TMDB does not know has no match to fix. Open it, choose Edit info, and write its title, release date, summary and genres. When Fix the match finds nothing, its Edit info button opens the same form. For the release date, write the year alone, as 1995, or the day, as 1995-12-15. A sort title files the title under another name, such as Lord of the Rings, The, and leaves the title shown as it is. What you write there shows in every language and stays through a rescan. Clear a field to go back to TMDB's text. Movies and Series sort and filter by what you write, and a year you write replaces TMDB's release date when the two differ. To write an episode's name, air date or summary, open its series and choose Edit info on the episode's row.

A TV or app does not find the server

The apps search your home network for a server on port 4040. The search fails when:

  • the device is on another network than the server, such as a guest Wi-Fi, a separate network for TVs, or mobile data;
  • your Wi-Fi isolates devices from each other, an option some routers call AP isolation or client isolation;
  • KROMA uses another port than 4040.

In each case, type the address in the app: http://SERVER_IP:4040. If even that fails, open the same address in a browser on that network to check that the server can be reached from there. To reach KROMA from outside your home, see HTTPS, reverse proxies and remote access.

A film does not play, or stops to load

A screen that cannot play a file asks the server to convert it. Without a graphics chip, a 4K conversion can be too slow for the server.

  1. Read the log while the film starts. It says whether the server converts the video, and on what.
  2. Set up hardware transcoding if the server has a graphics chip.
  3. Try the film on another device. If it plays there, the first device needs a conversion that the server cannot keep up with.

If the player says the server is busy, too many conversions run at once. See KROMA_MAX_TRANSCODES in the configuration reference.

Report a problem

If this page does not solve it, open an issue with:

  • the KROMA version: in the web app, select the version number at the bottom of the menu, which copies it;
  • how you installed the server: Docker, Synology package, or another NAS;
  • the device and model, for a playback problem;
  • what you did, what you expected, and what happened instead;
  • the lines of the server log from that moment.

The log can hold addresses of your network. Remove what you do not want to share before you post it.

Edit this page on GitHub