Jump to content


Photo

Check for Plugin and Application Updates failed

Plugin Updates Application Updates FreeNas Update Check failed

  • Please log in to reply
40 replies to this topic

#21 Happy2Play OFFLINE  

Happy2Play

    Trial and Error

  • Moderators
  • 19165 posts
  • Local time: 10:09 AM
  • LocationWashington State

Posted 05 March 2020 - 11:06 PM

I take it back. On my stable server I'm actually seeing the same error for "Check for Plugin Updates". On my beta server I'm not.

The task runs every 3 hours is it alway failing?



#22 MRobi OFFLINE  

MRobi

    Advanced Member

  • Members
  • 371 posts
  • Local time: 02:09 PM

Posted 06 March 2020 - 08:24 AM

What's the error message?

Here's the error. I'm on my way out the door so I can't troubleshoot, but looking at the error I've got a theory.

I'm using a plugin that's in testing and not on the server. I've never looked at the permissions of the plugin file which means they likely have a different owner and emby may not have write access to it. I'll check the permissions tonight and see if that stops the error.

 

EDIT: I couldn't leave without looking. That plugin had permissions set to 0644 and a different file owner, so Emby did not have write access to the file. I just changed the file owner and I'll see what happens tonight.

*** Error Report ***
	Version: 4.3.1.0
	Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffdetect /usr/local/lib/emby-server/bin/ffdetect -ffmpeg /usr/local/lib/emby-server/bin/ffmpeg -ffprobe /usr/local/lib/emby-server/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd12_{version}_amd64.txz -noautorunwebapp
	Operating system: Unix 11.2.0.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 5.10.1.57 (5.10.1.57 Thu Nov 21 02:14:56 UTC 2019)
	Runtime: file:///usr/local/lib/mono/4.5/mscorlib.dll
	Processor count: 32
	Program data path: /var/db/emby-server
	Application directory: /usr/local/lib/emby-server/system
	System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path "/var/db/emby-server/cache/temp/3db4caa1-64d1-4853-8c8e-54a18dd5efae.tmp" or "/var/db/emby-server/plugins/SamsungSmartThings.dll" is denied.
	  at System.IO.File.Copy (System.String sourceFileName, System.String destFileName, System.Boolean overwrite) [0x00192] in <0e06830de9a44394a7e366951eabca52>:0 
	  at Emby.Server.Implementations.IO.ManagedFileSystem.CopyFile (System.String source, System.String target, System.Boolean overwrite) [0x00038] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	  at Emby.Server.Implementations.Updates.InstallationManager+<PerformPackageInstallation>d__63.MoveNext () [0x00205] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 
	  at Emby.Server.Implementations.Updates.InstallationManager+<InstallPackageInternal>d__62.MoveNext () [0x00118] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 
	  at Emby.Server.Implementations.Updates.InstallationManager+<InstallPackage>d__61.MoveNext () [0x003ab] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 
	  at Emby.Server.Implementations.ScheduledTasks.PluginUpdateTask+<Execute>d__7.MoveNext () [0x0017d] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	--- End of stack trace from previous location where exception was thrown ---
	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <0e06830de9a44394a7e366951eabca52>:0 
	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <0e06830de9a44394a7e366951eabca52>:0 
	  at Emby.Server.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>d__69.MoveNext () [0x00190] in <ea16a5cfc8b849ea8a8b03b4ad685e1f>:0 
	Source: mscorlib
	TargetSite: Void Throw()
	
2020-03-06 00:13:42.700 Info TaskManager: Check for plugin updates Failed after 0 minute(s) and 1 seconds


Edited by MRobi, 06 March 2020 - 08:27 AM.


#23 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156956 posts
  • Local time: 01:09 PM

Posted 06 March 2020 - 12:01 PM

@MRobi, that's a write access problem:

System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path "/var/db/emby-server/cache/temp/3db4caa1-64d1-4853-8c8e-54a18dd5efae.tmp" or "/var/db/emby-server/plugins/SamsungSmartThings.dll" is denied.
	


#24 MRobi OFFLINE  

MRobi

    Advanced Member

  • Members
  • 371 posts
  • Local time: 02:09 PM

Posted 08 March 2020 - 09:43 AM

 

@MRobi, that's a write access problem:

System.UnauthorizedAccessException: System.UnauthorizedAccessException: Access to the path "/var/db/emby-server/cache/temp/3db4caa1-64d1-4853-8c8e-54a18dd5efae.tmp" or "/var/db/emby-server/plugins/SamsungSmartThings.dll" is denied.
	

Exactly as I thought. Changing the permission on SamsungSmartThings.dll solved the error message.



#25 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156956 posts
  • Local time: 01:09 PM

Posted 08 March 2020 - 11:44 AM

Thanks for the feedback.

#26 Skyobliwind OFFLINE  

Skyobliwind

    Member

  • Members
  • 26 posts
  • Local time: 07:09 PM

Posted 20 March 2020 - 02:37 PM

For me that doesn't seem to be the Problem, but I reasearched a little, installed a second instance of the plugin, also installed a freebsd jail and setup the newest beta in it.

When installing the beta I noticed the downloadlink

"https://github.com/M...0.30_amd64.txz"

and when revieweing my errorlog I see

-updatepackage emby-server-freebsd_{version}_amd64.txz at the end of the update command

 

The small but BIG difference I noticed is the missing of the freebsd version in that Link

if I manually try to resolve https://github.com/M...2.1.0_amd64.txz in my Browser I also get Error 404

but if I add the FreeBSD Version 11 in the Link to

https://github.com/M...2.1.0_amd64.txz

it resolves perfectly good.

 

Is it possible that you forgot to change the Update Link when you included FreeBSD12 support?

I am rly sure changing this would fix the Problem for me.

(But I think for security reasons I can't change the Updatelink myself ?)

 

Regards



#27 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156956 posts
  • Local time: 01:09 PM

Posted 20 March 2020 - 02:53 PM

For me that doesn't seem to be the Problem, but I reasearched a little, installed a second instance of the plugin, also installed a freebsd jail and setup the newest beta in it.

When installing the beta I noticed the downloadlink

"https://github.com/M...0.30_amd64.txz"

and when revieweing my errorlog I see

-updatepackage emby-server-freebsd_{version}_amd64.txz at the end of the update command

 

The small but BIG difference I noticed is the missing of the freebsd version in that Link

if I manually try to resolve https://github.com/M...2.1.0_amd64.txz in my Browser I also get Error 404

but if I add the FreeBSD Version 11 in the Link to

https://github.com/M...2.1.0_amd64.txz

it resolves perfectly good.

 

Is it possible that you forgot to change the Update Link when you included FreeBSD12 support?

I am rly sure changing this would fix the Problem for me.

(But I think for security reasons I can't change the Updatelink myself ?)

 

Regards

 

Hi, can you please attach the emby server log so that we can see an example of that? Thanks.



#28 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156956 posts
  • Local time: 01:09 PM

Posted 20 March 2020 - 04:32 PM

For me that doesn't seem to be the Problem, but I reasearched a little, installed a second instance of the plugin, also installed a freebsd jail and setup the newest beta in it.

When installing the beta I noticed the downloadlink

"https://github.com/M...0.30_amd64.txz"

and when revieweing my errorlog I see

-updatepackage emby-server-freebsd_{version}_amd64.txz at the end of the update command

 

The small but BIG difference I noticed is the missing of the freebsd version in that Link

if I manually try to resolve https://github.com/M...2.1.0_amd64.txz in my Browser I also get Error 404

but if I add the FreeBSD Version 11 in the Link to

https://github.com/M...2.1.0_amd64.txz

it resolves perfectly good.

 

Is it possible that you forgot to change the Update Link when you included FreeBSD12 support?

I am rly sure changing this would fix the Problem for me.

(But I think for security reasons I can't change the Updatelink myself ?)

 

Regards

 

Ok reading through this again, the freebsd package urls have changed since 4.3 so that's the difference. Back during Emby Server 4.2 development was only had one freebsd package. Then during 4.3 we split it into two packages, one for each freebsd version.

 

Does this answer your question?



#29 Skyobliwind OFFLINE  

Skyobliwind

    Member

  • Members
  • 26 posts
  • Local time: 07:09 PM

Posted 20 March 2020 - 04:39 PM

Kind of. It confirms my guess, but how do I fix this? I have the newest available FreeNas plugin installed (4.2.10). Can I somehow manually change the link on which the server tries to search for updates? Or will the 4.3.10 Version release as FreeNAS Plugin in near future with the fix? I just want to stop the "Search for Plugin Updates failed" and "Search for Server Updates failed" messages ^^

#30 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156956 posts
  • Local time: 01:09 PM

Posted 20 March 2020 - 04:40 PM

 

 

Or will the 4.3.10 Version release as FreeNAS Plugin in near future with the fix?

We're hoping it will, although we'll be releasing 4.4 any day now.



#31 Skyobliwind OFFLINE  

Skyobliwind

    Member

  • Members
  • 26 posts
  • Local time: 07:09 PM

Posted 20 March 2020 - 04:49 PM

I can also Post the whole Log, but the Interesting part will be:

20 19:14:47.779 Info TaskManager: StartupTrigger fired for task: Check for plugin updates
2020-03-20 19:14:47.779 Info TaskManager: StartupTrigger fired for task: Check for application updates
2020-03-20 19:14:47.780 Info TaskManager: Queueing task PluginUpdateTask
2020-03-20 19:14:47.780 Info TaskManager: Queueing task SystemUpdateTask
2020-03-20 19:14:47.782 Info TaskManager: Executing Check for application updates
2020-03-20 19:14:47.782 Info TaskManager: Executing Check for plugin updates
2020-03-20 19:14:47.786 Info HttpClient: HttpClientManager GET: https://www.mb3admin.com/admin/service/EmbyPackages.json
2020-03-20 19:14:47.842 Info TaskManager: Check for application updates Completed after 0 minute(s) and 0 seconds
2020-03-20 19:14:47.851 Info TaskManager: ExecuteQueuedTasks
2020-03-20 19:14:50.834 Error HttpClient: Error NameResolutionFailure getting response from 
	*** Error Report ***
	Version: 4.2.1.0
	Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffmpeg /usr/local/bin/ffmpeg -ffprobe /usr/local/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd_{version}_amd64.txz
	Operating system: Unix 11.3.6.0
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 5.10.1.57 (5.10.1.57 Tue Dec 10 07:40:49 UTC 2019)
	Runtime: file:///usr/local/lib/mono/4.5/mscorlib.dll
	Processor count: 12
	Program data path: /var/db/emby-server
	Application directory: /usr/local/lib/emby-server/system
	System.Net.WebException: System.Net.WebException: Error: NameResolutionFailure
	  at System.Net.HttpWebRequest.EndGetResponse (System.IAsyncResult asyncResult) [0x00058] in <b3922b7d60404fa9ae645f1fb97f5b6b>:0 
	  at System.Threading.Tasks.TaskFactory`1[TResult].FromAsyncCoreLogic (System.IAsyncResult iar, System.Func`2[T,TResult] endFunction, System.Action`1[T] endAction, System.Threading.Tasks.Task`1[TResult] promise, System.Boolean requiresSynchronization) [0x0000f] in <0e06830de9a44394a7e366951eabca52>:0 
	Source: System
	TargetSite: System.Net.WebResponse EndGetResponse(System.IAsyncResult)

As you can see in the End of "Command line: /usr/local/lib/emby-server/system/EmbyServer.exe -os freebsd -ffmpeg /usr/local/bin/ffmpeg -ffprobe /usr/local/bin/ffprobe -programdata /var/db/emby-server -updatepackage emby-server-freebsd_{version}_amd64.txz"
it says emby-server-freebsd and not emby-server-freebsd11

 

Same for the Server and for the Plugin Updates


Edited by Skyobliwind, 20 March 2020 - 04:49 PM.


#32 Skyobliwind OFFLINE  

Skyobliwind

    Member

  • Members
  • 26 posts
  • Local time: 07:09 PM

Posted 20 March 2020 - 04:53 PM

And that seems to cause:

5e752d25294a5_Updates_Failed.jpg


Edited by Skyobliwind, 20 March 2020 - 04:53 PM.


#33 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156956 posts
  • Local time: 01:09 PM

Posted 20 March 2020 - 04:54 PM

Generally this is caused by something blocking Emby Server from sending the requests, such as a firewall, security software, or VPN. Can you look into this? 



#34 Skyobliwind OFFLINE  

Skyobliwind

    Member

  • Members
  • 26 posts
  • Local time: 07:09 PM

Posted 20 March 2020 - 05:01 PM

Nah, we turn around I think ^^

 

I already looked Up everything for quite some time now. Everything works BUT

the Update link inside the automatically created Freenas Plugin Jail seems to bee broken.

Just try to manually type in your Browser --github.com/MediaBrowser/Emby.Releases/releases/download/4.2.1.0/emby-server-freebsd_4.2.1.0_amd64.txz-- (THAT is the Link my emby plugin looks for updates) and you will get Error 404

The actually WORKING link is --github.com/MediaBrowser/Emby.Releases/releases/download/4.2.1.0/emby-server-freebsd11_4.2.1.0_amd64.txz--

 

The link that my plugin uses misses the 11 in it so it can't find anything there, because you seem to have changed the link AFTER the plugin was released and it still uses the old Link.



#35 Skyobliwind OFFLINE  

Skyobliwind

    Member

  • Members
  • 26 posts
  • Local time: 07:09 PM

Posted 20 March 2020 - 05:03 PM

Do you Plan to release the 4.3.10 or directly go on 4.4 for the FreeNas Plugin?



#36 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156956 posts
  • Local time: 01:09 PM

Posted 20 March 2020 - 05:11 PM

We don't actually release the FreeNAS plugin ourselves. We submit to FreeBSD ports, and FreeNAS picks it up from there. 



#37 Skyobliwind OFFLINE  

Skyobliwind

    Member

  • Members
  • 26 posts
  • Local time: 07:09 PM

Posted 20 March 2020 - 06:19 PM

So there is no way for me to fix the Link somewhere in the Update config? Any File on the System or something?

In the Log I can see the command that is run, but not from where it is triggered.



#38 Luke OFFLINE  

Luke

    System Architect

  • Administrators
  • 156956 posts
  • Local time: 01:09 PM

Posted 20 March 2020 - 07:01 PM

There is no automatic update for FreeBSD. The only thing that does is notify you when an update is available, so that notification is all you're missing out on. Well that and plugin updates.



#39 makarai OFFLINE  

makarai

    Advanced Member

  • Members
  • 549 posts
  • Local time: 07:09 PM

Posted 21 March 2020 - 04:36 AM

@Skyobliwind did you upgrade toi 11.3 version of freenas ? If so, you can choose the community plugin repository and install 4.3.1.0 of emby.



#40 MRobi OFFLINE  

MRobi

    Advanced Member

  • Members
  • 371 posts
  • Local time: 02:09 PM

Posted 21 March 2020 - 09:17 AM

If you're decently fluent with FreeNAS you could also manually install 4.3.1.0 from shell using the beta instructions with the 4.3.1.0 package







Also tagged with one or more of these keywords: Plugin Updates, Application Updates, FreeNas, Update Check failed

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users