Jellyfin Forum
SOLVED: Error while starting server - unable to connect to server - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+---- Forum: Networking & Access (https://forum.jellyfin.org/f-networking-access)
+---- Thread: SOLVED: Error while starting server - unable to connect to server (/t-solved-error-while-starting-server-unable-to-connect-to-server)



Error while starting server - unable to connect to server - .meditate. - 2024-12-10

Hi there - any help on the below appreciated, I saw similar requests but nothing seems to have permanently solved the issue for me.

Overnight, without external influence Jellyfin stopped working and I'm unable to connect at all on any device. This happened yesterday too, and I did a total clean install which fixed the issue until last night where I'm now getting what looks like the same errors.

Running on OMV in a docker container through compose, Jellyfin version: 10.10.3

What I've done so far:
  • Reboot system
  • Remove docker container, checked no jellyfin instance running with docker ps

Relevant part of the log below - this just repeats over and over after loading the plugins.

Quote:jellyfin | [06:02:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
jellyfin | [06:02:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
jellyfin | [06:02:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Used LAN subnets: ["127.0.0.1/8", "10.0.0.0/8", "172.16.0.0/12", "192.168.0.0/16"]
jellyfin | [06:02:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "172.18.0.2"]
jellyfin | [06:02:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"]
jellyfin | [06:02:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist
jellyfin | [06:02:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
jellyfin  | [06:02:36] [FTL] [1] Main: Error while starting server
jellyfin  | Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 8: 'attempt to write a readonly database'.
jellyfin  |    at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
jellyfin  |    at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
jellyfin  |    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
jellyfin  |    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()
jellyfin  |    at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
jellyfin  |    at Emby.Server.Implementations.Data.SqliteExtensions.Execute(SqliteConnection sqliteConnection, String commandText)
jellyfin  |    at Emby.Server.Implementations.Data.ManagedConnection.Execute(String commandText)
jellyfin  |    at Emby.Server.Implementations.Data.BaseSqliteRepository.Initialize()
jellyfin  |    at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize()
jellyfin  |    at Emby.Server.Implementations.ApplicationHost.InitializeServices()
jellyfin  |    at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
jellyfin  | [06:02:36] [INF] [1] Main: Running query planner optimizations in the database... This might take a while
jellyfin  | [06:02:36] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
jellyfin  | [06:02:36] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing PluginManager


Compose file also for info:
Quote:---
# https://hub.docker.com/r/linuxserver/jellyfin
services:
  jellyfin:
    image: lscr.io/linuxserver/jellyfin:latest
    container_name: jellyfin
    environment:
      - PUID=1000
      - PGID=100
      - TZ=Berlin/Europe
      - DOCKER_MODS=linuxserver/mods:jellyfin-opencl-intel
    devices:
      - /dev/dri:/dev/dri
    volumes:
      - /srv/dev-disk-by-uuid-4d1de0d8-ab38-4c4c-9875-82695e5abbed/ssd/docker/data/jellyfin/library:/config
      - /srv/mergerfs/data/media:/media/
      - /srv/mergerfs/data/torrents:/torrents/
    ports:
      - 8096:8096
    restart: unless-stopped



RE: Error while starting server - unable to connect to server - TheDreadPirate - 2024-12-10

Is your disk full? If not, do you have the playback reporting plugin installed?


RE: Error while starting server - unable to connect to server - .meditate. - 2024-12-10

Thanks -- disk isn't full but I do have the playback reporting plugin installed


RE: Error while starting server - unable to connect to server - TheDreadPirate - 2024-12-10

Try removing the playback reporting plugin. It has its own DB that, sometimes, gets corrupted and prevents startup.

/config/plugins/

Remove the playback reporting folder. In /config/plugins/configurations/ delete the XML for playback reporting.


RE: Error while starting server - unable to connect to server - .meditate. - 2024-12-10

Right -- so I've done as you suggest and rebooted for good measure. But hasn't fixed it although something has changed, I'm getting a new  error for the first time:

Quote:jellyfin  | [16:36:22] [INF] [1] Main: Jellyfin version: 10.10.3
jellyfin  | [16:36:22] [INF] [1] Main: Environment Variables: ["[JELLYFIN_WEB_DIR, /usr/share/jellyfin/web]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_CONFIG_DIR, /config]"]
jellyfin  | [16:36:22] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
jellyfin  | [16:36:22] [INF] [1] Main: Operating system: Ubuntu 24.04.1 LTS
jellyfin  | [16:36:22] [INF] [1] Main: Architecture: X64
jellyfin  | [16:36:22] [INF] [1] Main: 64-Bit Process: True
jellyfin  | [16:36:22] [INF] [1] Main: User Interactive: True
jellyfin  | [16:36:22] [INF] [1] Main: Processor count: 8
jellyfin  | [16:36:22] [INF] [1] Main: Program data path: /config/data
jellyfin  | [16:36:22] [INF] [1] Main: Log directory path: /config/log
jellyfin  | [16:36:22] [INF] [1] Main: Config directory path: /config
jellyfin  | [16:36:22] [INF] [1] Main: Cache path: /config/cache
jellyfin  | [16:36:22] [INF] [1] Main: Temp directory path: /tmp/jellyfin
jellyfin  | [16:36:22] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web
jellyfin  | [16:36:22] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
jellyfin  | Unhandled exception. System.InvalidOperationException: There is an error in XML document (0, 0).
jellyfin  |  ---> System.Xml.XmlException: Root element is missing.
jellyfin  |    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
jellyfin  |    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
jellyfin  |    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
jellyfin  |    at System.Xml.XmlReader.MoveToContent()
jellyfin  |    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
jellyfin  |    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
jellyfin  |    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
jellyfin  |    --- End of inner exception stack trace ---
jellyfin  |    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
jellyfin  |    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
jellyfin  |    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
jellyfin  |    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
jellyfin  |    at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
jellyfin  |    at Jellyfin.Server.Program.StartApp(StartupOptions options)
jellyfin  |    at Jellyfin.Server.Program.<Main>(String[] args)
jellyfin  | [16:36:22] [FTL] [1] Main: Unhandled Exception
jellyfin  | System.InvalidOperationException: There is an error in XML document (0, 0).
jellyfin  |  ---> System.Xml.XmlException: Root element is missing.
jellyfin  |    at System.Xml.XmlTextReaderImpl.Throw(Exception e)
jellyfin  |    at System.Xml.XmlTextReaderImpl.ThrowWithoutLineInfo(String res)
jellyfin  |    at System.Xml.XmlTextReaderImpl.ParseDocumentContent()
jellyfin  |    at System.Xml.XmlReader.MoveToContent()
jellyfin  |    at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
jellyfin  |    at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
jellyfin  |    at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
jellyfin  |    --- End of inner exception stack trace ---
jellyfin  |    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
jellyfin  |    at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
jellyfin  |    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
jellyfin  |    at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
jellyfin  |    at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
jellyfin  |    at Jellyfin.Server.Program.StartApp(StartupOptions options)
jellyfin  |    at Jellyfin.Server.Program.<Main>(String[] args)



RE: Error while starting server - unable to connect to server - .meditate. - 2024-12-10

Seems like I've solved it for now -- deleted all .xml files in the /config folder and rebooted the container. All seems to work now again!