jellyfin / jellyfin

The Free Software Media System
https://jellyfin.org
GNU General Public License v2.0
33.7k stars 3.08k forks source link

[Issue]: High CPU and Disk Read while using Syncthing to Sync movies #11324

Closed Minegamer95 closed 5 months ago

Minegamer95 commented 5 months ago

Please describe your bug

If i sync my movies using Syncthing to the storage of my Jellyfin Installation while Syncing is active i get a high CPU usage and Disk Read from my Jellyfin installation. When the Sync is finsished by Syncthing the CPU and Read Speed goes down to the normal.

Reproduction Steps

  1. Add a Jellyfin Libary to Jellyfin
  2. Add an Folder, which is getting Synct using Syncthing (Recive Only mode), to the Libary.
  3. Add several movies to another device which sends the data to the Jellyfin folder via Syncthing4.
  4. Now the CPU usage off Jellyfin goes realy high will Syncthing is Syncing the files, also it the File Read Speed goes high

Jellyfin Version

10.8.13

if other:

No response

Environment

- OS: QNAP - QTS 5.1.5.2679
- Linux Kernel: 5.10.60-qnap
- Virtualization: Docker (linuxserver/jellyfin:latest)
- Clients: Browser, Android, IOS
- Browser: Firefox 124.0.2
- Hardware Acceleration: -
- Plugins: AudioDB, Fanart, IMVDb, MusicBrainz, OMDb, Open Subtitles, SkinManager, Studio Images, Subtitle Extract, TMDb, TMDb Box Sets TheTVDB
- Storage: local, Sync with Syncthing

Jellyfin logs

[15:31:20] [INF] [18] Emby.Server.Implementations.IO.LibraryMonitor: Watching directory /data/media/Movies
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'AccessSchedule' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ActivityLog' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'CustomItemDisplayPreferences' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'DisplayPreferences' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'HomeSection' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ImageInfo' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ItemDisplayPreferences' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'Permission' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'Preference' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'ApiKey' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'Device' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'DeviceOptions' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:21] [WRN] [18] Microsoft.EntityFrameworkCore.Model.Validation: The entity type 'User' is configured to use schema 'jellyfin', but SQLite does not support schemas. This configuration will be ignored by the SQLite provider.
[15:31:22] [WRN] [13] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from http://192.168.178.20:8096/dlna/5b09faa1-6b42-4838-9395-1066ab70b99e/contentdirectory/control to 192.168.178.43 in 0:00:00.6369915 with Status Code 200
[15:31:25] [INF] [22] Emby.Dlna.DlnaManager: No matching device profile found. The default will need to be used. 
{"FriendlyName": "MyDevice", "ModelNumber": null, "SerialNumber": null, "ModelName": "Windows Digital Media Renderer", "ModelDescription": "Digital Media Renderer", "ModelUrl": "https://windows.microsoft.com", "Manufacturer": "Microsoft Corporation", "ManufacturerUrl": "https://www.microsoft.com", "Headers": [], "$type": "DeviceIdentification"}
[15:31:25] [INF] [22] Emby.Dlna.Main.DlnaEntryPoint: DLNA Session created for MyDevice - Windows Digital Media Renderer
[15:33:15] [INF] [31] Emby.Server.Implementations.IO.LibraryMonitor: MyCoolMovie (/data/media/Movies/MyCoolMovie) will be refreshed.
[15:34:03] [WRN] [31] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from https://Jelly.mydomain.de/ScheduledTasks?IsEnabled=true to 192.168.178.52 in 0:00:01.1888327 with Status Code 200
[15:34:03] [WRN] [8] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from https://Jelly.mydomain.de/ScheduledTasks?IsEnabled=true to 192.168.178.52 in 0:00:01.2014477 with Status Code 200
[15:34:03] [WRN] [22] Jellyfin.Server.Middleware.ResponseTimeMiddleware: Slow HTTP Response from https://Jelly.mydomain.de/ScheduledTasks?IsEnabled=true to 192.168.178.52 in 0:00:04.2243632 with Status Code 200
[15:34:59] [INF] [23] Emby.Server.Implementations.IO.LibraryMonitor: MyMovie (/data/media/Movies/SomePath/MyMovie) will be refreshed.

FFmpeg logs

No response

Please attach any browser or client logs here

No response

Please attach any screenshots here

grafik grafik

Code of Conduct

jellyfin-bot commented 5 months ago

Hi, it seems like your issue report has the following item(s) that need to be addressed:

This is an automated message, currently under testing. Please file an issue here if you encounter any problems.

felix920506 commented 5 months ago

Try turning off monitoring for the library.

Minegamer95 commented 5 months ago

Thanks, I didn't know that monitoring conflikts with file Synchronisation