Jellyfin Forum
Jellyfin dies after startup - Printable Version

+- Jellyfin Forum (https://forum.jellyfin.org)
+-- Forum: Support (https://forum.jellyfin.org/f-support)
+--- Forum: Troubleshooting (https://forum.jellyfin.org/f-troubleshooting)
+--- Thread: Jellyfin dies after startup (/t-jellyfin-dies-after-startup)

Pages: 1 2


Jellyfin dies after startup - cptguntner - 2023-10-31

Just installed Jellyfin 10.8.11 on my Centos 7 server, and when I start it up, it soon dies.  The following are the messages seen:

[gunther@neuromancer ~]$ sudo systemctl status jellyfin -l
● jellyfin.service - Jellyfin Media Server
  Loaded: loaded (/usr/lib/systemd/system/jellyfin.service; disabled; vendor preset: disabled)
  Drop-In: /etc/systemd/system/jellyfin.service.d
          └─override.conf
  Active: inactive (dead)

Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Jellyfin.Server.Migrations.Routines.MigrateUserDb.Perform()
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Jellyfin.Server.Migrations.MigrationRunner.PerformMigrations                                      (IMigrationRoutine[] migrations, MigrationOptions migrationOptions, Action1 saveConfiguration, ILogger logger)
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [1] Main: Running query planner optimizations in the database... This might take a while
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing EmbyTV
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzAlbumProvider
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing SchedulesDirect
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [2] Main: Received a SIGTERM signal, shutting down

[gunther@neuromancer ~]$ sudo journalctl -xe
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at System.Xml.Serialization.XmlSerializer..ctor(Type type, String defaultNamespace)
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at System.Xml.Serialization.XmlSerializer..ctor(Type type)
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Emby.Server.Implementations.Serialization.MyXmlSerializer.<>c.<GetSerializer>b__1_0(String _, Type
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at System.Collections.Concurrent.ConcurrentDictionary
2.GetOrAdd[TArg](TKey key, Func`3 valueFactory,
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Emby.Server.Implementations.Serialization.MyXmlSerializer.GetSerializer(Type type)
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromStream(Type type, Stream
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Emby.Server.Implementations.Serialization.MyXmlSerializer.DeserializeFromFile(Type type, String fi
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Jellyfin.Server.Migrations.Routines.MigrateUserDb.Perform()
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Jellyfin.Server.Migrations.MigrationRunner.PerformMigrations(IMigrationRoutine[] migrations, Migra
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFactory loggerFactory)
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: at Jellyfin.Server.Program.StartApp(StartupOptions options)
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [1] Main: Running query planner optimizations in the database... This might take a w
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing EmbyTV
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing MusicBrainzAlbumProvider
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing SchedulesDirect
Oct 31 08:19:31 neuromancer.bloodjack.org jellyfin[4860]: [08:19:31] [INF] [2] Main: Received a SIGTERM signal, shutting down
Oct 31 08:19:34 neuromancer.bloodjack.org sudo[4948]:  gunther : TTY=pts/1 ; PWD=/home/gunther ; USER=root ; COMMAND=/bin/systemctl status jellyfin -l
Oct 31 08:19:34 neuromancer.bloodjack.org sudo[4948]: pam_unix(sudo:session): session opened for user root by gunther(uid=0)
Oct 31 08:19:34 neuromancer.bloodjack.org sudo[4948]: pam_unix(sudo:session): session closed for user root
Oct 31 08:19:36 neuromancer.bloodjack.org sshd[4927]: Connection closed by 146.56.198.86 port 56170 [preauth]
Oct 31 08:19:40 neuromancer.bloodjack.org sudo[4981]:  gunther : TTY=pts/1 ; PWD=/home/gunther ; USER=root ; COMMAND=/bin/journalctl -xe
Oct 31 08:19:40 neuromancer.bloodjack.org sudo[4981]: pam_unix(sudo:session): session opened for user root by gunther(uid=0)

Any ideas why it might be getting SIGTERM?  Any place to get better logs?


RE: Jellyfin dies after startup - TheDreadPirate - 2023-10-31

Check /var/log/jellyfin. Share the full log with us, if they are present. Upload them to https://sourceb.in/ and link back here.


RE: Jellyfin dies after startup - cptguntner - 2023-10-31

Log from last time starting up:

https://sourceb.in/QLbnqDoTRc


RE: Jellyfin dies after startup - TheDreadPirate - 2023-10-31

Stop the Jellyfin service

go to /var/lib/jellyfin/data

delete jellyfin.db then start Jellyfin


RE: Jellyfin dies after startup - cptguntner - 2023-10-31

jellyfin.db deleted, still crashing (Though I think it got farther)

Last section of jellyfin logs is https://srcb.in/qJU1D7tiBe

Correction, here is log

https://srcb.in/qJU1D7tiBe


RE: Jellyfin dies after startup - TheDreadPirate - 2023-10-31

Do you have SELinux enabled?


RE: Jellyfin dies after startup - cptguntner - 2023-10-31

No, SELinux is disabled


RE: Jellyfin dies after startup - TheDreadPirate - 2023-10-31

You said you "just" installed Jellyfin. Did you bring over any data or anything? This error usually happens when someone upgrades or migrates.


RE: Jellyfin dies after startup - cptguntner - 2023-11-01

I did have an older version on Jellyfin on the server, but I uninstalled that version to install this version.. I can uninstall this version, but them what directories should I make sure are gone before reinstalling?


RE: Jellyfin dies after startup - TheDreadPirate - 2023-11-01

If you don't care about your old data move these directories somewhere else. Back them up if you care about preserving your data.

/var/lib/jellyfin
/etc/jellyfin

For the record, it is important to provides these kinds of details from the get go. I wouldn't have told you to delete jellyfin.db if I knew you had a previous install.