jnheinz 17 Posted June 23, 2017 Posted June 23, 2017 I started to see this yesterday. Calculate statistics for all users failed.a minute ago Object reference not set to an instance of an object. I am on ver 3.2.20.0 of emby. Nothing has changed on the server. This is a Windows 7 machine if that matters. I started getting a similar error after recently upgrading to 3.2.20.0. Nothing else has changed. 2017-06-23 00:00:14.8126 Info HttpClient: HttpClientManager GET: https://thetvdb.com/api/Updates.php?type=all&time=14981061752017-06-23 00:00:34.8448 Error HttpClient: Error getting response from https://thetvdb.com/api/Updates.php?type=all&time=1498106175 *** Error Report *** Version: 3.2.20.0 Command line: C:\Users\sparc\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True Processor count: 6 Program data path: C:\Users\sparc\AppData\Roaming\Emby-Server Application directory: C:\Users\sparc\AppData\Roaming\Emby-Server\system System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The request was aborted: The request was canceled. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) --- End of inner exception stack trace --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Emby.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__22.MoveNext() ---> (Inner Exception #0) System.Net.WebException: The request was aborted: The request was canceled. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization)<--- System.AggregateException at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Emby.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__22.MoveNext() InnerException: System.Net.WebException System.Net.WebException: The request was aborted: The request was canceled. at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) at System.Net.HttpWebRequest.EndGetResponse(IAsyncResult asyncResult) at System.Threading.Tasks.TaskFactory`1.FromAsyncCoreLogic(IAsyncResult iar, Func`2 endFunction, Action`1 endAction, Task`1 promise, Boolean requiresSynchronization) 2017-06-23 00:00:34.8448 Error TaskManager: Error *** Error Report *** Version: 3.2.20.0 Command line: C:\Users\sparc\AppData\Roaming\Emby-Server\system\MediaBrowser.ServerApplication.exe -service Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True Processor count: 6 Program data path: C:\Users\sparc\AppData\Roaming\Emby-Server Application directory: C:\Users\sparc\AppData\Roaming\Emby-Server\system System.ArgumentNullException: Value cannot be null. Parameter name: source at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Statistics.ScheduledTasks.CalculateStatsTask.UpdateTvdbConnection(ShowProgressCalculator calculator, String time, IEnumerable`1 seriesIdsInLibrary, CancellationToken cancellationToken) at Statistics.ScheduledTasks.CalculateStatsTask.CalculateTotalEpisodes(CancellationToken cancellationToken) at Statistics.ScheduledTasks.CalculateStatsTask.<Execute>d__12.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Emby.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__68.MoveNext() System.ArgumentNullException at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Statistics.ScheduledTasks.CalculateStatsTask.UpdateTvdbConnection(ShowProgressCalculator calculator, String time, IEnumerable`1 seriesIdsInLibrary, CancellationToken cancellationToken) at Statistics.ScheduledTasks.CalculateStatsTask.CalculateTotalEpisodes(CancellationToken cancellationToken) at Statistics.ScheduledTasks.CalculateStatsTask.<Execute>d__12.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Emby.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__68.MoveNext() 2017-06-23 00:00:34.8448 Info TaskManager: Calculate statistics for all users Failed after 0 minute(s) and 34 seconds 2017-06-23 00:00:34.8604 Info ServerManager: Sending web socket message NotificationAdded 2017-06-23 00:00:34.8604 Info ServerManager: Sending web socket message ScheduledTaskEnded
motleyc 2 Posted June 23, 2017 Posted June 23, 2017 Mine seemed to fix itself. Nothing changed and the server was not rebooted.
PenkethBoy 2068 Posted June 23, 2017 Posted June 23, 2017 i think the clue is Error getting response from https://thetvdb.com/...time=1498106175 could be handled better if the provider is down 1
reggi 415 Posted July 19, 2017 Author Posted July 19, 2017 After another long time in the hospital I'll have a look at the exception when the provider is down. I thought I fixed that issue before. Seems my fix is not working
reggi 415 Posted July 29, 2017 Author Posted July 29, 2017 Hey guys, just got a new version pushed to the plugin library. Major update on the UI and I added 4 new graphs on the main page. Let me know what you think about them (and if I should add more). As always, I don't have a lot of historical data, so when you view a movie again it will update the LastPlayedDate and so the graphs will change! New version number is: 1.1.6419.41498 (Release) 1
PenkethBoy 2068 Posted July 29, 2017 Posted July 29, 2017 Hi @@reggi hope you are feeling better some issues i am seeing 1) newest added episode and newest added movie are from - 736538 days ago! 2) Studios for both Shows and Movies are zero - movies and shows do have studio's in their metadata 3) Favorite Movie Years and Genres are blank - also Favourite Shoe Genres is also blank - i dont have any favourites set - would this account for that? Rest looks ok 1
reggi 415 Posted July 30, 2017 Author Posted July 30, 2017 (edited) I'm on it, thanks!! EDIT Just fixed and released a new version. Looks like I had to add some ItemFields from now on in my queries @@PenkethBoy You like the new UI? or is the old one better. Edited July 30, 2017 by reggi
Emby Tower 34 Posted July 30, 2017 Posted July 30, 2017 The new order of the boxes looks little bit strange: http://prntscr.com/g221gi Now it isn't possible to see all boxes ... 1
reggi 415 Posted July 30, 2017 Author Posted July 30, 2017 (edited) I'll put an update in Beta version. The layout should be fixed now (full width) but for some reason, the chart.js file is not loaded on my live server. Any one else got that problem? Or can you guys all see 4 charts on the main screen. EDIT Looks like it was an issue with loading the char.js file over http when surfing to emby over https. Switched to https now and everything is working fine Edited July 30, 2017 by reggi
PenkethBoy 2068 Posted July 30, 2017 Posted July 30, 2017 Hi @@reggi thanks for fixing the three issues i had But i am not getting any graphs now in version 1.1.6420.19039 - just blank space where the graphs would be - this is on beta and stable - no errors in the server logs Had graphs in the first "new" version i tried last night Could you add a text field with the plugin version number on the landing page for the plugin to make it easier to check which version you have loaded - please
reggi 415 Posted July 30, 2017 Author Posted July 30, 2017 I added a plugin version string on top. Why the graphs are empty I have no idea, on my test server they are working, on my live server they are not. Looks like the calculations go wrong somewhere.
PenkethBoy 2068 Posted July 30, 2017 Posted July 30, 2017 Can see the version number (need to re run the scheduled task to make it appear) have checked the xml and the data for the graphs is there but they are just blank - for beta
Guest Posted July 31, 2017 Posted July 31, 2017 Hello everyone, I would like to know two things: 1. Is it possible to list the selected movies by resolution? I have several movies with resolution up to 480p and would like to have print the list to delete from my library. 2. Is it possible to translate plugin titles? I could translate it into Brazilian Portuguese and share. Thank you
Dibbes 514 Posted August 1, 2017 Posted August 1, 2017 @@reggi, not sure if this was reported already, but it seems I'm missing some stats here: 1. Is it possible to list the selected movies by resolution? I have several movies with resolution up to 480p and would like to have print the list to delete from my library. I also really love this suggestion! And last, superb work here! Thanks
CBers 7450 Posted August 1, 2017 Posted August 1, 2017 My graphs are missing also (Plugin version: 1.1.6420.29078).
blastbass 0 Posted August 2, 2017 Posted August 2, 2017 Hello @@reggi, Is it possible to see, in you plugin the ranking of all film sorted by watched ? I want to see, in my collection what movies has been watched or never watched.
Oxide 139 Posted August 2, 2017 Posted August 2, 2017 Would it be possible to add an option in the "User-based show progress" section to combine all the users stats, this would be handy if you need to make space on the server and can see what hasn't been watched so you can delete those series.
Jdiesel 1431 Posted August 2, 2017 Posted August 2, 2017 (edited) 1. Is it possible to list the selected movies by resolution? I have several movies with resolution up to 480p and would like to have print the list to delete from my library. You can use the "Reports" feature to view information like resolution and audio codec. For some reason it does not let you sort by resolution which I swear it did before but you can export the list and sort if you'd like. Edit: You must change the grouping to Resolution Edited August 2, 2017 by Jdiesel
reggi 415 Posted August 6, 2017 Author Posted August 6, 2017 (edited) Thanks for all the ideas for updating the plugin with new stats, I'll do my best to include them all. But first I need to fix the graphs, my own live server is down at the moment and on my test server the graphs are working I'll keep you all posted!! EDIT @@Dibbes, @@PenkethBoy, @@CBers Can you guys check if you open the developer tools in chrome if there is an error loading a script? Maybe that's the problem. Are you guys running on http or https? Edited August 6, 2017 by reggi
PenkethBoy 2068 Posted August 7, 2017 Posted August 7, 2017 (edited) @@reggi the graphs work with the new version but am having failures running the scheduled task also i have no general stats on first page just the two sets of graphs - this is with beta server using http not https 2017-08-07 01:42:24.1518 Info TaskManager: Executing Calculate statistics for all users 2017-08-07 01:42:24.1518 Info HttpServer: HTTP Response 204 to 192.168.1.11. Time: 0ms. http://192.168.1.81:9096/emby/ScheduledTasks/Running/d459f39d7abb81f5fcce03048a7ecf4d 2017-08-07 01:42:24.1518 Info HttpServer: HTTP GET http://192.168.1.81:9096/emby/ScheduledTasks?isHidden=false. UserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36 2017-08-07 01:42:24.1518 Info HttpServer: HTTP Response 200 to 192.168.1.11. Time: 0ms. http://192.168.1.81:9096/emby/ScheduledTasks?isHidden=false 2017-08-07 01:42:24.2143 Info HttpClient: HttpClientManager GET: https://thetvdb.com/api/Updates.php?type=all&time=1502065877 2017-08-07 01:42:24.9174 Info HttpClient: HttpClientManager GET: https://thetvdb.com/api/Updates.php?type=none 2017-08-07 01:42:28.4643 Error TaskManager: Error *** Error Report *** Version: 3.2.26.16 Command line: D:\Emby-Beta\System\MediaBrowser.ServerApplication.exe Operating system: Microsoft Windows NT 6.2.9200.0 64-Bit OS: True 64-Bit Process: True Processor count: 8 Program data path: D:\Emby-Beta Application directory: D:\Emby-Beta\System System.MissingMethodException: Method not found: 'System.Collections.Generic.IEnumerable`1<MediaBrowser.Model.Entities.MediaStream> MediaBrowser.Controller.Entities.Video.GetMediaStreams()'. at Statistics.Helpers.Calculator.<>c.<CalculateMovieQualities>b__21_0(Movie x) at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x) at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Statistics.Helpers.Calculator.CalculateMovieQualities() at Statistics.ScheduledTasks.CalculateStatsTask.<Execute>d__12.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Emby.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__68.MoveNext() System.MissingMethodException at Statistics.Helpers.Calculator.<>c.<CalculateMovieQualities>b__21_0(Movie x) at System.Linq.Enumerable.<>c__DisplayClass7_0`3.<CombineSelectors>b__0(TSource x) at System.Linq.Enumerable.WhereSelectEnumerableIterator`2.MoveNext() at System.Collections.Generic.List`1..ctor(IEnumerable`1 collection) at System.Linq.Enumerable.ToList[TSource](IEnumerable`1 source) at Statistics.Helpers.Calculator.CalculateMovieQualities() at Statistics.ScheduledTasks.CalculateStatsTask.<Execute>d__12.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Emby.Common.Implementations.ScheduledTasks.ScheduledTaskWorker.<ExecuteInternal>d__68.MoveNext() 2017-08-07 01:42:28.4643 Info TaskManager: Calculate statistics for all users Failed after 0 minute(s) and 4 seconds 2017-08-07 01:42:28.4799 Info ServerManager: Sending web socket message NotificationAdded 2017-08-07 01:42:28.4799 Info ServerManager: Sending web socket message ScheduledTaskEnded 2017-08-07 01:42:28.4799 Info TaskManager: ExecuteQueuedTasks Edited August 7, 2017 by PenkethBoy
PenkethBoy 2068 Posted August 7, 2017 Posted August 7, 2017 the new version of the plugin works on the stable server - i have graphs again 1
makarai 109 Posted August 7, 2017 Posted August 7, 2017 (edited) i hope in the longrun the statistics tool you are working on has similar usability to https://i.imgur.com/0D0uFJg.jpg https://i.imgur.com/BaDdr45.png ! that would be great Edited August 7, 2017 by makarai 1
reggi 415 Posted August 7, 2017 Author Posted August 7, 2017 (edited) I know the PlexPy looks very good, but at the moment I don't have the full time to develop that kind of system. I do am working on a standalone version of the plugin that can run on any platform. But this is still in a pre alpha phase. Edited August 7, 2017 by reggi
CBers 7450 Posted August 7, 2017 Posted August 7, 2017 EDIT @@Dibbes, @@PenkethBoy, @@CBers Can you guys check if you open the developer tools in chrome if there is an error loading a script? Maybe that's the problem. Are you guys running on http or https? Sorry @@reggi, but haven't had a chance as yet. Hopefully later this week.
Dibbes 514 Posted August 7, 2017 Posted August 7, 2017 (edited) @@reggi, with the latest version the graphs load, but aren't populated: Plugin verion: 1.1.6427.39626Server Version 3.2.26.0 A cosmetic thing, but you may want to Episodes for series only and there's an "s" missing in the version string EDIT: I'm using plain http, no certificates etc. Edited August 7, 2017 by Dibbes
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now