Jellyfin Forum
Failed to start jellyfin.service - Jellyfin Media Server. - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: General Questions (https://forum.jellyfin.org/f-general-questions)
+--- Thread: Failed to start jellyfin.service - Jellyfin Media Server. (/t-failed-to-start-jellyfin-service-jellyfin-media-server)

Pages: 1 2 3


Failed to start jellyfin.service - Jellyfin Media Server. - rahulsharma49 - 2024-06-01

All of sudden I am not able to start my Jellyfin server.

I am getting error as -

Failed to start jellyfin.service - Jellyfin Media Server.

Please see below screenshot for better understanding

https://imgur.com/a/ju3huyA

https://imgur.com/bNU9Pqr


https://imgur.com/bNU9Pqr


RE: Failed to start jellyfin.service - Jellyfin Media Server. - TheDreadPirate - 2024-06-01

Run this command so we can get more info.

sudo journalctl -u jellyfin

It will put in you in text editor like interface. Press shift+g to go to the bottom. Copy and paste the last ~100 lines into pastebin and share the link back here.


RE: Failed to start jellyfin.service - Jellyfin Media Server. - rahulsharma49 - 2024-06-02

Here you go -

https://pastebin.com/DZ5af7Xm


RE: Failed to start jellyfin.service - Jellyfin Media Server. - TheDreadPirate - 2024-06-02

Go to /etc/jellyfin. Are any of the XMLs empty? migrations.xml?


RE: Failed to start jellyfin.service - Jellyfin Media Server. - rahulsharma49 - 2024-06-02

yes, its there


RE: Failed to start jellyfin.service - Jellyfin Media Server. - TheDreadPirate - 2024-06-02

But is the file size empty? Are any of the XML files in that directory empty? As in the file size is zero?


RE: Failed to start jellyfin.service - Jellyfin Media Server. - rahulsharma49 - 2024-06-02

migration.xml was empty so i took backup of it and restarted jellyfin so it created a new migration.xml with following contents -



<?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>4124c2cd-e939-4ffb-9be9-9b311c413638</Item1>
<Item2>DisableTranscodingThrottling</Item2>
</ValueTupleOfGuidString>
<ValueTupleOfGuidString>
<Item1>ef103419-8451-40d8-9f34-d1a8e93a1679</Item1>
<Item2>CreateLoggingConfigHeirarchy</Item2>
</ValueTupleOfGuidString>
</Applied>
</MigrationOptions>



that folder has system.xml and network.xml but they are not empty.

now when jellyfin has created a new migration.xml, here is what i am getting as error -

$ sudo service jellyfin status
○ jellyfin.service - Jellyfin Media Server
Loaded: loaded (/usr/lib/systemd/system/jellyfin.service; enabled; preset: enabled)
Drop-In: /etc/systemd/system/jellyfin.service.d
└─jellyfin.service.conf
Active: inactive (dead) since Sun 2024-06-02 14:31:43 IST; 7h ago
Duration: 2.295s
Process: 17595 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=exited, status=0/SUCCESS)
Main PID: 17595 (code=exited, status=0/SUCCESS)
CPU: 2.315s

Jun 02 14:31:43 homeserver jellyfin[17595]: at Jellyfin.Server.Migrations.MigrationRunner.PerformMigrations(IMigrationRoutine[] migrations, MigrationOptions migrationOptions, Action`1 saveConfiguration, IL>
Jun 02 14:31:43 homeserver jellyfin[17595]: at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
Jun 02 14:31:43 homeserver jellyfin[17595]: at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
Jun 02 14:31:43 homeserver jellyfin[17595]: [14:31:43] [INF] Running query planner optimizations in the database... This might take a while
Jun 02 14:31:43 homeserver jellyfin[17595]: [14:31:43] [INF] Disposing CoreAppHost
Jun 02 14:31:43 homeserver jellyfin[17595]: [14:31:43] [INF] Disposing MusicBrainzArtistProvider
Jun 02 14:31:43 homeserver jellyfin[17595]: [14:31:43] [INF] Disposing MusicBrainzAlbumProvider
Jun 02 14:31:43 homeserver jellyfin[17595]: [14:31:43] [INF] Disposing PluginManager
Jun 02 14:31:43 homeserver systemd[1]: jellyfin.service: Deactivated successfully.
Jun 02 14:31:43 homeserver systemd[1]: jellyfin.service: Consumed 2.315s CPU time, 60.9M memory peak, 0B memory swap peak.
lines 1-20/20 (END)


On sudo journalctl -u jellyfin, getting this - https://pastebin.com/gcFsM1Lx


RE: Failed to start jellyfin.service - Jellyfin Media Server. - TheDreadPirate - 2024-06-02

Those logs are from June 1. You need to press shift+g to go to the bottom. /var/log/jellyfin should also have some logs now.


RE: Failed to start jellyfin.service - Jellyfin Media Server. - rahulsharma49 - 2024-06-02

Here you go


https://pastebin.com/mACn6j3k


RE: Failed to start jellyfin.service - Jellyfin Media Server. - TheDreadPirate - 2024-06-02

Did your disk fill up?

Code:
Jun 02 14:31:43 homeserver jellyfin[17595]: [14:31:43] [FTL] Error while starting server
Jun 02 14:31:43 homeserver jellyfin[17595]: Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 1: 'no such table: ActivityLog'.

Looks like your database was corrupted or truncated. Do you have backups?