Jump to content

Question about plugin nuget versions


BillOatman
Go to solution Solved by BillOatman,

Recommended Posts

BillOatman

I restarted the server and now there are errors in the log and it is misbehaving.

The errors in the log are:

 

2019-06-02 11:27:38.688 Info App: Loading EmbyServer, Version=4.1.1.0, Culture=neutral, PublicKeyToken=null
2019-06-02 11:27:38.696 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Controller, Version=4.2.0.2, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
2019-06-02 11:27:38.696 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Common, Version=4.2.0.2, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
2019-06-02 11:27:38.696 Error App: LoaderException: Could not load file or assembly 'MediaBrowser.Model, Version=4.2.0.2, Culture=neutral, PublicKeyToken=null'. The system cannot find the file specified.
Note the seemingly wrong version numbers.
 
Further down in the log:
2019-06-02 11:27:46.691 Error PortMapper: Error creating port map
*** Error Report ***
Version: 4.1.1.0
Command line: C:\Users\woatm\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
Operating system: Microsoft Windows NT 6.2.9200.0
64-Bit OS: True
64-Bit Process: True
User Interactive: True
Runtime: file:///C:/Users/woatm/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
Processor count: 12
Program data path: C:\Users\woatm\AppData\Roaming\Emby-Server\programdata
Application directory: C:\Users\woatm\AppData\Roaming\Emby-Server\system
MediaBrowser.Model.Net.HttpException: MediaBrowser.Model.Net.HttpException: InternalServerError
   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsyncInternal(HttpRequestOptions options, String httpMethod)
   at Emby.Server.Implementations.HttpClientManager.CoreHttpClientManager.SendAsync(HttpRequestOptions options, String httpMethod)
   at Mono.Nat.Upnp.UpnpNatDevice.CreatePortMap(Mapping mapping)
   at Emby.PortMapper.ExternalPortForwarding.CreateRules(INatDevice device)
Source: Emby.Server.Implementations
TargetSite: Void MoveNext()

Full log attached.

 

EmbyLog.txt

Link to comment
Share on other sites

Looks like you went back and forth between beta and stable which is not supported.

Link to comment
Share on other sites

BillOatman

I have never installed the server except the initial time.  Everything since then has been via the automatic mechanism, which is enabled.

 

5cf3fc4e35b9d_Capture.jpg

 

That being said, how can I get it back to a usable state?

Link to comment
Share on other sites

If you didn't do that, then it's the same question and answer i already have you earlier about the nuget package. i can't really tell due to the small log snippet.

Link to comment
Share on other sites

BillOatman

The entire log is in the original post.

 

I'm not sure what nuget package.  I didn't build the server or the port mapper plugin.  In the log it looks to me like it is the server trying to load the newer versioned components?

Link to comment
Share on other sites

Your log looks ok to me. Make sure to build against the highest version nuget package with the same version or less as your server version.

Link to comment
Share on other sites

  • Solution
BillOatman

I went back to earlier source code and that is working.  

When I see mismatched version numbers and things like portmapper throwing exceptions I immediately think something is wrong :)

 

Thanks for the help.

Link to comment
Share on other sites

  • 3 weeks later...
IronBeardKnight

I went back to earlier source code and that is working.  

When I see mismatched version numbers and things like portmapper throwing exceptions I immediately think something is wrong :)

 

Thanks for the help.

What do you mean by this the plugin source or emby server source?

 

I have made some improvements to the game browser plugin that I got from github however I encounter the same error when trying to load it in stable server release 4.1.1.0 as the plugin references nuget of a different version thus when emby server goes to load the plugin it looks for the different version of the dll files.

 

The issue is I cannot find a reference for the 4.1.1.0 nuget packages to compile the plugin to work on current stable release.

 

@@Luke Do you know where I can find this or a way around the issue?

 

@@BillOatman are you saying you used reference too this package "https://www.nuget.org/packages/MediaBrowser.Server.Core/4.1.0.26 " and that worked on 4.1.1.0

 

Any help is greatly appreciated thanks ;)

Link to comment
Share on other sites

BillOatman

@@IronBeardKnight My problem wasn't in the library, it ended up being in my settings config.html.  I just saw that message in the log and thought it was a bad thing.  Apparently it is not.

I am currently using the server core version 4.1.0.26 in my plugin.  

  • Like 1
Link to comment
Share on other sites

IronBeardKnight

@@IronBeardKnight My problem wasn't in the library, it ended up being in my settings config.html.  I just saw that message in the log and thought it was a bad thing.  Apparently it is not.

I am currently using the server core version 4.1.0.26 in my plugin.

 

And your installed server version.

Link to comment
Share on other sites

BillOatman

And your installed server version.

Not at home now, but it's the release version of the Windows server (4.1.?.?).  Not the beta.

Link to comment
Share on other sites

Make sure to build against the highest version nuget package with the same version or less as your server version.

  • Like 1
Link to comment
Share on other sites

IronBeardKnight

Make sure to build against the highest version nuget package with the same version or less as your server version.

Thanks for this @@Luke and @@BillOatman

 

I hope to be an active member as Emby further develops and asking these questions in forums does help as others may be wondering the same but do not ask. I know I had some trouble finding this information out.

 

Thanks again guys. :D

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