Jump to content


Photo

Trakt sync failed: Value cannot be null. parentPath

trakt

  • Please log in to reply
34 replies to this topic

#21 phi303 OFFLINE  

phi303

    Advanced Member

  • Members
  • 65 posts
  • Local time: 08:45 AM

Posted 03 December 2016 - 07:53 PM

Thanks for the update. Please try again with the next release of the server. The trakt plugin has been given a lot of improvements but it won't be available until the next release of Emby Server is out. Thanks !

 

cool thanks! when you refer to the "next release" is that going to be a full version release or the next update? just curious since my lifetime premiere seems to be only tied to version 3.xxx



#22 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156602 posts
  • Local time: 11:45 AM

Posted 03 December 2016 - 07:54 PM

The next regular release of Emby Server 3.x.


  • phi303 likes this

#23 phi303 OFFLINE  

phi303

    Advanced Member

  • Members
  • 65 posts
  • Local time: 08:45 AM

Posted 20 December 2016 - 02:30 AM

New update installed but sync is still having issues: 

*** Error Report ***
	Version: 3.1.0.0
	Command line: C:\Users\Phi\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
	Operating system: Microsoft Windows NT 6.2.9200.0
	64-Bit OS: True
	64-Bit Process: True
	Processor count: 4
	Program data path: C:\Users\Phi\AppData\Roaming\Emby-Server
	Application directory: C:\Users\Phi\AppData\Roaming\Emby-Server\System
	MediaBrowser.Model.Net.HttpException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
	   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__20.MoveNext()
	   --- End of inner exception stack trace ---
	   at Emby.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__20.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.HttpClientManager.HttpClientManager.<SendAsync>d__17.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 Trakt.Api.TraktApi.<PostToTrakt>d__29.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 Trakt.Api.TraktApi.<SendEpisodeStatusUpdateAsync>d__9.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 Trakt.ServerMediator.<KernelPlaybackStopped>d__17.MoveNext()
	MediaBrowser.Model.Net.HttpException
	   at Emby.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__20.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.HttpClientManager.HttpClientManager.<SendAsync>d__17.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 Trakt.Api.TraktApi.<PostToTrakt>d__29.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 Trakt.Api.TraktApi.<SendEpisodeStatusUpdateAsync>d__9.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 Trakt.ServerMediator.<KernelPlaybackStopped>d__17.MoveNext()
	InnerException: System.AggregateException
	System.AggregateException: One or more errors occurred. ---> System.Net.WebException: The remote server returned an error: (401) Unauthorized.
	   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__20.MoveNext()
	---> (Inner Exception #0) System.Net.WebException: The remote server returned an error: (401) Unauthorized.
	   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.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
	   at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
	   at Emby.Common.Implementations.HttpClientManager.HttpClientManager.<SendAsyncInternal>d__20.MoveNext()
	InnerException: System.Net.WebException
	System.Net.WebException: The remote server returned an error: (401) Unauthorized.
	   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)


#24 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156602 posts
  • Local time: 11:45 AM

Posted 20 December 2016 - 02:37 AM

What version of the plugin? Try making sure the plugin is up to date and then also re-entering your credentials into the plugin. thanks !



#25 phi303 OFFLINE  

phi303

    Advanced Member

  • Members
  • 65 posts
  • Local time: 08:45 AM

Posted 20 December 2016 - 02:50 AM

version 3.0.6170.22982

 

i've deleted credentials and re-entered them



#26 MrWebsmith OFFLINE  

MrWebsmith

    Advanced Member

  • Alpha Testers
  • 1652 posts
  • Local time: 10:45 AM
  • LocationPhiladelphia, PA, USA

Posted 20 December 2016 - 08:56 AM

ok.. ive been back and forth again with this plugin as well... i will update this post with all logs/screenshots shortly this morning..

 

but..

 

if i run the task manually, it seems to be fine/completes (although with a screwy percentage in the 10,000s% and "under" the progress bar... but it runs..

 

if the task runs on its set auto-schedule.. its failing everytime.

 

 

info to follow



#27 MrWebsmith OFFLINE  

MrWebsmith

    Advanced Member

  • Alpha Testers
  • 1652 posts
  • Local time: 10:45 AM
  • LocationPhiladelphia, PA, USA

Posted 20 December 2016 - 09:03 AM

server log 1: https://www.dropbox....733647.txt?dl=0

 

server log 2: https://www.dropbox....788800.txt?dl=0

 

server DEV version: https://www.dropbox....verver.jpg?dl=0

 

 

trakt dll ver:  https://www.dropbox....dllver.jpg?dl=0

 

trakt sched as set:  https://www.dropbox....tsched.jpg?dl=0

 

trakt fails on its own :  https://www.dropbox....itsown.jpg?dl=0

 

trakt task manually runs ok: https://www.dropbox....nually.jpg?dl=0

....but percentage and display are "off" lol  :   https://www.dropbox....ercent.jpg?dl=0

 

 

please let me know what else i can do to help diagnose this



#28 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156602 posts
  • Local time: 11:45 AM

Posted 22 December 2016 - 02:48 AM

@MrWebsmith i was able to reproduce these issues and made a couple changes to the plugin and now I'm seeing successful runs of the scheduled task. Please try it out and let me know if it resolves your issue. thanks.


  • MrWebsmith likes this

#29 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156602 posts
  • Local time: 11:45 AM

Posted 22 December 2016 - 02:55 AM

After running a few times i have still seen one failure, so I will adjust further. The underlying issue is Trakt gets hit with more traffic than they can handle. The only way to handle these timeouts are basically to pause and retry. I compared to official trakt code and it is doing the same thing, try, pause, retry. They must have some load issues on the site if that's what it takes to get your requests through. In any event, I think it will be better now.


  • MrWebsmith likes this

#30 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156602 posts
  • Local time: 11:45 AM

Posted 22 December 2016 - 02:58 AM

If you are still seeing the 401 unauthorized errors, i would suggest shutting down the server, locating the server program data /plugins/configurations/trakt.xml configuration file, and then delete the trakt xml config. start the server back up and set it up again.



#31 MrWebsmith OFFLINE  

MrWebsmith

    Advanced Member

  • Alpha Testers
  • 1652 posts
  • Local time: 10:45 AM
  • LocationPhiladelphia, PA, USA

Posted 22 December 2016 - 09:14 AM

so im looking for 

 

Trakt (3.0.6200.3129)

 

to include the fixes you're attempting?

 

thanks for getting back on this.. ill see how it improves and failback to the xml fresh/rebuild if needed as well

 

 

updating plugin now and restarting emby svr



#32 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156602 posts
  • Local time: 11:45 AM

Posted 22 December 2016 - 11:33 AM

Yes thanks.



#33 MrWebsmith OFFLINE  

MrWebsmith

    Advanced Member

  • Alpha Testers
  • 1652 posts
  • Local time: 10:45 AM
  • LocationPhiladelphia, PA, USA

Posted 23 December 2016 - 08:32 AM

@Luke

 

with new update.. and not yet HAD to rebuild config xml...

 

i am NOT ahving any task failures/errors for approx 24 hours now... i had the trigger interval set to as short at every 30mins for a few hours.. it was fine.. then i moved it way back to every 6hrs.. and its been good all night..

 

if i watch it run, say i manually run it,... the "funky percentage" and "progress bar" display issues remain.. its like it cant correct compute the "work" it needs to do vs already done... this is minor, but i wanted to report back

 

let me know if there's anything else you would like on this portion and i'll keep testing.

 

thank you again and happy holidays.

 

-MWS


Edited by MrWebsmith, 23 December 2016 - 08:32 AM.


#34 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156602 posts
  • Local time: 11:45 AM

Posted 23 December 2016 - 12:14 PM

Thanks for reporting back.



#35 phi303 OFFLINE  

phi303

    Advanced Member

  • Members
  • 65 posts
  • Local time: 08:45 AM

Posted 23 December 2016 - 03:04 PM

after deleting the xml configuration file, i no longer fail errors, thanks! i do however experience the "funky percentage" and progress bar like MrWebsmith but all seems to be working, thank you!


  • MrWebsmith likes this





Also tagged with one or more of these keywords: trakt

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users