Jump to content

Emby on DragonflyBSD (Freebsd Port)


reguila

Recommended Posts

reguila

I'm trying to get emby to work on my "new" DragonflyBSD machine (DragonflyBSD is using Freebsd ports), but i'm getting this error:

2018-03-29 17:06:33.057 Info ServerManager: Loading Http Server
2018-03-29 17:06:33.059 Info HttpServer: Adding HttpListener prefix http://+:8096/
2018-03-29 17:06:33.060 Info HttpServer: Adding HttpListener prefix https://+:8920/
2018-03-29 17:06:33.116 Error ServerManager: Error starting Http Server
        *** Error Report ***
        Version: 3.3.0.0
        Command line: /usr/local/lib/emby-server/MediaBrowser.Server.Mono.exe -os freebsd -ffmpeg /usr/local/bin/ffmpeg -ffprobe /usr/local/bin/ffprobe -programdata /var/db/emby-server
        Operating system: Unix 5.0.0.0
        64-Bit OS: True
        64-Bit Process: True
        User Interactive: False
        Mono: 5.2.0 (5.2.0.215 Sat Mar 24 20:01:37 UTC 2018)
        Processor count: 4
        Program data path: /var/db/emby-server
        Application directory: /usr/local/lib/emby-server
        System.AggregateException: One or more errors occurred. ---> MediaBrowser.Model.Net.SocketCreateException: OperationNotSupported ---> System.Net.Sockets.SocketException: Operation not supported
          at System.Net.Sockets.Socket.SetSocketOption (System.Net.Sockets.SocketOptionLevel optionLevel, System.Net.Sockets.SocketOptionName optionName, System.Int32 optionValue) [0x0002f] in <59abc3a308fb4218
8cb57124cc38c1ca>:0
          at System.Net.Sockets.Socket.set_DualMode (System.Boolean value) [0x0001a] in <59abc3a308fb42188cb57124cc38c1ca>:0
          at SocketHttpListener.Net.EndPointListener.CreateSocket (System.Net.Sockets.AddressFamily addressFamily, System.Boolean dualMode) [0x0000c] in <722cb818055f42dd89decc550e02c8d1>:0
           --- End of inner exception stack trace ---
          at SocketHttpListener.Net.EndPointListener.CreateSocket (System.Net.Sockets.AddressFamily addressFamily, System.Boolean dualMode) [0x00032] in <722cb818055f42dd89decc550e02c8d1>:0
          at SocketHttpListener.Net.EndPointListener.CreateSocket () [0x000b6] in <722cb818055f42dd89decc550e02c8d1>:0
          at SocketHttpListener.Net.EndPointListener..ctor (SocketHttpListener.Net.HttpListener listener, System.Net.IPAddress addr, System.Int32 port, System.Boolean secure, System.Security.Cryptography.X509Ce
rtificates.X509Certificate cert, MediaBrowser.Model.Logging.ILogger logger, MediaBrowser.Model.Cryptography.ICryptoProvider cryptoProvider, MediaBrowser.Model.Net.ISocketFactory socketFactory, MediaBrowser.Mode
l.IO.IMemoryStreamFactory memoryStreamFactory, MediaBrowser.Model.Text.ITextEncoding textEncoding, MediaBrowser.Model.IO.IFileSystem fileSystem, MediaBrowser.Model.System.IEnvironmentInfo environment) [0x00089]
 in <722cb818055f42dd89decc550e02c8d1>:0
          at SocketHttpListener.Net.EndPointManager+<GetEPListener>d__6.MoveNext () [0x001c1] in <722cb818055f42dd89decc550e02c8d1>:0
           --- End of inner exception stack trace ---
          at System.Threading.Tasks.Task.ThrowIfExceptional (System.Boolean includeTaskCanceledExceptions) [0x00011] in <8b8cac12352c4c55a2b7d5b18ff82da8>:0
          at System.Threading.Tasks.Task`1[TResult].GetResultCore (System.Boolean waitCompletionNotification) [0x0002b] in <8b8cac12352c4c55a2b7d5b18ff82da8>:0
          at System.Threading.Tasks.Task`1[TResult].get_Result () [0x0000f] in <8b8cac12352c4c55a2b7d5b18ff82da8>:0
          at SocketHttpListener.Net.EndPointManager.AddPrefixInternal (MediaBrowser.Model.Logging.ILogger logger, System.String p, SocketHttpListener.Net.HttpListener listener) [0x00064] in <722cb818055f42dd89d
ecc550e02c8d1>:0

Any clue on the origin of the error? (I've already tried to build from source but i get the same error)

 

server-63657939991.txt

unhandled_f185104c-e9ea-4e92-bdc8-4a467aab700d.txt

 

Thanks,

  • Like 1
Link to comment
Share on other sites

Well earlier versions of mono on BSD used to throw a ProtocolNotSupported error when dual mode sockets weren't supported. Now it throws OperationNotSupported which we're not currently looking for. We'll adjust this for the next release of emby server, thanks.

  • Like 1
Link to comment
Share on other sites

reguila

FYI

I've just finished build version 3.3.1.0 and the error still occur with mono 5.2

 

EDIT: Nevermind, i've just confused March 4, with April 3 :D. (03/04 and 04/03) I guess i need vacations!!!

Edited by reguila
Link to comment
Share on other sites

reguila

Hello again... I guess this move from Linux to BSD ain't going to be easy :)

I'm facing other issue now, NameResolutionFailure. Everything appears to work on a LAN base, i can't get Emby to connect the outside, even for Emby Premiere Key validation.

I'm not running emby on Jail yet, so .. i'm kinda lost. I've enabled debbuging hopping i would get some more info but...

MediaBrowser.Model.Net.HttpException: Error: NameResolutionFailure
          at Emby.Server.Implementations.HttpClientManager.HttpClientManager+<SendAsyncInternal>d__19.MoveNext () [0x00242] in <27e81a2b77ed43628af192942480d04e>:0
        --- End of stack trace from previous location where exception was thrown ---
          at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8b8cac12352c4c55a2b7d5b18ff82da8>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0003e] in <8b8cac12352c4c55a2b7d5b18ff82da8>:0
          at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x00028] in <8b8cac12352c4c55a2b7d5b18ff82da8>:0
          at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x00008] in <8b8cac12352c4c55a2b7d5b18ff82da8>:0
          at System.Runtime.CompilerServices.ConfiguredTaskAwaitable`1+ConfiguredTaskAwaiter[TResult].GetResult () [0x00000] in <8b8cac12352c4c55a2b7d5b18ff82da8>:0
          at Emby.Server.Implementations.HttpClientManager.HttpClientManager+<SendAsync>d__16.MoveNext () [0x0009e] in <27e81a2b77ed43628af192942480d04e>:0
        --- End of stack trace from previous location where exception was thrown ---

If i switch to the emby user on terminal (by passing a shell) and try to resolve names, ping, ... i have sucess. So i belive it's something related with mono and network. 

Any clues? 

 

Thanks,

  • Like 1
Link to comment
Share on other sites

You said you're using mono 5.2, perhaps you could go even newer, such as mono 5.10?

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