Jump to content

Problème tache "statistics"


MAX92

Recommended Posts

Happy2Play

Quel est le numéro de version du plug-in ?

Si vous êtes allé à cet endroit, ce fichier existe-t-il ? /var/packages/EmbyServer/var/cache/tvdb/81731/episodes-official.json

Mais ces erreurs proviennent d'Emby qui n'a actuellement pas les métadonnées mises en cache pour les séries que le plug-in utilise pour ses informations. Vous devrez donc peut-être rafraîchir votre bibliothèque TV.

 

What is the plugin version number?

If you went to this location does that file exist? /var/packages/EmbyServer/var/cache/tvdb/81731/episodes-official.json

But those errors are from Emby currently not having the cached metadata for series that the plug in using for its information.  So you may have to refresh your TV library.

@hackthis02

Link to comment
Share on other sites

Version : 3.0.2.1

Après rafraichissement de la bibliothèque, la tâche a été plus loin mais ne s'est toujours pas terminée correctement.

Je suis allé dans le répertoire  /var/packages/EmbyServer/var/cache/tvdb/ et il n'existe pas 

81731, 0, 7957

Voici le nouveau fichier.

Emby.txt

Link to comment
Share on other sites

hackthis02

@MAX92 Confirm you have the TVDB plugin installed and refresh the metadata on your TV library. Then try running the statistics task again. Also enable debug logging for your next emby.log.

Edited by hackthis02
Link to comment
Share on other sites

Bonjour, je confirme que TVDB plugin est bien installé.

Par contre, je ne veux pas modifier les métadata car j'ai souvent des problèmes et je ne veux pas risquer. 

Voici les log avec le mode debug.

Emby.txt

 

Edit : I try to refresh metadat onl for 7957 and there is always a problem

 

2022-08-30 20:01:47.744 Error Statistics: Could not find a part of the path '/var/packages/EmbyServer/var/cache/tvdb/7957/episodes-official.json'.
 
Edited by MAX92
Link to comment
Share on other sites

Happy2Play

To me the "episodes-official.json" errors are normal but the ending error is not. @hackthis02

2022-08-30 18:36:57.512 Debug Statistics: CalculateMovieQualities Stalk: ENSI Us: 720p
2022-08-30 18:36:57.513 Error TaskManager: Error
	*** Error Report ***
	Version: 4.7.6.0
	Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.dll -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology7_{version}_x86_64.spk -noautorunwebapp
	Operating system: Linux version 4.4.180+ (root@build2) (gcc version 8.5.0 (GCC) ) #42661 SMP Mon Jun 27 15:07:20 CST 2022
	Framework: .NET 6.0.2
	OS/Process: x64/x64
	Runtime: volume1/@appstore/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 2
	Data path: /var/packages/EmbyServer/var
	Application path: /volume1/@appstore/EmbyServer/system
	System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
	   at Statistics.Helpers.Calculator.CalculateMovieQualities()
	   at Statistics.ScheduledTasks.CalculateStatsTask.MediaBrowser.Model.Tasks.IScheduledTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
	   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
	Source: statistics
	TargetSite: statistics.Models.Configuration.ValueGroup CalculateMovieQualities()
	
2022-08-30 18:36:57.513 Debug TaskManager: Calculate statistics for all users Failed after 0 minute(s) and 36 seconds

 

Link to comment
Share on other sites

hackthis02
On 8/30/2022 at 11:35 AM, MAX92 said:

Edit : I try to refresh metadat onl for 7957 and there is always a problem

 

2022-08-30 20:01:47.744 Error Statistics: Could not find a part of the path '/var/packages/EmbyServer/var/cache/tvdb/7957/episodes-official.json'.
 

I think the issue is there is no series with the id #7975 on theTVDB.com. I would suggest getting the correct ID from the website and manually updating the metadata with it.

 

On 8/30/2022 at 1:03 PM, Happy2Play said:

To me the "episodes-official.json" errors are normal but the ending error is not. @hackthis02

2022-08-30 18:36:57.512 Debug Statistics: CalculateMovieQualities Stalk: ENSI Us: 720p
2022-08-30 18:36:57.513 Error TaskManager: Error
	*** Error Report ***
	Version: 4.7.6.0
	Command line: /volume1/@appstore/EmbyServer/system/EmbyServer.dll -programdata /var/packages/EmbyServer/var -ffdetect /var/packages/EmbyServer/target/bin/ffdetect -ffmpeg /var/packages/EmbyServer/target/bin/ffmpeg -ffprobe /var/packages/EmbyServer/target/bin/ffprobe -nolocalportconfig -ignore_vaapi_enabled_flag -pidfile /var/packages/EmbyServer/var/EmbyServer.pid -defaultdirectory /volume1/Public -updatepackage emby-server-synology7_{version}_x86_64.spk -noautorunwebapp
	Operating system: Linux version 4.4.180+ (root@build2) (gcc version 8.5.0 (GCC) ) #42661 SMP Mon Jun 27 15:07:20 CST 2022
	Framework: .NET 6.0.2
	OS/Process: x64/x64
	Runtime: volume1/@appstore/EmbyServer/system/System.Private.CoreLib.dll
	Processor count: 2
	Data path: /var/packages/EmbyServer/var
	Application path: /volume1/@appstore/EmbyServer/system
	System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
	   at Statistics.Helpers.Calculator.CalculateMovieQualities()
	   at Statistics.ScheduledTasks.CalculateStatsTask.MediaBrowser.Model.Tasks.IScheduledTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
	   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
	Source: statistics
	TargetSite: statistics.Models.Configuration.ValueGroup CalculateMovieQualities()
	
2022-08-30 18:36:57.513 Debug TaskManager: Calculate statistics for all users Failed after 0 minute(s) and 36 seconds

 

I'm not sure why it's failing here. Unless there is some new resolution format I haven't seen. I've pushed a build with some more error checking.

Link to comment
Share on other sites

Happy2Play
11 hours ago, MAX92 said:

@hackthis02 : There is no problem with #7975. Where do you find this ? 

The series aren't new. It's a very long time I have it.

I suspect a typo.

The json error is in your log is 7957 so I am guessing item with wrong or changed id.

https://thetvdb.com/?tab=series&id=7957

Just like what series has the wrong id of "0"?

2022-08-30 18:36:21.321 Debug Statistics: /var/packages/EmbyServer/var/cache/tvdb/0/episodes-official.json
2022-08-30 18:36:21.322 Error Statistics: Could not find a part of the path '/var/packages/EmbyServer/var/cache/tvdb/0/episodes-official.json'.

But the task failing issue to me would apply the final error.

Link to comment
Share on other sites

Happy2Play

@hackthis02Not sure what exactly changed recently but I have a test system with lots of dummy media the plugin fails, but my primary server with real media works fine.  So it would appear to be something with CalculateMovieQualities and fake media.

2022-09-01 18:53:09.300 Debug Statistics: CalculateMovieQualities X2: 
2022-09-01 18:53:09.300 Debug Statistics: CalculateMovieQualities X2: 
2022-09-01 18:53:09.300 Debug Statistics: CalculateMovieQualities Zero Days: 
2022-09-01 18:53:09.302 Error TaskManager: Error
	*** Error Report ***
	Version: 4.7.6.0
	Command line: C:\Users\Media\Desktop\Stable\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows 10.0.25188
	Framework: .NET 6.0.7
	OS/Process: x64/x64
	Runtime: C:/Users/Media/Desktop/Stable/system/System.Private.CoreLib.dll
	Processor count: 8
	Data path: C:\Users\Media\Desktop\Stable\programdata
	Application path: C:\Users\Media\Desktop\Stable\system
	System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
	   at Statistics.Helpers.Calculator.CalculateMovieQualities()
	   at Statistics.ScheduledTasks.CalculateStatsTask.MediaBrowser.Model.Tasks.IScheduledTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
	   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
	Source: statistics
	TargetSite: statistics.Models.Configuration.ValueGroup CalculateMovieQualities()
	
2022-09-01 18:53:09.302 Debug TaskManager: Calculate statistics for all users Failed after 0 minute(s) and 2 seconds

 

Edited by Happy2Play
Link to comment
Share on other sites

hackthis02
10 hours ago, Happy2Play said:

@hackthis02Not sure what exactly changed recently but I have a test system with lots of dummy media the plugin fails, but my primary server with real media works fine.  So it would appear to be something with CalculateMovieQualities and fake media.

2022-09-01 18:53:09.300 Debug Statistics: CalculateMovieQualities X2: 
2022-09-01 18:53:09.300 Debug Statistics: CalculateMovieQualities X2: 
2022-09-01 18:53:09.300 Debug Statistics: CalculateMovieQualities Zero Days: 
2022-09-01 18:53:09.302 Error TaskManager: Error
	*** Error Report ***
	Version: 4.7.6.0
	Command line: C:\Users\Media\Desktop\Stable\system\EmbyServer.dll -noautorunwebapp
	Operating system: Microsoft Windows 10.0.25188
	Framework: .NET 6.0.7
	OS/Process: x64/x64
	Runtime: C:/Users/Media/Desktop/Stable/system/System.Private.CoreLib.dll
	Processor count: 8
	Data path: C:\Users\Media\Desktop\Stable\programdata
	Application path: C:\Users\Media\Desktop\Stable\system
	System.NullReferenceException: System.NullReferenceException: Object reference not set to an instance of an object.
	   at Statistics.Helpers.Calculator.CalculateMovieQualities()
	   at Statistics.ScheduledTasks.CalculateStatsTask.MediaBrowser.Model.Tasks.IScheduledTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
	   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
	Source: statistics
	TargetSite: statistics.Models.Configuration.ValueGroup CalculateMovieQualities()
	
2022-09-01 18:53:09.302 Debug TaskManager: Calculate statistics for all users Failed after 0 minute(s) and 2 seconds

 

That makes sense. I've tried to wrap the latest version in as many null checks as I can. But if Emby is giving me something without a resolution or a codec it might break.

Link to comment
Share on other sites

Happy2Play
5 hours ago, hackthis02 said:

That makes sense. I've tried to wrap the latest version in as many null checks as I can. But if Emby is giving me something without a resolution or a codec it might break.

This can be problematic for users with strm files as none of them will have this until after first playback.  Also how are Stub file (.disc) files treated?

Link to comment
Share on other sites

hackthis02
1 hour ago, Happy2Play said:

This can be problematic for users with strm files as none of them will have this until after first playback.  Also how are Stub file (.disc) files treated?

If Emby doesn't have that information, I'm not really sure how I'm expected to get it. As of now, I have all those sections wrapped in better error checks, so it should just skip them. I'm not handling actual files like strm or disc. I'm simply collating the data from Emby's DB.

  • Like 1
Link to comment
Share on other sites

Statistic, je l'ai viré. Elle me fait toujours des merdes sinon.
Genre mon dossier "séries" qui scan la bibliothèque en boucle..

J'utilise surtout Playback Reporting que j'aime bcp.

Edited by thymon
  • Thanks 1
Link to comment
Share on other sites

  • 2 weeks later...
Happy2Play

As discussed in the other topic the issue is Unidentified Series in Emby and Stats now choke on them.

Currently only fix is finding the offending Series/episodes, you have to copy the database and run this query to find the problem items.

as couple posts above in that link shows and example.

Edited by Happy2Play
Link to comment
Share on other sites

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...