Jump to content

[Support] Linuxserver.io - Jellyfin


Recommended Posts

I just updated and cannot open Webgui,

when i look at stdout i see the container rebooting in loop every  3-4 minutes...

 

edit: i am redeploying using linuxserver/jellyfin:10.9.6 to test.

 

edit 2: SQLite unable to open database...
ill try the actual version and rebuild my jellyfin instance with a brand new data folder just to see.

Quote

2024-06-2718 h 58 min 48 s

[custom-init] No custom files found, skipping...

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Jellyfin version: 10.9.6

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Environment Variables: ["[JELLYFIN_WEB_DIR, /usr/share/jellyfin/web]", "[JELLYFIN_CONFIG_DIR, /config]", "[JELLYFIN_DATA_DIR, /config/data]", "[JELLYFIN_CACHE_DIR, /config/cache]", "[JELLYFIN_LOG_DIR, /config/log]"]

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Arguments: ["/usr/lib/jellyfin/bin/jellyfin.dll", "--ffmpeg=/usr/lib/jellyfin-ffmpeg/ffmpeg"]

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Operating system: Ubuntu 22.04.4 LTS

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Architecture: X64

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: 64-Bit Process: True

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: User Interactive: True

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Processor count: 8

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Program data path: /config/data

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Log directory path: /config/log

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Config directory path: /config

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Cache path: /config/cache

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Web resources path: /usr/share/jellyfin/web

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Main: Application directory: /usr/lib/jellyfin/bin/

2024-06-2718 h 59 min 42 s

[18:59:42] [INF] [1] Emby.Server.Implementations.AppBase.BaseConfigurationManager: Setting cache path: /config/cache

2024-06-2719 h 00 min 36 s

[19:00:36] [INF] [1] Emby.Server.Implementations.ApplicationHost: Loading assemblies

2024-06-2719 h 00 min 36 s

[19:00: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"]

2024-06-2719 h 00 min 36 s

[19:00:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Defined LAN exclusions: []

2024-06-2719 h 00 min 36 s

[19:00: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"]

2024-06-2719 h 00 min 36 s

[19:00:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered interface addresses: ["127.0.0.1", "172.17.0.6"]

2024-06-2719 h 00 min 36 s

[19:00:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Bind Addresses ["0.0.0.0"]

2024-06-2719 h 00 min 36 s

[19:00:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist

2024-06-2719 h 00 min 36 s

[19:00:36] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []

2024-06-2719 h 00 min 37 s

[19:00:37] [ERR] [1] Microsoft.EntityFrameworkCore.Database.Command: Failed executing DbCommand (22ms) [Parameters=[], CommandType='Text', CommandTimeout='30']

2024-06-2719 h 00 min 37 s

SELECT COUNT(*) FROM "sqlite_master" WHERE "name" = '__EFMigrationsHistory' AND "type" = 'table';

2024-06-2719 h 00 min 37 s

[19:00:37] [FTL] [1] Main: Error while starting server

2024-06-2719 h 00 min 37 s

Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 14: 'unable to open database file'.

2024-06-2719 h 00 min 37 s

at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)

2024-06-2719 h 00 min 37 s

at Microsoft.Data.Sqlite.SqliteCommand.PrepareAndEnumerateStatements()+MoveNext()

2024-06-2719 h 00 min 37 s

at Microsoft.Data.Sqlite.SqliteCommand.GetStatements()+MoveNext()

2024-06-2719 h 00 min 37 s

at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()

2024-06-2719 h 00 min 37 s

at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)

2024-06-2719 h 00 min 37 s

at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader()

2024-06-2719 h 00 min 37 s

at Microsoft.Data.Sqlite.SqliteCommand.ExecuteScalar()

2024-06-2719 h 00 min 37 s

at System.Data.Common.DbCommand.ExecuteScalarAsync(CancellationToken cancellationToken)

2024-06-2719 h 00 min 37 s

--- End of stack trace from previous location ---

edit3: its working with a brand new config folder, maybe databse got corrupted somehow with the update. i was a little behind in the versions.

Edited by reftek
  • Upvote 1
Link to comment
Posted (edited)

In case anyone fails to scan his library and or crashes the whole unraid server .. what a mess... i found the issue.

 

I installed jellyfin - and it does not matter which container, bbergle or linuxserver or whatever , all behaved same. My movie collection is around 1k 4k movies and a few hundred lower resolution. Each time i scanned my movie folder, my unraid server became unresponsive and even root login was no more possible, after typing in user in console it did not even promp for password (timed out). I tried local as well via KVM, same. 

So i did memtest, all stuff, my hardware is fine. Next step was going by single folders instead all at once - worked better but still freezing sometimes and needed hard reset, awful. After a while i found out that it may caused be out of memory as once unraid freezed with 100% mem usage. So i added a swapfile but did not help. 

 

Next step was to limit the memory of the container --memory=12G and then by surprise, it uses the swap file on top. so i set a swap file to 32G just to test .. after 20 minutes of scan it used up the container 12G + 32G swap ... but it did not immediately crash (it crashed after 20 minutes utilizing all swap). So i had time to dig into the container and found ~300 ffprobe processes ... like endless processes to scan media in parallel. I am sure spinning disks like that a lot ... what a shit.

 

So i stumbled over the (default) parameter  JELLYFIN_FFmpeg__analyzeduration=200M which is like how many frames per movies are analyzed for aspect ratio, codecs etc .... So i reduced this a lot setting a new environment variable to 3M instead 200M -> voila, scan rushed through but failed on many codeds. Then increased to 10M .. again, it used 12GB container mem and 10GB swap ... what a horrible setup. 

 

Next step was a hint in the jellyfin forum, to limit the "Parallel library scan tasks limit" - seems they introduced this in jellyfin 10.9 and thd default is "" (maybe endless ... killing all disk based storage systems). Prevous to 10.9 it was like 1 scan parallel and it just took a while but it worked. so i set this now to 4 and check what happens ... it looks promising.

 

I filed an issue on github to change the default parameter of parallel scans..  or many many spinning disk setups will fail with full lib scans https://github.com/jellyfin/jellyfin/issues/12203

*edit* default parallel scans is the logical core count .. in my case 20 ... no wonder it crashes

Edited by Grobalt
  • Upvote 1
Link to comment

The limitation of threads seems not to work on this linuxserver.io container (jellyfin developer statement at github). So if someone has issues with too many ffprobe threads in parallel, switch to official repository.

Link to comment

I found a very peculiar bug which i need to investigate via upstream a bit more but wanna let you guys know in case youre as confused as i was.

Im sure it affects most of the 10.9.X releases, but i can only confirm it on 10.9.7 atm.

Basically, if you create the collections libary, its empty, no pictures or it has files linked but also no thumbnails.

The problem is: the whole collections are protected from change by default. You need to unlock each collection by hand over the metadata editor and then rescan the libriary to populate all files with their pictures.

Link to comment
Posted (edited)

I have a issue,

My CPU 11900T UHD750

I can enable low-power H.264, But I can't enable low-power HEVC .....

Below setting work fine, but when I enable low-power HEVC, and play movie will be crash

image.thumb.png.3b56bcc8226c320681c90d74dbb64bc8.png

Edited by Bcy
Link to comment
On 9/9/2021 at 12:13 PM, Aer said:

I finally got vaapi transcoding working for the AMD 3200G on unraid for this docker image of jellyfin. Thanks for the image.

If anyone needs to know how I can write up what I did.

APU usage on vaapi transcoding a 4k video between 10-20%. This is very good for a small processor.

 

image.png.b706268f191c03ad3eb987225846ea48.png

 

Previously without hardware accelerated transcoding 4 threads on 90% (software)

 

I would like to have a look at how you got it working.

I have an AMD 6600XT in my all AMD unraid server and I can't find any real documentation on how to get it going apart from the linuxserver.io instructions of 

 

Quote

Intel/ATI/AMD¶

To leverage hardware acceleration you will need to mount /dev/dri video device inside of the container.

--device=/dev/dri:/dev/dri

We will automatically ensure the abc user inside of the container has the proper permissions to access this device.

 

everything seems to be for Nvidia and at a stretch, Intel....

Link to comment

For anyone playing along... I located a post on reddit and it appears transcoding now works according to it now not failing and within the server admin dashboard it advises that a device is transcoding when expected....

 

Quote

 

Im using the latest linuxserver/jellyfin docker image and I have passed --device=/dev/dri in the Extra Parameters field. I have verified that the devices are mounted to the container.

With the default settings, video playback works but it is using software transcoding (I can see the cpu usage in the Unraid dashboard).

In the Jellyfin webui under Dashboard > Playback, I set hardware acceleration to "Video Acceleration API (VAAPI)" and set VA API Device to "/dev/dri/renderD128"

 

 

Made sure these were the case and tried a video file at a lower resolution and bitrate from original over a mobile connection and it appears to work as intended...

Link to comment
30 minutes ago, huladaddy said:

Jellyfin eventually consume 10+ GB of RAM on my system. This basically grinds my entire Unraid server to a halt. What is happening that it consumes so much RAM?

Physical? How did you check it?

Link to comment
45 minutes ago, Krakout said:

Physical? How did you check it?

Ah. I was being hyperbolic. When the above happens (sometimes it consumes more than 12 GB), all four cores of my CPU are pinned. I have Netdata running and although my system is running extremely slowly, eventually Netstat updates and I am able to see how much RAM is being consumed by Jellyfin. If I restart Jellyfin, it takes a few minutes to actually shutdown and restart, but once it does, the RAM is freed up and my CPU settles down an my system becomes usable again.

Link to comment

Hmm. Haven't used jellyfin today, but with my server rebooted some 15 hours ago (power failure) my committed memory is still only at 5GB out of 32 installed. Jellyfin running fine. It is somewhere within the 430MB consumed by (several) containers, according to netdata...

 

Latest version btw, updated yesterday.

Link to comment
  • 2 weeks later...

Hi, I had to reboot my unraid server the other day due to the webui bug, and now jellyfin will not start. It is stuck in a loop.

 

...
[11:42:07] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Remote IP filter is Allowlist
[11:42:07] [INF] [1] Jellyfin.Networking.Manager.NetworkManager: Filtered subnets: []
[11:42:21] [FTL] [1] Main: Error while starting server
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 11: 'database disk image is malformed'.
   at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
   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 Emby.Server.Implementations.Data.SqliteExtensions.Execute(SqliteConnection sqliteConnection, String commandText)
   at Emby.Server.Implementations.Data.ManagedConnection.Execute(String commandText)
   at Emby.Server.Implementations.Data.BaseSqliteRepository.Initialize()
   at Emby.Server.Implementations.Data.SqliteItemRepository.Initialize()
   at Emby.Server.Implementations.ApplicationHost.InitializeServices()
   at Jellyfin.Server.Program.StartServer(IServerApplicationPaths appPaths, StartupOptions options, IConfiguration startupConfig)
[11:42:21] [INF] [1] Main: Running query planner optimizations in the database... This might take a while
[11:42:21] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing CoreAppHost
[11:42:21] [INF] [1] Emby.Server.Implementations.ApplicationHost: Disposing PluginManager

{restarts}

 

is there a way to repair/recover the database?

 

 

EDIT: I believe I got it working again, mostly, although I lost my watch history.... Here is the process I followed:

 

  1. shut down jellyfin
  2. open unraid console and navigate to jf data directory and run....
root@LaForge:~# cd /mnt/user/appdata/docker/jellyfin/data/data
root@LaForge:/mnt/user/appdata/docker/jellyfin/data/data# sqlite3 library.db .dump > recovered_data.sql
root@LaForge:/mnt/user/appdata/docker/jellyfin/data/data# mv library.db library.db.corrupt
root@LaForge:/mnt/user/appdata/docker/jellyfin/data/data# sqlite3 recovered.db < recovered_data.sql
root@LaForge:/mnt/user/appdata/docker/jellyfin/data/data# sqlite3 recovered.db "PRAGMA integrity_check;"
ok
root@LaForge:/mnt/user/appdata/docker/jellyfin/data/data# mv recovered.db library.db
root@LaForge:/mnt/user/appdata/docker/jellyfin/data/data# chown 99:100 library.db
root@LaForge:/mnt/user/appdata/docker/jellyfin/data/data# chmod 644 library.db

    3. re-launch jellyfin and wait forever for it to load and then revalidate the library

 

Hope this helps someone else encountering the same issue...

 

I don't suppose there's any way to get my watch history back?

Edited by SimplifyAndAddCoffee
Link to comment

I got quite a lot of permission errors in the log. I don't know when it started, but my guess would be, since the upgrade to 10.9.x. Currently running 10.9.7. Here are two examples of my log file.

 

[2024-07-28 03:35:12.132 +02:00] [ERR] [58] Jellyfin.Server.Implementations.Trickplay.TrickplayManager: Error creating trickplay images.
System.UnauthorizedAccessException: Access to the path '/config/data/metadata/library/24/24fd5b5915f04733f1f69b84a6cdc46f/trickplay' is denied.

[2024-07-28 09:23:47.633 +02:00] [ERR] [34] MediaBrowser.Providers.Genres.GenreMetadataService: Error in "Dynamic Image Provider"
System.UnauthorizedAccessException: Access to the path '/config/data/metadata/library/3d/3d621c0b6dc1921bc93fa859f7512270/poster.png' is denied.


Bildschirmfoto2024-07-28um19_55_36.thumb.png.28c724a2c83481835884832923980bed.png
 

any ideas or solutions I could try?

thanks

Edited by tem_invictus
Link to comment
  • 2 weeks later...

I've a Intel 13500T and Jellyfin is running with option `--device=/dev/dri` (no external GPU)

 

My iGPU is used, but only with 25% load... at the same time, my CPU has a load >900%

grafik.thumb.png.14924e3cfa061d411761676d7b7d3e75.png

grafik.png.9c3aa9ed5f547b6409ca36b0fa71ad83.png

Is this how it should be?

Link to comment
  • 5 weeks later...

I've read about streaming apps but I don't really understand yet.

 

1) What's the difference between existing apps?

To better understand, how can I divide into categories?

 

Example:

Content managers: Plexy, Emby, Jellyfin
Content mappers: Radarr (videos), Sonaee (shows), Bazarr (subtitles), Jellyseerr (movies).

 

Is this correct?

 

 

2) What do you suggest? I thought about installing Jellyfin, Jellyseerr. Would that be enough?

Link to comment
15 hours ago, Braulio Dias Ribeiro said:

I've read about streaming apps but I don't really understand yet.

 

1) What's the difference between existing apps?

To better understand, how can I divide into categories?

 

Example:

Content managers: Plexy, Emby, Jellyfin
Content mappers: Radarr (videos), Sonaee (shows), Bazarr (subtitles), Jellyseerr (movies).

 

Is this correct?

 

 

2) What do you suggest? I thought about installing Jellyfin, Jellyseerr. Would that be enough?

 

Guys, I've installed almost all of them. As I understand it, it works like this:

- Sonarr and Radarr request to Prowlarr a film/serie/show.
- Prowlarr searches the servers available for download.
- Quando Prowlarr encontra ele envia para o qBittorrent baixar
- Then you can choose an app to watch (Plex, Emby, Jellyfin)
 

I just have one question... where do I download the movies/series/shows?

As I understand it, I need an app to request it (Jellyseerr, Overseer).

I've already set up Radarr, Sonarr with Prowlarr and qBittorrent.

But I don't understand how to configure Jellyfin with Radarr and Sonarr.

 

Link to comment
1 hour ago, Braulio Dias Ribeiro said:

 

Guys, I've installed almost all of them. As I understand it, it works like this:

- Sonarr and Radarr request to Prowlarr a film/serie/show.
- Prowlarr searches the servers available for download.
- Quando Prowlarr encontra ele envia para o qBittorrent baixar
- Then you can choose an app to watch (Plex, Emby, Jellyfin)
 

I just have one question... where do I download the movies/series/shows?

As I understand it, I need an app to request it (Jellyseerr, Overseer).

I've already set up Radarr, Sonarr with Prowlarr and qBittorrent.

But I don't understand how to configure Jellyfin with Radarr and Sonarr.

 

Jellyfin isn't configured with *arr apps. Sonarr or Radarr just organize your files to the folders you specify, then you point jellyfin to those folders to build its database and that's it. 

 

If you've used Kodi, jellyfin is similar to it in that regard.

Edited by Krakout
Link to comment
54 minutes ago, Krakout said:

Jellyfin isn't configured with *arr apps. Sonarr or Radarr just organize your files to the folders you specify, then you point jellyfin to those folders to build its database and that's it. 

 

If you've used Kodi, jellyfin is similar to it in that regard.

 

I managed to make a bit more progress.
I connected the indexers to Prowlarr.

I made a request in Jellyseerr and it started downloading.

Now I have another problem.

 

JellySeerr connects to the Emby folders. I don't understand why, since both Emby and Jellyfin download in the same folder.

But JellySeerr can't find all the Emby folders, even when I click on sync automatically. Synchronizing manua1lly didn't work.

 

image.thumb.png.c8412384cfb4145a02c4057ae767486d.png

 

image.thumb.png.42e8fbd8faf5d7bda3ff524b2ea08fc7.png

Link to comment

Haven't worked with *seerr apps myself (and, by the way, we're off topic here) but are you sure you need Jellyseer? Its purpose is to allow others (family members, friends...) to request media. If you're the sole user, you don't need it, you use Sonarr or Radarr directly.

 

And, by the way, if you use Android on any device, I highly recommend nzb360, which does a really excellent job (and in a beautiful way) managing those apps. Worth every single penny.

Edited by Krakout
Typo
Link to comment
5 hours ago, Krakout said:

Haven't worked with *seerr apps myself (and, by the way, we're off topic here) but are you sure you need Jellyseer? Its purpose is to allow others (family members, friends...) to request media. If you're the sole user, you don't need it, you use Sonarr or Radarr directly.

 

And, by the way, if you use Android on any device, I highly recommend nzb360, which does a really excellent job (and in a beautiful way) managing those apps. Worth every single penny.

 

I don't understand how it works.
Let me try to explain it better.

 

1) I don't know what apps *arr and *seerr .... lol

 

2) I need to download movies, and what I understand I need to request them through an application. Example: JellySeerr, Overseer, NZB360, Ombi, Ombi, others.

 

3) How do I download directly from Sonarr and Radarr? I couldn't find this option. From what I understand, these two applications only organize the information.

I managed to solve it the following way.
- I request the movie from JellySeerr (movie catalog).
- JellySeerr sends it to Sonarr and Radarr (I didn't understand it very well, but it worked).
- Sonarr and Radarr send the request to Prowlarr.
- Prowlarr sends it to qBittorrent.

 

All I know is that it worked. My question was how to download, and I'm downloading through JellySeerr (I click and it downloads automatically).

Link to comment
3 hours ago, Braulio Dias Ribeiro said:

 

I don't understand how it works.
Let me try to explain it better.

 

1) I don't know what apps *arr and *seerr .... lol

 

2) I need to download movies, and what I understand I need to request them through an application. Example: JellySeerr, Overseer, NZB360, Ombi, Ombi, others.

 

3) How do I download directly from Sonarr and Radarr? I couldn't find this option. From what I understand, these two applications only organize the information.

I managed to solve it the following way.
- I request the movie from JellySeerr (movie catalog).
- JellySeerr sends it to Sonarr and Radarr (I didn't understand it very well, but it worked).
- Sonarr and Radarr send the request to Prowlarr.
- Prowlarr sends it to qBittorrent.

 

All I know is that it worked. My question was how to download, and I'm downloading through JellySeerr (I click and it downloads automatically).

As I said, you don't need Jellyseer. You just add the movies or series to the other apps and they download them from the providers you have set. Jellyseer is an unneeded step for you

Link to comment
4 hours ago, Krakout said:

As I said, you don't need Jellyseer. You just add the movies or series to the other apps and they download them from the providers you have set. Jellyseer is an unneeded step for you

Ok, I understood your explications….but what are the others apps? What are the names? That's what I was trying to know.

 

nzb360 does not appear in the Apple Store in Brazil

Edited by Braulio Dias Ribeiro
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...