Jump to content

Method 'Socket.set_DualMode' not found.


Recommended Posts

Posted (edited)

Hi, 

 

For the last few months I've happily been using Emby as media server, mainly from remote sites. Using an NGinx reverse proxy, I'm able to access my media from any place. Of course I'm eagerly waiting for the IOS app to be released. But, in the meantime the web version is fine. Until today.

 

Today, I ran a slightly modified version of the Linux Build scripts, something I do every now and then (in it, I do not package the result, I download the google fonts to avoid cross site issues and have a RPC fix (for which I have posted a pull request)). Build finishes without errors.

 

However I'm not able to start Emby as soon it gets to starting the HTTP(S) stuff, it fails. I've tried a vanilla version of the build script, I've tried both branches from git. I even went as far as to install Emby on a system in a number of ways different to mine. Same error. I went to chat, to make sure I didn't miss something. My friend google was not really helpful today.

 

The most relevant snippet from the log:

*** Error Report ***
        Version: 3.0.5793.40802
        Command line: /opt/emby/MediaBrowser.Server.Mono.exe -programdata /media/storage/agents/emby -ffmpeg /usr/bin/ffmpeg -ffprobe /usr/bin/ffprobe
        Operating system: Unix 3.13.0.68
        Processor count: 2
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /media/storage/agents/emby
        Mono: 4.0.3 (Stable 4.0.3.20/d6946b4 Thu Aug 13 08:24:57 UTC 2015)
        Application Path: /opt/emby/MediaBrowser.Server.Mono.exe
        Method 'Socket.set_DualMode' not found.
        System.MissingMethodException
          at SocketHttpListener.Net.EndPointListener..ctor (ILogger logger, System.Net.IPAddress addr, Int32 port, Boolean secure, System.Security.Cryptography.X509Certificates.X509Certificate2 cert) [0x00000] in <filename unknown>:0 
          at SocketHttpListener.Net.EndPointManager.GetEPListener (ILogger logger, System.String host, Int32 port, SocketHttpListener.Net.HttpListener listener, Boolean secure) [0x00000] in <filename unknown>:0  
          at SocketHttpListener.Net.EndPointManager.AddPrefixInternal (ILogger logger, System.String p, SocketHttpListener.Net.HttpListener listener) [0x00000] in <filename unknown>:0 
          at SocketHttpListener.Net.EndPointManager.AddListener (ILogger logger, SocketHttpListener.Net.HttpListener listener) [0x00000] in <filename unknown>:0  

Log Files:

http://paste.ubuntu.com/13231919/

 

System:

Linux bombadil 3.13.0-68-generic #111-Ubuntu SMP Fri Nov 6 18:17:06 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

 

Mono version:

Mono JIT compiler version 4.0.3 (Stable 4.0.3.20/d6946b4 Thu Aug 13 08:24:57 UTC 2015)

Copyright © 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com

TLS:           __thread

SIGSEGV:       altstack

Notifications: epoll

Architecture:  amd64

Disabled:      none

Misc:          softdebug 

LLVM:          supported, not enabled.

GC:            sgen

 
Xbuild version:
kodi@bombadil:~/emby/emby/Tools/Linux_Build_Scripts$ xbuild -version

XBuild Engine Version 12.0

Mono, Version 4.0.3.0

 

If the information is incomplete, please let me know.

 

Hopefully you guys can help, thanks.

 

Regards,

 

Bauke

Edited by bfahner
Posted

thanks. It might be another day or so before i get to this so if you want to build from source i would just use the master branch. 

Posted (edited)

Thanks for your reply Luke! Hope you find some time soon, as the master branch doesn't work either :(. I altered all git strings to select no branches at all, so I assume the master is selected by default.

 

Or is that a false assumption?

Edited by bfahner
Posted

master branch works fine or nobody would be able to run the server

Posted

That I cannot deny!

 

That's not why I'm here, I'm quite sure there's something happening between my chair and the keyboard that shouldn't ;)

 

However, I did som more poking around, and even downloading the zip from the raw GIT site didn't get me a working instance either, some issues with sqlite. Still, it got beyond HTTP. So yeah, something is broken on my system(s). I've now tried to compile on a ubuntu server 15.04 (clean), a 15.04 clean desktop and a 14.04 kodibuntu system. All of them are broken. Regardless of Master or Dev

 

This suggests that either my script is breaking something, or there's something in my systems I'm putting wrong. Perhaps that you guys have ideas? I could pastebin the script...? 

 

Right now I'm trying debug mode for startup, see if gets me more info.

Posted

Unfortunately, debug doesn't give me much. Neither does running mono-sgen with debug. I've just reinstalled all possible "mono"-containing packages. After that, did a new build, and tried to start it. Same issue.

 

Is it worth a try to use the standard script provided in GIT (again)? I'm just soooooo curious what breaks here...

Posted

why are you trying to run from source? why not just use the install procedures that are listed on the website?

Posted

There are many reasons, Luke. One of them being simple: because I can. Isn't that one of the things of Open Source and a free world? :)

 

That being a short explanation, I will elaborate. As a prior IT engineer, I am still interested and eager to learn how systems work. Mostly for personal benefits (cool media systems), but also to keep up to date on the jargon. At work, I do not work "the systems" anymore, but rather the people. Engineering my Kodibuntu system to be a lean and mean machine for personal pleasure is a hobby. Part of that hobby is understanding how technologies work, how they integrate and it's just plain cool. A bonus is that I see whether my mantra's on solution finding (which i coach/preach to all of my teammates), are stil valid.  And oh, engineers can't scare me off with their jargon ;).

 

So, back to the issue I'm having: on three different systems, I have installed Mono and Mono-Devel with additional dependancies. On them I've cloned the git directories (both master and dev). Using both the build script from git and my version, I end up with the same error. Being convinced that my systems are somehow broken, I'm curious what. I was hoping you guys could help me find it.

 

What debugging options have I got left? Currently, I'm using the prebuilt zip from Git, and that works. So yeah, that's ok. As a sanity check: do you use the same script to prepare Emby for linux users?

Posted

Ok, sounds good. I would just run from master then. I will try to look at the socket issue on the dev branch today.

Posted

Hi Luke, have you had any time to give it a shot? Thanks

Posted

Yes let me know if the issue persists.

Posted

Not sure what you did there, or have done but the build was successful for Master branch. I've tried dev too, but it seems to refuse to respond with something. But I'm sure that has to do with something else. I'll see about that in the future.

 

Thanks Luke, I'm curious to know for what :)

 

Kind regards

 

Bauke

  • 4 weeks later...
Posted

Dev branch still fails with 'Socket.set_DualMode' not found during startup.

 

What should be the solution for this? Maybe my Mono is not up-2-date?

Posted

Please retry on the latest

Posted

Okay, I updated mono, now startup seems okay (at least it is not crashing).

However startup complains about missing dbus daemon, and web interface can't finish loading (constantly loading until timeout).

 

Here is the log:

Info, Main, Emby
	Command line: /usr/lib/emby/MediaBrowser.Server.Mono.exe -ffmpeg /usr/local/bin/ffmpeg -ffprobe /usr/local/bin/ffprobe
	Operating system: Unix 3.4.108.0
	Processor count: 2
	64-Bit OS: False
	64-Bit Process: False
	Program data path: /usr/lib/emby/ProgramData-Server
	Mono: 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 10:06:49 UTC 2015)
	Application Path: /usr/lib/emby/MediaBrowser.Server.Mono.exe
appHost.Init
Info, App, Application version: 3.0.5826.40373
Info, App, Application configuration:
	{"EnableUPnP":true,"PublicPort":8096,"PublicHttpsPort":8920,"HttpServerPortNumber":8096,"HttpsPortNumber":8920,"EnableHttps":false,"EnableInternetProviders":true,"IsPortAuthorized":false,"EnableHighQualityImageScaling":false,"SeasonZeroDisplayName":"Specials","SaveLocalMeta":false,"EnableLocalizedGuids":false,"PreferredMetadataLanguage":"en","MetadataCountryCode":"US","SortReplaceCharacters":[".","+","%"],"SortRemoveCharacters":[",","&","-","{","}","'"],"SortRemoveWords":["the","a","an"],"MinResumePct":5,"MaxResumePct":90,"MinResumeDurationSeconds":300,"RealtimeLibraryMonitorDelay":40,"EnableDashboardResponseCaching":true,"EnableDashboardResourceMinification":true,"MergeMetadataAndImagesByName":false,"EnableStandaloneMetadata":false,"ImageSavingConvention":"Compatible","MetadataOptions":[{"ItemType":"Book","ImageOptions":[{"Type":"Backdrop","Limit":1,"MinWidth":1280}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"Movie","ImageOptions":[{"Type":"Backdrop","Limit":1,"MinWidth":1280},{"Type":"Art","Limit":0,"MinWidth":0},{"Type":"Disc","Limit":0,"MinWidth":0},{"Type":"Primary","Limit":1,"MinWidth":0},{"Type":"Banner","Limit":0,"MinWidth":0},{"Type":"Thumb","Limit":1,"MinWidth":0},{"Type":"Logo","Limit":1,"MinWidth":0}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"MusicVideo","ImageOptions":[{"Type":"Backdrop","Limit":1,"MinWidth":1280},{"Type":"Art","Limit":0,"MinWidth":0},{"Type":"Disc","Limit":0,"MinWidth":0},{"Type":"Primary","Limit":1,"MinWidth":0},{"Type":"Banner","Limit":0,"MinWidth":0},{"Type":"Thumb","Limit":1,"MinWidth":0},{"Type":"Logo","Limit":1,"MinWidth":0}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"Series","ImageOptions":[{"Type":"Backdrop","Limit":1,"MinWidth":1280},{"Type":"Art","Limit":0,"MinWidth":0},{"Type":"Primary","Limit":1,"MinWidth":0},{"Type":"Banner","Limit":1,"MinWidth":0},{"Type":"Thumb","Limit":1,"MinWidth":0},{"Type":"Logo","Limit":1,"MinWidth":0}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"MusicAlbum","ImageOptions":[{"Type":"Backdrop","Limit":0,"MinWidth":1280},{"Type":"Disc","Limit":0,"MinWidth":0}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"MusicArtist","ImageOptions":[{"Type":"Backdrop","Limit":1,"MinWidth":1280},{"Type":"Banner","Limit":0,"MinWidth":0},{"Type":"Art","Limit":0,"MinWidth":0},{"Type":"Logo","Limit":0,"MinWidth":0}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"BoxSet","ImageOptions":[{"Type":"Backdrop","Limit":1,"MinWidth":1280},{"Type":"Primary","Limit":1,"MinWidth":0},{"Type":"Thumb","Limit":1,"MinWidth":0},{"Type":"Logo","Limit":1,"MinWidth":0},{"Type":"Art","Limit":0,"MinWidth":0},{"Type":"Disc","Limit":0,"MinWidth":0},{"Type":"Banner","Limit":0,"MinWidth":0}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"Season","ImageOptions":[{"Type":"Backdrop","Limit":0,"MinWidth":1280},{"Type":"Primary","Limit":1,"MinWidth":0},{"Type":"Banner","Limit":0,"MinWidth":0},{"Type":"Thumb","Limit":0,"MinWidth":0}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":["TheMovieDb"],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"Episode","ImageOptions":[{"Type":"Backdrop","Limit":0,"MinWidth":1280},{"Type":"Primary","Limit":1,"MinWidth":0}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":["TheMovieDb"],"ImageFetcherOrder":[]}],"EnableAutomaticRestart":true,"PathSubstitutions":[],"UICulture":"en-us","PeopleMetadataOptions":{"DownloadActorMetadata":true,"DownloadDirectorMetadata":true,"DownloadProducerMetadata":false,"DownloadWriterMetadata":false,"DownloadComposerMetadata":false,"DownloadOtherPeopleMetadata":false,"DownloadGuestStarMetadata":false},"FindInternetTrailers":true,"InsecureApps9":["Windows Phone"],"SaveMetadataHidden":false,"ContentTypes":[],"EnableAudioArchiveFiles":false,"EnableVideoArchiveFiles":false,"RemoteClientBitrateLimit":0,"DenyIFrameEmbedding":true,"EnableLibraryMonitor":"Auto","SharingExpirationDays":30,"EnableWindowsShortcuts":false,"EnableVideoFrameByFrameAnalysis":false,"EnableDateLastRefresh":false,"Migrations":[],"MigrationVersion":0,"EnableDebugLevelLogging":false,"EnableAutoUpdate":true,"SystemUpdateLevel":"Release","LogFileRetentionDays":3,"RunAtStartup":false,"IsStartupWizardCompleted":false,"EnableCustomPathSubFolders":false}
Info, App, Loading MediaBrowser.Api, Version=3.0.5826.40275, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.WebDashboard, Version=3.0.5826.40319, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.Model, Version=3.0.5822.34286, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.Common, Version=3.0.5826.40264, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.Controller, Version=3.0.5826.40267, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.Providers, Version=3.0.5826.40297, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.Common.Implementations, Version=3.0.5826.40280, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.Server.Implementations, Version=3.0.5826.40304, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.MediaEncoding, Version=3.0.5826.40291, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.Dlna, Version=3.0.5826.40284, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.LocalMetadata, Version=3.0.5826.40287, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.XbmcMetadata, Version=3.0.5826.40339, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.IsoMounting.Linux, Version=1.0.5131.24779, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.Server.Mono, Version=3.0.5826.40373, Culture=neutral, PublicKeyToken=null
Info, App, Loading MediaBrowser.Server.Startup.Common, Version=3.0.5826.40342, Culture=neutral, PublicKeyToken=null
Info, SqliteUserRepository, Sqlite 3.8.7.1 opening /usr/lib/emby/ProgramData-Server/data/users.db
Info, SqliteFileOrganizationRepository, Sqlite 3.8.7.1 opening /usr/lib/emby/ProgramData-Server/data/fileorganization.db
Info, AuthenticationRepository, Sqlite 3.8.7.1 opening /usr/lib/emby/ProgramData-Server/data/authentication.db
Info, SyncRepository, Sqlite 3.8.7.1 opening /usr/lib/emby/ProgramData-Server/data/sync14.db
Info, ImageMagick, ImageMagick version: ImageMagick 6.9.2-0 Q8 armv7l 2015-08-22 http://www.imagemagick.org
Info, ImageProcessor, ImageProcessor started with 4 max concurrent image processes
Info, App, FFMpeg: /usr/local/bin/ffmpeg
Info, App, FFProbe: /usr/local/bin/ffprobe
Info, SharingRepository, Sqlite 3.8.7.1 opening /usr/lib/emby/ProgramData-Server/data/shares.db
Info, ActivityRepository, Sqlite 3.8.7.1 opening /usr/lib/emby/ProgramData-Server/data/activitylog.db
Warn, App, ffmpeg is missing decoder h264_qsv
Warn, App, ffmpeg is missing decoder mpeg2_qsv
Info, SqliteDisplayPreferencesRepository, Sqlite 3.8.7.1 opening /usr/lib/emby/ProgramData-Server/data/displaypreferences.db
Warn, App, ffmpeg is missing decoder vc1_qsv
Info, SqliteItemRepository, Sqlite 3.8.7.1 opening /usr/lib/emby/ProgramData-Server/data/library.db
Info, SqliteProviderInfoRepository, Sqlite 3.8.7.1 opening /usr/lib/emby/ProgramData-Server/data/refreshinfo.db
Info, SqliteUserDataRepository, Sqlite 3.8.7.1 opening /usr/lib/emby/ProgramData-Server/data/userdata_v2.db
Info, SqliteNotificationsRepository, Sqlite 3.8.7.1 opening /usr/lib/emby/ProgramData-Server/data/notifications.db
Info, App, Requesting administrative access to authorize http server
Warn, Connect, Cannot update Emby Connect information without a WanApiAddress
Info, HttpServer, Calling ServiceStack AppHost.Init
Info, ServiceStackHost, Initializing Application took 40728,795ms
Info, ServerManager, Loading Http Server
Info, HttpServer, attempting to load pfx: /usr/lib/emby/ProgramData-Server/ssl/cert_xyz.pfx
Info, HttpServer, Adding HttpListener prefix http://+:8096/
Info, HttpServer, Adding HttpListener prefix https://+:8920/
Running startup tasks
Info, App, Core startup complete

(gnome-open:26640): GConf-WARNING **: Client failed to connect to the D-BUS daemon:
Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
GConf error: D-Bus daemon not running (translated)

Info, SsdpHandler, MultiCast socket created
Error during displaying URL: Operation not supported (translated)

What do you think now? I think this is a different issue here, should I open a new thread for this?

 

Thank you.

Posted

well we need to first verify that the server can process an ipv4 request over http just like it could before. can you at least get a single page to load?

 

or how about 

 

http://192.xxx:8096/system/info/public

 

can you at least get that json response?

Posted

No, no single page could be loaded. /system/info/public also hangs on my browser.

One interesting thing is if I try with https port, there comes a warning for the self-signed certificate (or whatever) in the browser. However after accepting that, the page still can't be loaded.

 

What else should I try?

hurricanehrndz
Posted

There are many reasons, Luke. One of them being simple: because I can. Isn't that one of the things of Open Source and a free world? :)

 

That being a short explanation, I will elaborate. As a prior IT engineer, I am still interested and eager to learn how systems work. Mostly for personal benefits (cool media systems), but also to keep up to date on the jargon. At work, I do not work "the systems" anymore, but rather the people. Engineering my Kodibuntu system to be a lean and mean machine for personal pleasure is a hobby. Part of that hobby is understanding how technologies work, how they integrate and it's just plain cool. A bonus is that I see whether my mantra's on solution finding (which i coach/preach to all of my teammates), are stil valid.  And oh, engineers can't scare me off with their jargon ;).

 

So, back to the issue I'm having: on three different systems, I have installed Mono and Mono-Devel with additional dependancies. On them I've cloned the git directories (both master and dev). Using both the build script from git and my version, I end up with the same error. Being convinced that my systems are somehow broken, I'm curious what. I was hoping you guys could help me find it.

 

What debugging options have I got left? Currently, I'm using the prebuilt zip from Git, and that works. So yeah, that's ok. As a sanity check: do you use the same script to prepare Emby for linux users?

The packagers do not use the build script to build any of the packages for linux. We simply run an xbuild command. You can find the commands here:

 

I find it very peculiar that you get this gconf error, may ask what distro your are using? And what the command your using to invoke emby-server to start? 

Posted

hurricanehrndz,

 

I've done the build with xbuild. (how else can I build the mono project? :) )

 

Running command is: mono /path/to/MediaBrowser.Server.Mono.exe -ffmpeg /path/to/ffmpeg -ffprobe /path/to/ffprobe

 

Distro is: bananian linux.

uname -r: 3.4.108-bananian

uname -a: Linux nas 3.4.108-bananian #2 SMP PREEMPT Thu Aug 13 06:08:25 UTC 2015 armv7l GNU/Linux

 

mono version: Mono JIT compiler version 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 10:06:49 UTC 2015)

Posted

hurricanehrndz,

 

I've done the build with xbuild. (how else can I build the mono project? :) )

 

Running command is: mono /path/to/MediaBrowser.Server.Mono.exe -ffmpeg /path/to/ffmpeg -ffprobe /path/to/ffprobe

 

Distro is: bananian linux.

uname -r: 3.4.108-bananian

uname -a: Linux nas 3.4.108-bananian #2 SMP PREEMPT Thu Aug 13 06:08:25 UTC 2015 armv7l GNU/Linux

 

mono version: Mono JIT compiler version 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 10:06:49 UTC 2015)

 

so you're able to use the dev branch now without the socket error?

hurricanehrndz
Posted

hurricanehrndz,

 

I've done the build with xbuild. (how else can I build the mono project? :) )

 

Running command is: mono /path/to/MediaBrowser.Server.Mono.exe -ffmpeg /path/to/ffmpeg -ffprobe /path/to/ffprobe

 

Distro is: bananian linux.

uname -r: 3.4.108-bananian

uname -a: Linux nas 3.4.108-bananian #2 SMP PREEMPT Thu Aug 13 06:08:25 UTC 2015 armv7l GNU/Linux

 

mono version: Mono JIT compiler version 4.2.1 (Stable 4.2.1.102/6dd2d0d Thu Nov 12 10:06:49 UTC 2015)

I know, I just wanted to inform you that we no longer use the scripts found on github. 

Posted

Luke, no. Socket problem still persist.

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