• Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below
  • Forum
  • Website
  • GitHub
  • Status
  • Translation
  • Features
  • Team
  • Rules
  • Help
  • Feeds
User Links
  • Login
  • Register
  • Login Register
    Login
    Username/Email:
    Password:
    Or login with a social network below

    Useful Links Forum Website GitHub Status Translation Features Team Rules Help Feeds
    Jellyfin Forum Support Troubleshooting Networking & Access SOLVED: Error while starting server - unable to connect to server

     
    • 0 Vote(s) - 0 Average

    SOLVED: Error while starting server - unable to connect to server

    SQLite error 8
    .meditate.
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    Country:Azores
    #1
    2024-12-10, 06:20 AM (This post was last modified: 2024-12-10, 06:29 AM by .meditate.. Edited 2 times in total.)
    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
    Go to solution
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #2
    2024-12-10, 03:01 PM
    Is your disk full? If not, do you have the playback reporting plugin installed?
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    .meditate.
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    Country:Azores
    #3
    2024-12-10, 04:22 PM
    Thanks -- disk isn't full but I do have the playback reporting plugin installed
    TheDreadPirate
    Offline

    Community Moderator

    Posts: 15,375
    Threads: 10
    Joined: 2023 Jun
    Reputation: 460
    Country:United States
    #4
    2024-12-10, 04:34 PM
    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.
    Jellyfin 10.10.7 (Docker)
    Ubuntu 24.04.2 LTS w/HWE
    Intel i3 12100
    Intel Arc A380
    OS drive - SK Hynix P41 1TB
    Storage
        4x WD Red Pro 6TB CMR in RAIDZ1
    [Image: GitHub%20Sponsors-grey?logo=github]
    .meditate.
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    Country:Azores
    #5
    2024-12-10, 04:38 PM (This post was last modified: 2024-12-10, 04:52 PM by .meditate.. Edited 1 time in total.)
    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)
    .meditate.
    Offline

    Junior Member

    Posts: 4
    Threads: 1
    Joined: 2024 Dec
    Reputation: 0
    Country:Azores
    #6
    2024-12-10, 05:02 PM
    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!
    « Next Oldest | Next Newest »

    Users browsing this thread: 1 Guest(s)


    • View a Printable Version
    • Subscribe to this thread
    Forum Jump:

    Home · Team · Help · Contact
    © Designed by D&D - Powered by MyBB
    L


    Jellyfin

    The Free Software Media System

    Linear Mode
    Threaded Mode