Jellyfin not starting after migration to other drive - Prozoon 700 - 2025-10-05
Good morning to everyone.
Since today, I've encountered a new error that I haven't seen before, and I'm unable to solve it. I have researched some forums and even tried modifying the migrations.xml file, with no result.
The issue I'm having:
Code: [15:31:27] [INF] [1] Main: Running query planner optimizations in the database... This might take a while
[15:31:27] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
[15:31:27] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing PluginManager
[15:31:30] [INF] [1] Main: Jellyfin version: 10.10.7
[15:31:30] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_BaseUrl, /jellyfin]", "[JELLYFIN_PublishedServerUrl, https://lidera-nas.tail31ed3a.ts.net/jellyfin]", "[JELLYFIN_WEB_DIR, /usr/share/jellyfin/web]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_CACHE_DIR, /config/cache]"]
[15:31:30] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[15:31:30] [INF] [1] Main: Operating system: Ubuntu 24.04.3 LTS
[15:31:30] [INF] [1] Main: Architecture: Arm64
[15:31:30] [INF] [1] Main: 64-Bit Process: True
[15:31:30] [INF] [1] Main: User Interactive: True
[15:31:30] [INF] [1] Main: Processor count: 4
[15:31:30] [INF] [1] Main: Program data path: /config/data
[15:31:30] [INF] [1] Main: Log directory path: /config/log
[15:31:30] [INF] [1] Main: Config directory path: /config
[15:31:30] [INF] [1] Main: Cache path: /config/cache
[15:31:30] [INF] [1] Main: Temp directory path: /tmp/jellyfin
[15:31:30] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web
[15:31:30] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
[15:31:31] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /config/cache
[15:31:31] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies
[15:31:32] [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"]
[15:31:32] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []
[15:31:32] [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"]
[15:31:32] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "172.17.0.2"]
[15:31:32] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"]
[15:31:32] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist
[15:31:32] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
[15:31:40] [INF] [1] Emby.Server.Implementations.ApplicationHost: There are pending EFCore migrations in the database. Applying... (This may take a while, do not stop Jellyfin)
[15:31:40] [ERR] [1] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (11ms) [Parameters=[], CommandType='Text', CommandTimeout='30']
CREATE TABLE "Users" (
"Id" TEXT NOT NULL CONSTRAINT "PK_Users" PRIMARY KEY,
"Username" TEXT NOT NULL,
"Password" TEXT NULL,
"EasyPassword" TEXT NULL,
"MustUpdatePassword" INTEGER NOT NULL,
"AudioLanguagePreference" TEXT NULL,
"AuthenticationProviderId" TEXT NOT NULL,
"PasswordResetProviderId" TEXT NOT NULL,
"InvalidLoginAttemptCount" INTEGER NOT NULL,
"LastActivityDate" TEXT NULL,
"LastLoginDate" TEXT NULL,
"LoginAttemptsBeforeLockout" INTEGER NULL,
"SubtitleMode" INTEGER NOT NULL,
"PlayDefaultAudioTrack" INTEGER NOT NULL,
"SubtitleLanguagePreference" TEXT NULL,
"DisplayMissingEpisodes" INTEGER NOT NULL,
"DisplayCollectionsView" INTEGER NOT NULL,
"EnableLocalPassword" INTEGER NOT NULL,
"HidePlayedInLatest" INTEGER NOT NULL,
"RememberAudioSelections" INTEGER NOT NULL,
"RememberSubtitleSelections" INTEGER NOT NULL,
"EnableNextEpisodeAutoPlay" INTEGER NOT NULL,
"EnableAutoLogin" INTEGER NOT NULL,
"EnableUserPreferenceAccess" INTEGER NOT NULL,
"MaxParentalAgeRating" INTEGER NULL,
"RemoteClientBitrateLimit" INTEGER NULL,
"InternalId" INTEGER NOT NULL,
"SyncPlayAccess" INTEGER NOT NULL,
"RowVersion" INTEGER NOT NULL
);
[15:31:40] [FTL] [1] Main: Error while starting server
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'table "Users" already exists'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements()+MoveNext()
at Microsoft.Data.Sqlite.SqliteCommand.GetStatements()+MoveNext()
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location ---
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Storage.RelationalCommand.ExecuteNonQueryAsync(RelationalCommandParameterObject parameterObject, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IEnumerable`1 migrationCommands, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IEnumerable`1 migrationCommands, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IEnumerable`1 migrationCommands, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.MigrationCommandExecutor.ExecuteNonQueryAsync(IEnumerable`1 migrationCommands, IRelationalConnection connection, CancellationToken cancellationToken)
at Microsoft.EntityFrameworkCore.Migrations.Internal.Migrator.MigrateAsync(String targetMigration, CancellationToken cancellationToken)
at Emby.Server.Implementations.ApplicationHost.InitializeServices()
at Emby.Server.Implementations.ApplicationHost.InitializeServices()
at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
[15:31:40] [INF] [1] Main: Running query planner optimizations in the database... This might take a while
[15:31:40] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
[15:31:40] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing PluginManager
I have even asked ChatGPT, but also given no solution.
Thanks in advance, and have a great day!
RE: Jellyfin not starting after migration to other drive - theguymadmax - 2025-10-05
Try removing both the migrations.xml and system.xml files from the folder.
RE: Jellyfin not starting after migration to other drive - Prozoon 700 - 2025-10-05
Tried to and didn't worked. Jellyfin just created new ones and continue giving the same error: https://pastebin.com/2Lj51KbD
RE: Jellyfin not starting after migration to other drive - theguymadmax - 2025-10-05
Try replacing the contents in the migration file with this one:
Code: <?xml version="1.0" encoding="utf-8"?>
<MigrationOptions xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Applied>
<ValueTupleOfGuidString>
<Item1>9b354818-94d5-4b68-ac49-e35cb85f9d84</Item1>
<Item2>CreateNetworkConfiguration</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>a6dcacf4-c057-4ef9-80d3-61cef9ddb4f0</Item1>
<Item2>MigrateMusicBrainzTimeout</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>4fb5c950-1991-11ee-9b4b-0800200c9a66</Item1>
<Item2>MigrateNetworkConfiguration</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>a8e61960-7726-4450-8f3d-82c12daabbcb</Item1>
<Item2>MigrateEncodingOptions</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>4124c2cd-e939-4ffb-9be9-9b311c413638</Item1>
<Item2>DisableTranscodingThrottling</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>ef103419-8451-40d8-9f34-d1a8e93a1679</Item1>
<Item2>CreateLoggingConfigHeirarchy</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>3793eb59-bc8c-456c-8b9f-bd5a62a42978</Item1>
<Item2>MigrateActivityLogDatabase</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>acbe17b7-8435-4a83-8b64-6fcf162cb9bd</Item1>
<Item2>RemoveDuplicateExtras</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>5c4b82a2-f053-4009-bd05-b6fcad82f14c</Item1>
<Item2>MigrateUserDatabase</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>06387815-c3cc-421f-a888-fb5f9992bea8</Item1>
<Item2>MigrateDisplayPreferencesDatabase</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>a81f75e0-8f43-416f-a5e8-516ccab4d8cc</Item1>
<Item2>RemoveDownloadImagesInAdvance</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>5bd72f41-e6f3-4f60-90aa-09869abe0e22</Item1>
<Item2>MigrateAuthenticationDatabase</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>615dfa9e-2497-4dbb-a472-61938b752c5b</Item1>
<Item2>FixPlaylistOwner</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>d34bfc33-5d2e-4790-8085-069ef6eecb4e</Item1>
<Item2>MigrateRatingLevels</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>cf6fabc2-9fbe-4933-84a5-ffe52ef22a58</Item1>
<Item2>FixAudioData</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>96c156a2-7a13-4b3b-a8b8-fb80c94d20c0</Item1>
<Item2>RemoveDuplicatePlaylistChildren</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>eb58ebee-9514-4b9b-8225-12e1a40020df</Item1>
<Item2>AddDefaultPluginRepository</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>5f86e7f6-d966-4c77-849d-7a7b40b68c4e</Item1>
<Item2>ReaddDefaultPluginRepository</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>34a1a1c4-5572-418e-a2f8-32cdfe2668e8</Item1>
<Item2>AddDefaultCastReceivers</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>852816e0-2712-49a9-9240-c6fc5fcad1a8</Item1>
<Item2>UpdateDefaultPluginRepository10.9</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>4ef123d5-8eff-4b0b-869d-3aed07a60e1b</Item1>
<Item2>MoveTrickplayFiles</Item2>
</ValueTupleOfGuidString>
</Applied>
</MigrationOptions>
RE: Jellyfin not starting after migration to other drive - Prozoon 700 - 2025-10-05
[18:01:59] [INF] [1] Main: Jellyfin version: 10.10.7
[18:01:59] [INF] [1] Main: Environment Variables: ["[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_WEB_DIR, /usr/share/jellyfin/web]", "[JELLYFIN_BaseUrl, /jellyfin]", "[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_LOG_DIR, /config/log]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_PublishedServerUrl, https://lidera-nas.tail31ed3a.ts.net/jellyfin]"]
[18:01:59] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]
[18:01:59] [INF] [1] Main: Operating system: Ubuntu 24.04.3 LTS
[18:01:59] [INF] [1] Main: Architecture: Arm64
[18:01:59] [INF] [1] Main: 64-Bit Process: True
[18:01:59] [INF] [1] Main: User Interactive: True
[18:01:59] [INF] [1] Main: Processor count: 4
[18:01:59] [INF] [1] Main: Program data path: /config/data
[18:01:59] [INF] [1] Main: Log directory path: /config/log
[18:01:59] [INF] [1] Main: Config directory path: /config
[18:01:59] [INF] [1] Main: Cache path: /config/cache
[18:01:59] [INF] [1] Main: Temp directory path: /tmp/jellyfin
[18:01:59] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web
[18:01:59] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/
[18:01:59] [FTL] [1] Main: Unhandled Exception
System.InvalidOperationException: There is an error in XML document (12, 1).
---> System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: ValueTupleOfGuidString, Applied, MigrationOptions. Line 12, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlReader.MoveToContent()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read2_ValueTupleOfGuidString(Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read3_MigrationOptions(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
at Jellyfin.Server.Program.StartApp(StartupOptions options)
at Jellyfin.Server.Program.<Main>(String[] args)
Unhandled exception. System.InvalidOperationException: There is an error in XML document (12, 1).
---> System.Xml.XmlException: Unexpected end of file has occurred. The following elements are not closed: ValueTupleOfGuidString, Applied, MigrationOptions. Line 12, position 1.
at System.Xml.XmlTextReaderImpl.Throw(Exception e)
at System.Xml.XmlTextReaderImpl.Throw(String res, String arg)
at System.Xml.XmlTextReaderImpl.ParseElementContent()
at System.Xml.XmlReader.MoveToContent()
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read2_ValueTupleOfGuidString(Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read3_MigrationOptions(Boolean isNullable, Boolean checkType)
at Microsoft.Xml.Serialization.GeneratedAssembly.XmlSerializationReaderMigrationOptions.Read4_MigrationOptions()
at System.RuntimeMethodHandle.InvokeMethod(Object target, Void** arguments, Signature sig, Boolean isConstructor)
at System.Reflection.MethodBaseInvoker.InvokeWithNoArgs(Object obj, BindingFlags invokeAttr)
--- End of inner exception stack trace ---
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader, String encodingStyle, XmlDeserializationEvents events)
at System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader xmlReader)
at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream stream)
at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String file)
at Jellyfin.Server.Migrations.MigrationRunner.RunPreStartup(ServerApplicationPaths appPaths, ILoggerFactory loggerFactory)
at Jellyfin.Server.Program.StartApp(StartupOptions options)
at Jellyfin.Server.Program.<Main>(String[] args)
RE: Jellyfin not starting after migration to other drive - theguymadmax - 2025-10-05
Something didn't copy right. Download and remove the .txt extension and try that file.
|