Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Statistics can't be calculated in lates Emby release #2

Open
ChristophCaina opened this issue Aug 5, 2019 · 0 comments
Open

Statistics can't be calculated in lates Emby release #2

ChristophCaina opened this issue Aug 5, 2019 · 0 comments

Comments

@ChristophCaina
Copy link

Hi, as per discussions in the Emby community, I have decided to create an issue here.
I know, you are currently working on the statistics server, but maybe, you will find some time to see, if you can fix this issue.

I have also forked your statistics plugin and will see, if I can dig into it ... :)

2019-08-03 09:28:19.816 Error TaskManager: Error
	*** Error Report ***
	Version: 4.2.0.40
	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: Unix 4.15.18.12
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: True
	Runtime: file:///opt/emby-server/system/System.Private.CoreLib.dll
	Processor count: 4
	Program data path: /var/lib/emby
	Application directory: /opt/emby-server/system
	System.InvalidOperationException: System.InvalidOperationException: Sequence contains no elements
	   at System.Linq.Enumerable.Aggregate[TSource](IEnumerable`1 source, Func`3 func)
	   at Statistics.Helpers.Calculator.CalculateOldestMovie()
	   at Statistics.ScheduledTasks.CalculateStatsTask.MediaBrowser.Model.Tasks.IScheduledTask.Execute(CancellationToken cancellationToken, IProgress`1 progress)
	   at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker.ExecuteInternal(TaskOptions options)
	Source: System.Linq
	TargetSite: TSource Aggregate[TSource](System.Collections.Generic.IEnumerable`1[TSource], System.Func`3[TSource,TSource,TSource])
	
2019-08-03 09:28:19.816 Info TaskManager: Calculate statistics for all users Failed after 0 minute(s) and 6 seconds
2019-08-03 09:28:19.817 Info TaskManager: ExecuteQueuedTasks
shssoichiro pushed a commit to shssoichiro/statistics-for-emby-server-CORE that referenced this issue Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant