Jellyfin Forum
Jellyfin Inactive after troubleshooting - 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: Jellyfin Inactive after troubleshooting (/t-jellyfin-inactive-after-troubleshooting)



Jellyfin Inactive after troubleshooting - G_O_B_L_N - 2024-09-13

Hi All,

after having issues with memory, which i have fixed, on my ubuntu server running jellyfin, it now registers as inactive (code snipit below):

Code:
○ 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 Fri 2024-09-13 07:01:19 UTC; 9h ago
  Duration: 6.848s
    Process: 62500 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_N>
  Main PID: 62500 (code=exited, status=0/SUCCESS)
        CPU: 6.566s

Sep 13 07:01:19 colin jellyfin[62500]:    at Jellyfin.Server.Migrations.MigrationRunner.PerformMigrations(IMigrationRou>
Sep 13 07:01:19 colin jellyfin[62500]:    at Jellyfin.Server.Migrations.MigrationRunner.Run(CoreAppHost host, ILoggerFa>
Sep 13 07:01:19 colin jellyfin[62500]:    at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, Star>
Sep 13 07:01:19 colin jellyfin[62500]: [07:01:19] [INF] Running query planner optimizations in the database... This mig>
Sep 13 07:01:19 colin jellyfin[62500]: [07:01:19] [INF] Disposing CoreAppHost
Sep 13 07:01:19 colin jellyfin[62500]: [07:01:19] [INF] Disposing MusicBrainzArtistProvider
Sep 13 07:01:19 colin jellyfin[62500]: [07:01:19] [INF] Disposing MusicBrainzAlbumProvider
Sep 13 07:01:19 colin jellyfin[62500]: [07:01:19] [INF] Disposing PluginManager
Sep 13 07:01:19 colin systemd[1]: jellyfin.service: Deactivated successfully.
Sep 13 07:01:19 colin systemd[1]: jellyfin.service: Consumed 6.566s CPU time, 51.4M memory peak, 0B memory swap peak.

this is after reapplying the etc, cashe, and lib priverages along with a fresh install and recreating the migration.xml file. I would really appreciate some guidance as this is the first server i have built using ubuntu server 24.04.1. i can also supply the most recent log file if needed


RE: Jellyfin Inactive after troubleshooting - TheDreadPirate - 2024-09-13

If you had memory issues before, was Jellyfin crashing ungracefully? I'm wondering if your database is corrupt. If you simply uninstalled then reinstalled jellyfin without purging, your corrupt database is still present.

If this is a fresh install, as in you don't have any data in Jellyfin worth keeping, we can try purging jellyfin.


RE: Jellyfin Inactive after troubleshooting - G_O_B_L_N - 2024-09-13

Hi,

I did run the purge. the reason for the drop was I was transferring over a show through winscp and it errored during the transfer due to lake of space on the partision. this has been expanded now but had restarted the jellyfin and was getting a coredump (below):

Code:
× 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: failed (Result: core-dump) since Thu 2024-09-12 19:51:47 UTC; 6min ago
  Duration: 1.551s
    Process: 11934 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_N>  Main PID: 11934 (code=dumped, signal=ABRT)
        CPU: 995ms

Sep 12 19:51:47 colin systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Sep 12 19:51:47 colin systemd[1]: jellyfin.service: Start request repeated too quickly.
Sep 12 19:51:47 colin systemd[1]: jellyfin.service: Failed with result 'core-dump'.
Sep 12 19:51:47 colin systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.
lines 1-14/14 (END)...skipping...
× 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: failed (Result: core-dump) since Thu 2024-09-12 19:51:47 UTC; 6min ago
  Duration: 1.551s
    Process: 11934 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=dumped, signal=ABRT)
  Main PID: 11934 (code=dumped, signal=ABRT)
        CPU: 995ms

Sep 12 19:51:47 colin systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Sep 12 19:51:47 colin systemd[1]: jellyfin.service: Start request repeated too quickly.
Sep 12 19:51:47 colin systemd[1]: jellyfin.service: Failed with result 'core-dump'.
Sep 12 19:51:47 colin systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.

note that this was before renaming the migration.xml, which is were it went inactive. i have also run the install again after your suggestion and still have had no luck


RE: Jellyfin Inactive after troubleshooting - TheDreadPirate - 2024-09-13

How did you purge jellyfin? "sudo apt purge jellyfin"? I'm not actually sure if apt purge removes the data directory.

Code:
sudo mv /var/lib/jellyfin /var/lib/backupJellyfin
sudo mv /etc/jellyfin /etc/backupJellyfin
sudo systemctl start jellyfin



RE: Jellyfin Inactive after troubleshooting - G_O_B_L_N - 2024-09-13

Looks like we're getting somewhere 

Code:
× 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: failed (Result: exit-code) since Fri 2024-09-13 17:49:50 UTC; 2s ago
  Duration: 5ms
    Process: 103603 ExecStart=/usr/bin/jellyfin $JELLYFIN_WEB_OPT $JELLYFIN_FFMPEG_OPT $JELLYFIN_SERVICE_OPT $JELLYFIN_NOWEBAPP_OPT $JELLYFIN_ADDITIONAL_OPTS (code=exited, status=200/CHDIR)
  Main PID: 103603 (code=exited, status=200/CHDIR)
        CPU: 2ms

Sep 13 17:49:50 colin systemd[1]: jellyfin.service: Scheduled restart job, restart counter is at 5.
Sep 13 17:49:50 colin systemd[1]: jellyfin.service: Start request repeated too quickly.
Sep 13 17:49:50 colin systemd[1]: jellyfin.service: Failed with result 'exit-code'.
Sep 13 17:49:50 colin systemd[1]: Failed to start jellyfin.service - Jellyfin Media Server.

would you be able to advise on the exit-code please?


RE: Jellyfin Inactive after troubleshooting - TheDreadPirate - 2024-09-13

Run this command and copy and paste it to pastebin.com.

Code:
sudo journalctl -u jellyfin -n 200 --no-pager



RE: Jellyfin Inactive after troubleshooting - G_O_B_L_N - 2024-09-13

Paste link is below:

https://pastebin.com/is3zMUAP


RE: Jellyfin Inactive after troubleshooting - TheDreadPirate - 2024-09-13

Copy and paste these commands.

Code:
sudo apt purge jellyfin*
sudo rm -rf /var/lib/jellyfin /etc/jellyfin /var/cache/jellyfin /usr/share/jellyfin
curl https://repo.jellyfin.org/install-debuntu.sh | sudo bash



RE: Jellyfin Inactive after troubleshooting - G_O_B_L_N - 2024-09-13

Thats worked. thank you so much