Jellyfin exits with Expected to find only .jellyfin-data but found marker for /config/.jellyfin-config when its data folder and its configuration folder are the same directory, and the fix is to move the configuration files and the .jellyfin-config marker into /config/config. In Docker there are two ways to get there: copying /etc/jellyfin and /var/lib/jellyfin from a native install into a single /config, or setting JELLYFIN_CONFIG_DIR=/config. I reproduced it on 22 November 2026 with the official 12.4 image on Docker Engine 29.5.2 and tested each fix. This is a different failure from the encoding.xml error in Jellyfin 12, where the server does start. There is also a Spanish version of this fix.

Key takeaways

  • Since 10.11.0, Jellyfin drops an empty marker file in each folder it owns (.jellyfin-data, .jellyfin-config, .jellyfin-log and five more) and refuses to start when it finds two different ones in the same folder.
  • The error text names the marker it expected and the path of the extra one: here /config is the data folder and it holds a configuration marker.
  • The container exits with code 133 and, with restart: unless-stopped, Docker restarts it in a loop: in my test the counter already read 9 restarts when I looked.
  • Moving .jellyfin-config together with the configuration .xml and .json files into /config/config kept the user, the server ID and the settings.
  • Deleting only the marker also gets the server to start, but Jellyfin ignores your system.xml and writes a new one with factory defaults.

Unhandled exception. System.InvalidOperationException: Expected to find only .jellyfin-data but found marker for /config/.jellyfin-config.

The error means Jellyfin found another folder's marker inside /config, its data folder, so it stops the startup before it opens the database. These are the lines 12.4 wrote in my test:

Unhandled exception. System.InvalidOperationException: Expected to find only .jellyfin-data but found marker for /config/.jellyfin-config.
   at Emby.Server.Implementations.AppBase.BaseApplicationPaths
     .CheckOrCreateMarker(String path, String markerName, Boolean recursive)
   at Emby.Server.Implementations.AppBase.BaseApplicationPaths
     .CreateAndCheckMarker(String path, String markerName, Boolean recursive)
   at Emby.Server.Implementations.AppBase.BaseApplicationPaths
     .MakeSanityCheckOrThrow()
   at Emby.Server.Implementations.ServerApplicationPaths
     .MakeSanityCheckOrThrow()
   at Jellyfin.Server.Program.StartApp(StartupOptions options)

The first line is exactly as printed; I wrapped the stack trace lines to fit. The message changes with the two folders that collide. I triggered these variants with the same image, changing one environment variable each time:

  • Expected to find only .jellyfin-data but found marker for /config/.jellyfin-log.
  • Expected to find only .jellyfin-cache but found marker for /config/.jellyfin-data.
  • Expected to find only .jellyfin-cache but found marker for /cache/.jellyfin-log.

In versions 10.11.0, 10.11.1 and 10.11.2 the message was printed with a typo, Exepected to find only, which 10.11.3 corrected. If you paste the error into a search engine with that typo, it is the same failure. The .jellyfin-transcode ... /cache/.jellyfin-cache variant from issue #15058 has the same cause applied to the transcoding folder; I did not reproduce that one.

To see whether your container is in this state, check its status and search the log for the line:

docker compose ps -a --format 'table {{.Name}}\t{{.Status}}'
NAME              STATUS
b12x00-jellyfin   Restarting (133) 5 seconds ago
docker compose logs jellyfin 2>&1 | grep -m1 "Unhandled exception"

Why does Jellyfin look for marker files in its folders?

Jellyfin checks at startup that none of its folders overlaps another, and the markers are how it knows. The check arrived with pull request (PR) #12832, "Check for path overlaps", merged on 26 April 2025 and released in 10.11.0 on 20 October 2025. Its author, JPVenson, describes it this way: "Added marker file to identify most build in folders and check for cross mounting folders to then stop server".

The code lives in BaseApplicationPaths.cs. The MakeSanityCheckOrThrow function goes over six paths in this order: configuration, logs, plugins, program data, cache and data. In each one it looks for .jellyfin-* files; if it finds one with a different name it throws the exception, and if there is none it creates its own empty file. A healthy 12.4 install with the official image ends up with eight markers:

Path in the container Marker Contents
/config .jellyfin-data Program data
/config/data .jellyfin-data The jellyfin.db database
/config/config .jellyfin-config system.xml, encoding.xml and the other settings
/config/log .jellyfin-log Logs
/config/plugins .jellyfin-plugin Plugins
/config/root .jellyfin-root Library folders
/cache .jellyfin-cache Cache
/cache/transcodes .jellyfin-transcode Temporary transcoding files

The name /config is misleading: in the official image it is the data folder (JELLYFIN_DATA_DIR=/config), and the configuration lives in the /config/config subfolder (JELLYFIN_CONFIG_DIR=/config/config). That is why the message expects .jellyfin-data in /config and complains about a .jellyfin-config.

Which folder layouts trigger the error?

The error appears whenever two Jellyfin folders end up in the same directory. These are the cases I tested on 22 November 2026 with ghcr.io/jellyfin/jellyfin:12.4, each in empty folders except the first:

Case Result
/etc/jellyfin and /var/lib/jellyfin copied together into /config only .jellyfin-data but found marker for /config/.jellyfin-config
JELLYFIN_CONFIG_DIR=/config The same message, on the first start
JELLYFIN_LOG_DIR=/config only .jellyfin-data but found marker for /config/.jellyfin-log
JELLYFIN_CACHE_DIR=/config only .jellyfin-cache but found marker for /config/.jellyfin-data
JELLYFIN_LOG_DIR=/cache only .jellyfin-cache but found marker for /cache/.jellyfin-log
JELLYFIN_CACHE_DIR=/config/cache Starts: a subfolder does not count as an overlap

The first case is the one in issue #17900: someone moving from a native package to Docker who merges the two folders into one. The Debian package keeps the configuration in /etc/jellyfin and the data in /var/lib/jellyfin, each with its own marker, and copying both to the same place puts the two markers side by side.

The second case comes from old installs. I started 10.10.7 with JELLYFIN_CONFIG_DIR=/config and it worked, with system.xml and encoding.xml at the top of /config, because that version did not check anything yet. The same folder under 12.4 gave the error on the first start. If you set that variable years ago, perhaps following a guide on environment variables in Docker Compose, the upgrade takes you to this failure.

Which Jellyfin versions have the marker check?

The check has existed since 10.11.0 and is still in 12.4, which on 22 November 2026 is the latest stable release published on GitHub. I verified it by reading BaseApplicationPaths.cs at each version's tag:

Version Released Marker check
10.10.7 Previous branch Absent: shared folders are accepted (tested)
10.11.0 to 10.11.2 From 20 October 2025 Yes, with the Exepected typo
10.11.3 to 10.11.11 10.11 branch Yes, with the corrected text
12.0 8 September 2026 Yes
12.4 26 October 2026 Yes (tested)

This is not a bug waiting for a patch. In issue #15058 the Jellyfin team answered "This is working as intended" and closed it as "Not A Bug". What has to change is your folder layout.

Fix 1: move the configuration into /config/config

If everything is already mixed in one folder, move the .jellyfin-config marker and the configuration files into the config subfolder. Stop the container first, because during the restart loop Jellyfin creates folders again on every attempt. With the Compose folder from the guide to installing Jellyfin with Docker, list the markers first:

docker compose stop jellyfin
find config -maxdepth 2 -name '.jellyfin-*' | sort
config/config/.jellyfin-config
config/data/.jellyfin-data
config/.jellyfin-config
config/.jellyfin-data
config/log/.jellyfin-log
config/plugins/.jellyfin-plugin
config/root/.jellyfin-root

The extra line is config/.jellyfin-config: the top level should hold .jellyfin-data only. The config/config subfolder already exists because the failed start created it, empty except for its marker, before it reached the check that fails. Move the marker and the configuration files there, then start:

mkdir -p config/config
mv config/.jellyfin-config config/*.xml config/logging*.json config/config/
docker compose up -d
curl -s http://localhost:8096/health
Healthy

If your container runs as root, which is what the official image does without the user option, put sudo before mkdir and mv. In my test the server started with the same ID (8da8e89e…), the user created on the original install logged in, and system.xml kept the ES metadata country I had chosen.

Fix 2: copy each native folder to its own place, unmerged

If you still have the original folders from the native package, do not merge them: copy each one into the subfolder it belongs to. With Jellyfin stopped on the source machine, the mapping is /var/lib/jellyfin to /config, /etc/jellyfin to /config/config and /var/log/jellyfin to /config/log:

mkdir -p config/config config/log cache
sudo cp -a /var/lib/jellyfin/. config/
sudo cp -a /etc/jellyfin/. config/config/
sudo cp -a /var/log/jellyfin/. config/log/

In my lab the source folders were copies with that same structure, created with 12.4 and the four variables from the Debian package. The container started on the first try, with no Unhandled exception line, and with the user and settings intact. There is no need to copy the cache: Jellyfin rebuilds it.

The Jellyfin documentation proposes another route, which I also tested: move nothing, mount each folder at the path it already had and declare the four variables. This compose.yaml fragment is theirs, with the Debian package paths:

    environment:
      - JELLYFIN_CACHE_DIR=/var/cache/jellyfin
      - JELLYFIN_CONFIG_DIR=/etc/jellyfin
      - JELLYFIN_DATA_DIR=/var/lib/jellyfin
      - JELLYFIN_LOG_DIR=/var/log/jellyfin
    volumes:
      - /etc/jellyfin:/etc/jellyfin
      - /var/cache/jellyfin:/var/cache/jellyfin
      - /var/lib/jellyfin:/var/lib/jellyfin
      - /var/log/jellyfin:/var/log/jellyfin

The same page warns about the condition that affects your libraries:

You need to have exactly matching paths for your files inside the docker container!

That sentence explains the second half of issue #17900, whose author reports that their libraries dropped to zero after the first scan. The database stores each library's path as it was on the original machine. Mount your video folders at the same path inside the container, as the guide to Docker volumes and bind mounts explains, before you run a scan.

Fix 3: remove JELLYFIN_CONFIG_DIR=/config and the marker it left behind

If the error comes from the environment variable, removing it is not enough. The failed start has already created /config/.jellyfin-config, so the next attempt, now without the variable, repeats the same message. I checked: same error and exit code 133.

Delete the JELLYFIN_CONFIG_DIR=/config line from your compose.yaml and then apply fix 1. If the folder belongs to a new install and has no system.xml yet, deleting the extra marker is all it takes:

docker compose stop jellyfin
rm config/.jellyfin-config
docker compose up -d

If the folder comes from 10.10 or earlier, with the .xml files at the top level, move them into config/config as in fix 1. With that, my 10.10.7 folder passed the marker check under 12.4. After that a different job begins, the version migration, which is not part of this failure: follow the guide to upgrading Jellyfin 12 with Docker.

Gotchas I ran into while testing

The first one is that deleting only the marker looks like a fix and is half of one. In the merged folder I removed config/.jellyfin-config without moving anything else, and the server started healthy. But Jellyfin read its configuration from /config/config, which was empty, and wrote a new system.xml there: the metadata country went from ES to US. Your system.xml stays at the top of /config, ignored, and the log says nothing about it.

The second one is the restart loop. With restart: unless-stopped, Docker relaunches the container every few seconds and docker compose ps shows Restarting (133). Those Docker Compose restart policies cannot tell a configuration failure from a one-off crash. Stop the service before you touch any file.

The third one is the exit code. Issue #17900 mentions exit 139; in my tests on arm64 it was 133 in every case. Do not use the number to identify the failure: use the message text.

How do I check that the layout is right?

Run three checks: the health status, the markers and the paths Jellyfin says it uses. The first is curl -s http://localhost:8096/health, which must return Healthy. The second repeats the find and must show one marker per folder, with no second one at the top level. The third reads the paths from the log:

docker compose logs jellyfin 2>&1 | grep -E "Main: .* path: /c"
[INF] [7] Main: Program data path: /config
[INF] [7] Main: Log directory path: /config/log
[INF] [7] Main: Config directory path: /config/config
[INF] [7] Main: Cache path: /cache

Each path must differ from the others. The same paths appear in the Paths card of the admin dashboard, which is the screenshot at the top of this post. Finally, open Dashboard > General and confirm your settings are still there, to rule out the deleted-marker case.

Frequently asked questions

Can I delete the .jellyfin-data and .jellyfin-config files?

You can delete one that sits in the wrong folder, but that does not fix the cause. Jellyfin creates them again on the next start, each in the folder it is configured to use. If the configuration files stay in the data folder, the server starts with factory settings, as happened to me with system.xml.

Do I lose my library or users with this error?

Not from the error itself: Jellyfin stops before it opens the database and does not modify jellyfin.db. In my tests, after moving the configuration, the user logged in with their password and the server kept its ID. The risk to libraries comes later, if the video paths inside the container do not match those of the original install.

Does this affect the LinuxServer image?

I have not tested it, so I cannot confirm it. The check is in the server code, not in the image, so any packaging of 10.11 or later runs it. What changes between images is the default paths: read the Main: ... path lines in your log to see which ones yours uses.

Conclusion

Expected to find only .jellyfin-data but found marker for /config/.jellyfin-config says that Jellyfin's configuration and data share a folder, which the server has rejected since 10.11.0. Stop the container, move .jellyfin-config and the configuration files into /config/config, remove JELLYFIN_CONFIG_DIR=/config if you had it, and start. Then check the four paths in the log and your settings in the dashboard, because a marker deleted by hand leaves a healthy server running on factory configuration.

Sources: [1] Jellyfin, issue 17900 on moving from a native install to Docker[1], [2] Jellyfin, issue 15058 on the transcoding marker[2], [3] Jellyfin, PR 12832 Check for path overlaps[3], [4] Jellyfin, BaseApplicationPaths.cs source in 12.4[4], [5] Jellyfin documentation, migrating a Linux install to Docker[5], [6] Jellyfin documentation, configuration and paths[6], [7] Docker documentation, container restart policies[7].

Sources

  1. Jellyfin, issue 17900 on moving from a native install to Docker
  2. Jellyfin, issue 15058 on the transcoding marker
  3. Jellyfin, PR 12832 Check for path overlaps
  4. Jellyfin, BaseApplicationPaths.cs source in 12.4
  5. Jellyfin documentation, migrating a Linux install to Docker
  6. Jellyfin documentation, configuration and paths
  7. Docker documentation, container restart policies