Jump to content

Emby does not scan more than 95%


Go to solution Solved by darkassassin07,

Recommended Posts

Posted

Hi, I have added a new folder to the library to scan, but it does not go beyond 95% I have restarted the server several times but it does not finish scanning, it stops at 95% every time. Any ideas?

embyserver.txt

visproduction
Posted

Vaapi codec not compatible with ffmpeg?

see: https://trac.ffmpeg.org/wiki/Hardware/VAAPI
line 1381

Quote

2024-11-16 03:02:19.163 Info VaapiCodecProvider: ProcessRun 'ffdetect_vaencdec' Execute: /opt/emby-server/bin/ffdetect -hide_banner -show_program_version -loglevel 48 -show_error -show_log 40 vaencdec -print_format json 
 

 

Playback error creates C+ null?
lines 2381+

Happens 26 times.

Quote

2024-11-16 03:20:32.827 Info Server: http/1.1 POST http://host1:8096/emby/Sessions/Playing. UserAgent: Dalvik/2.1.0 (Linux; U; Android 9; AFTSSS Build/PS7685.4486N)
2024-11-16 03:20:32.840 Error Server: Error processing request
    *** Error Report ***
    Version: 4.8.8.0
    Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
    Operating system: Linux version 4.15.0-191-generic (buildd@lcy02-amd64-032) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #202-Ubuntu SMP Thu Aug 4 01:49:29 UTC 202
    Framework: .NET 6.0.25
    OS/Process: x64/x64
    Runtime: opt/emby-server/system/System.Private.CoreLib.dll
    Processor count: 8
    Data path: /var/lib/emby
    Application path: /opt/emby-server/system
    System.ArgumentNullException: System.ArgumentNullException: Value cannot be null. (Parameter 'key')
       at System.ThrowHelper.ThrowArgumentNullException(String name)
       at System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(TKey key, Func`2 valueFactory)
       at Emby.Server.Implementations.Session.SessionManager.OnPlaybackStart(PlaybackStartInfo info, SessionInfo session)
       at Emby.Server.Implementations.Services.ServiceController.GetTaskResult(Task task)
       at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost httpHost, IServerApplicationHost appHost, IRequest httpReq, IResponse httpRes, IStreamHelper streamHelper, RestPath restPath, String responseContentType, CancellationToken cancellationToken)
       at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IRequest httpReq, ReadOnlyMemory`1 urlString, ReadOnlyMemory`1 localPath, CancellationToken cancellationToken)
    Source: System.Collections.Concurrent
    TargetSite: Void ThrowArgumentNullException(System.String)
 


Strange error attempt to connect to outside html URL fails?
lines 2573+ 

Quote

2024-11-16 03:21:28.726 Info Server: http/1.1 Response 204 to host2. Time: 4ms. POST http://host1:8096/emby/Sessions/Playing/Progress?X-Emby-Client=Emby for Android&X-Emby-Device-Name=Galaxy Tab A (2016)&X-Emby-Device-Id=668cd01e3702507a&X-Emby-Client-Version=3.4.20&X-Emby-Token=x_secret1_x&X-Emby-Language=es&reqformat=json
2024-11-16 03:21:29.888 Error HttpClient: Connection to http://test2024embgoor.access.ly:25461/DGLHt2utdvkZ/UX2ZTE2tRSdL/1094896 timed out
2024-11-16 03:21:29.892 Error Server: Error processing request
    *** Error Report ***
    Version: 4.8.8.0
    Command line: /opt/emby-server/system/EmbyServer.dll -programdata /var/lib/emby -ffdetect /opt/emby-server/bin/ffdetect -ffmpeg /opt/emby-server/bin/ffmpeg -ffprobe /opt/emby-server/bin/ffprobe -restartexitcode 3 -updatepackage emby-server-deb_{version}_amd64.deb
    Operating system: Linux version 4.15.0-191-generic (buildd@lcy02-amd64-032) (gcc version 7.5.0 (Ubuntu 7.5.0-3ubuntu1~18.04)) #202-Ubuntu SMP Thu Aug 4 01:49:29 UTC 202
    Framework: .NET 6.0.25
    OS/Process: x64/x64
    Runtime: opt/emby-server/system/System.Private.CoreLib.dll
    Processor count: 8
    Data path: /var/lib/emby
    Application path: /opt/emby-server/system
    MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: Connection to http://test2024embgoor.access.ly:25461/DGLHt2utdvkZ/UX2ZTE2tRSdL/1094896 timed out
     ---> System.Threading.Tasks.TaskCanceledException: The request was canceled due to the configured HttpClient.Timeout of 20 seconds elapsing.
     ---> System.TimeoutException: The operation was canceled.
     ---> System.Threading.Tasks.TaskCanceledException: The operation was canceled.
     ---> System.IO.IOException: Unable to read data from the transport connection: Operation canceled.
...

Do you have video thumbnails turned on?
This media file has some issues and it looks like thumbnails cannot be extracted to jpg.

line 31263

Quote

    System.Exception: System.Exception: Error running ffmpeg quick-extract-image for file:"/mnt/series_sh2/00.SERIES/El Caso Cenicienta (2024)/Temporada 01/El Caso Cenicienta - S01E02 - Episodio 2 [1080p WEB-DL h264].mkv" - Command: -f matroska -threads 1 -i file:"/mnt/series_sh2/00.SERIES/El Caso Cenicienta (2024)/Temporada 01/El Caso Cenicienta - S01E02 - Episodio 2 [1080p WEB-DL h264].mkv" -map 0:4 -update 1 -vsync 0 -f image2 "/var/lib/emby/cache/temp/0eedc4f5-bc5d-4887-9def-c5b23c478a2d.jpg"

 

I am unsure of all the reasons on these log entries.  Hopefully this is helpful for someone to do a code review.

darkassassin07
Posted

When the scan appears to be 'stuck', is emby still actively spitting out lines to the log file?

Right up to the end of the provided log, there's lines that suggest the scan is still running, file by file.

"2024-11-16 11:03:14.762 Info MediaProbeManager: ProcessRun 'ffprobe'....."

 

The scan percentage displayed in the dashboard is often misleading, especially with large libraries. The first ~90% always speeds by, but It can appear to be stuck during the last 10% while it is still working away on time consuming tasks. Just verify there is still activity in the logs (ignoring things like playback progress reports) and wait.

Patience is the key.

 

Posted

Also @jrochao2please try removing these plugins:

2024-11-16 03:02:17.560 Info App: Loading ChapterApi, Version=1.3.0.10, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/ChapterApi.dll
2024-11-16 03:02:17.560 Info App: Loading statistics, Version=3.3.1.1, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Statistics.dll
2024-11-16 03:02:17.560 Info App: Loading Emby.MediaInfo, Version=1.0.1.20, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/Emby.MediaInfo.dll
2024-11-16 03:02:17.560 Info App: Loading VantagePoint, Version=2.1.0.5, Culture=neutral, PublicKeyToken=null from /var/lib/emby/plugins/VantagePoint.dll

Then restart the server and see if this helps with your library scan performance. Please let us know how things compare. Thanks.

  • 4 weeks later...
Posted
On 11/17/2024 at 3:26 AM, jrochao2 said:

these is my plugins actually

Captura de pantalla_.jpeg

@jrochao2did you try what I suggested?

Posted

Yes, but I still have problems, the problem is not that it finishes scanning, but that when scanning it sets the scan date to the date I created the folder in the gallery. That is, I add the file yesterday 12/09/2024 and the added date that appears in embu is 11/29/2023. And I don't know why it happens, if I change the date manually it works fine. It doesn't happen in all folders, only in certain ones, so it's not the rclone assembly, it's something in the scan.

  • Solution
darkassassin07
Posted

SmartSelect_20241210_060502_Emby.jpg.1db7eb0dfe6da6227e480c8093222480.jpg

Posted
8 hours ago, jrochao2 said:

Yes, but I still have problems, the problem is not that it finishes scanning, but that when scanning it sets the scan date to the date I created the folder in the gallery. That is, I add the file yesterday 12/09/2024 and the added date that appears in embu is 11/29/2023. And I don't know why it happens, if I change the date manually it works fine. It doesn't happen in all folders, only in certain ones, so it's not the rclone assembly, it's something in the scan.

HI, what is your date added behavior configured to?

Posted
7 hours ago, darkassassin07 said:

SmartSelect_20241210_060502_Emby.jpg.1db7eb0dfe6da6227e480c8093222480.jpg

I have changed It. I didn't have that option selected. What I don't understand is why some galleries are selected and others aren't. I'll scan again tonight and I'll tell you tomorrow.

Happy2Play
Posted

Note this option will have no affect any already imported media as they all already contain the info in the database and nfo file if you write them.

Posted
20 hours ago, darkassassin07 said:

SmartSelect_20241210_060502_Emby.jpg.1db7eb0dfe6da6227e480c8093222480.jpg

This has been the solution, I don't know how it has changed... It will be my children when they take the mobile phone and touch everything, they are 4 years old

  • Thanks 1

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...