Jump to content

Docker


Luke

Recommended Posts

hurricanehrndz

No, no ports allocated and cannot connect.

I've been researching docker commands and tried this:

 

docker run -d -p 1900:1900 -p 7359:7359 -p 8096:8096 mediabrowser/mbserver

 

Once it started up, it's connectible on port 8096.

 

 

I've stopped and removed the image and will re-run it with /var/mbdata:/config to prevent any future problems.

 

I also realise now that the -v lines are mappings for directory visibility within the docker environment & not mediabrowser mappings, so I only need a single one for the /media directory.

The port mappings shouldn't be required if you had use the direct --net=host. --net=host tells docker to share the same network stack as the host machine. I'm glad its working for you too. DLNA works better when the network stack is shared. You might want to try again. This could be another selinux issue.

Link to comment
Share on other sites

rjenkins

selinux is set to permissive so should not be interfering. I'd guess it's an oddity with EL7 - I've found mention of odd port mapping bugs in other docker projects.

 

 

I cleaned the image out and reloaded with -p port mappings.

 

I could then connect but no media on the machine when trying to add media directories.. 

It appears Mediabrowser is not built to follow symlinks, which could be a serious problem for some people.

 

Deleted and rebuilt again, using individual 1:1 -v mappings for all the array mount points & I can now add media locations.

 

It's presently building the library, which on the windows machine takes a couple of hours. It will be interesting to see how it goes on this machine that has direct access to the drives.

Edited by rjenkins
Link to comment
Share on other sites

rjenkins

Further update:

 

With the explicit port maps and all the storage mount points passed through in the initial command, Mediabrowser starts and I can see the media from other client machines.

 

However, next to nothing works - I once got a non-HD movie to play using the ipad client.

 

Other than that, I can't get anything to play using Mediabrowser classic on other machines. I either get a blank screen or a "cannot play this file" message.

 

If I try to play music, the error is a bit clearer - it says the file does not exist and shows a path/filename starting with C:\ and the local (to the media server) path to the file.

 

This would presumably work if the server was on the same windows machine as the client, but not with a remote / linux server.

 

Again, I guess I'm missing something but I don't know what..

 

 

ps. I can play music / tv / movies via a web browser from another machine.

Edited by rjenkins
Link to comment
Share on other sites

Guest scokar

Luke:  Can you please edit the first post to reflect the "/config"  command line instead of  "ProgramData-Server"?

 

Main download page Docker info:   Can someone fill in the missing parameter for TZ or document it:

 

"...

 docker run -d --net=host -v {DataPath}:/config -v {MediaPath}:/media -e TZ= --name=mbserver mediabrowser/mbserver

..."

 

Thanks :-)

Link to comment
Share on other sites

Hi all, and many thanks for this option to use mediabrowser through docker.

 

I have an issue running the container with the new command. My run command is:

docker run -d --net=host -v /home/admin/config:/config -v /mnt/ARCHE/public:/media -e TZ="America/Chicago" --name=mbserver mediabrowser/mbserver

The container does not start. My mbserver Docker logs are:

$ docker logs mbserver
Unhandled Exception:
System.UnauthorizedAccessException: Access to the path "/config/logs" is denied.
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0 
  at MediaBrowser.Common.Implementations.Logging.NlogManager.ReloadLogger (LogSeverity level) [0x00000] in <filename unknown>:0 
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.UnauthorizedAccessException: Access to the path "/config/logs" is denied.
  at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in <filename unknown>:0 
  at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in <filename unknown>:0 
  at MediaBrowser.Common.Implementations.Logging.NlogManager.ReloadLogger (LogSeverity level) [0x00000] in <filename unknown>:0 
  at MediaBrowser.Server.Mono.MainClass.Main (System.String[] args) [0x00000] in <filename unknown>:0

Any idea?

Link to comment
Share on other sites

 
Docker crashes after a while
 

The underlying Task is already in one of the three final states: RanToCompletion, Faulted, or Canceled.
System.InvalidOperationException
at System.Threading.Tasks.TaskCompletionSource`1[system.Int32].SetException (IEnumerable`1 exceptions) [0x00000] in <filename unknown>:0
at System.Threading.Tasks.TaskCompletionSource`1[system.Int32].SetException (System.Exception exception) [0x00000] in <filename unknown>:0
at System.Threading.Tasks.TaskFactory`1[system.Int32].InnerInvoke (System.Threading.Tasks.TaskCompletionSource`1 tcs, System.Func`2 endMethod, IAsyncResult l) [0x00000] in <filename unknown>:0
at System.Threading.Tasks.TaskFactory`1+<FromAsyncBeginEnd>c__AnonStorey5`3[system.Int32,System.Byte[],System.Int32,System.Int32].<>m__0 (IAsyncResult l) [0x00000] in <filename unknown>:0
at System.Net.WebAsyncResult.CB (System.Object unused) [0x00000] in <filename unknown>:0

 
any ideas? 
 
Version 3.0.5424.1
 
another crash log
 
The task has already completed

System.InvalidOperationException
at System.Runtime.CompilerServices.AsyncTaskMethodBuilder.SetException (System.Exception exception) [0x00000] in <filename unknown>:0
at System.IO.Stream+<CopyToAsync>c__async0.MoveNext () [0x00000] in <filename unknown>:0
at (wrapper unbox) System.IO.Stream/<CopyToAsync>c__async0:MoveNext ()
at System.Threading.Tasks.AwaiterActionContinuation.Execute () [0x00000] in <filename unknown>:0
at System.Threading.Tasks.Task.ProcessCompleteDelegates () [0x00000] in <filename unknown>:0
at System.Threading.Tasks.Task.HandleGenericException (System.AggregateException e) [0x00000] in <filename unknown>:0
at System.Threading.Tasks.Task.TrySetException (System.AggregateException aggregate, Boolean cancellation, Boolean observed) [0x00000] in <filename unknown>:0
at System.Threading.Tasks.TaskCompletionSource`1[system.Int32].TrySetException (IEnumerable`1 exceptions) [0x00000] in <filename unknown>:0
at System.Threading.Tasks.TaskCompletionSource`1[system.Int32].SetException (IEnumerable`1 exceptions) [0x00000] in <filename unknown>:0
at System.Threading.Tasks.TaskCompletionSource`1[system.Int32].SetException (System.Exception exception) [0x00000] in <filename unknown>:0
at System.Threading.Tasks.TaskFactory`1[system.Int32].InnerInvoke (System.Threading.Tasks.TaskCompletionSource`1 tcs, System.Func`2 endMethod, IAsyncResult l) [0x00000] in <filename unknown>:0
at System.Threading.Tasks.TaskFactory`1+<FromAsyncBeginEnd>c__AnonStorey5`3[system.Int32,System.Byte[],System.Int32,System.Int32].<>m__0 (IAsyncResult l) [0x00000] in <filename unknown>:0
at System.Net.WebAsyncResult.CB (System.Object unused) [0x00000] in <filename unknown>:0

Edited by emko
Link to comment
Share on other sites

  • 3 weeks later...
StevenDTX

New Docker install and I cannot connect to the internet (or the mb3admin.com servers) from within the Docker apparently.  It works just fine from the host unRAID server.

 

Check for application updates failed.
2 minutes ago
Error getting response stream (Write: The authentication or decryption has failed.): SendFailure

J4rYDqG.png

 

root@nas:/mnt/cache/appdata# wget http://www.mb3admin.com/admin/service/MB3ServerNotifications.json                                 --2014-12-16 09:51:30--  http://www.mb3admin.com/admin/service/MB3ServerNotifications.json
Resolving www.mb3admin.com (www.mb3admin.com)... 104.28.22.116, 104.28.23.116, 2600:3c02::f03c:91ff:fe6e:540
Connecting to www.mb3admin.com (www.mb3admin.com)|104.28.22.116|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 13557 (13K) [application/json]
Saving to: ‘MB3ServerNotifications.json’


100%[==========================================================================================>] 13,557      --.-K/s   in 0.007s


2014-12-16 09:51:30 (1.88 MB/s) - ‘MB3ServerNotifications.json’ saved [13557/13557]
2014-12-16 09:43:48 [15] | Info, Main, Media Browser Server started
2014-12-16 09:43:48 [15] | 
2014-12-16 09:43:48 [15] | Info, Main, Command line: /opt/mediabrowser/MediaBrowser.Server.Mono.exe -programdata /config
2014-12-16 09:43:48 [15] | Info, Main, Server: nas
2014-12-16 09:43:48 [15] | Info, Main, Operating system: Unix 3.17.4.0
2014-12-16 09:43:48 [15] | Info, Main, Processor count: 4
2014-12-16 09:43:48 [15] | Info, Main, 64-Bit OS: True
2014-12-16 09:43:48 [15] | Info, Main, 64-Bit Process: True
2014-12-16 09:43:48 [15] | Info, Main, Program data path: /config
2014-12-16 09:43:48 [15] | Info, Main, Mono: 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
2014-12-16 09:43:48 [15] | Info, Main, Application Path: /opt/mediabrowser/MediaBrowser.Server.Mono.exe
2014-12-16 09:43:48 [15] | Info, Main, *** WHEN REPORTING ISSUES PLEASE INCLUDE THE ENTIRE LOG FILE. ***
2014-12-16 09:43:48 [15] | appHost.Init
2014-12-16 09:43:48 [15] | Info, App, Application version: 3.0.5462.0
2014-12-16 09:43:48 [15] | Info, App, Application configuration:
2014-12-16 09:43:48 [15] | 	{"EnableUPnP":true,"PublicPort":8096,"HttpServerPortNumber":8096,"EnableInternetProviders":true,"SeasonZeroDisplayName":"Specials","SaveLocalMeta":false,"EnableLocalizedGuids":false,"PreferredMetadataLanguage":"en","MetadataCountryCode":"US","SortReplaceCharacters":[".","+","%"],"SortRemoveCharacters":[",","&","-","{","}","'"],"SortRemoveWords":["the","a","an"],"MinResumePct":5,"MaxResumePct":90,"MinResumeDurationSeconds":300,"RealtimeMonitorDelay":30,"EnableDashboardResponseCaching":true,"EnableTvDbUpdates":false,"EnableTmdbUpdates":false,"EnableFanArtUpdates":false,"ImageSavingConvention":"Compatible","EnablePeoplePrefixSubFolders":true,"MediaEncodingQuality":"Auto","MetadataOptions":[{"ItemType":"Book","ImageOptions":[{"Type":"Backdrop","Limit":1,"MinWidth":1280}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"Movie","ImageOptions":[{"Type
2014-12-16 09:43:48 [15] | ":"Backdrop","Limit":3,"MinWidth":1280},{"Type":"Art","Limit":0,"MinWidth":0},{"Type":"Disc","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":"Series","ImageOptions":[{"Type":"Backdrop","Limit":2,"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":1,"MinWidth":1280},{"Type":"Disc","Limit":0,"MinWidth":0}],"Di
2014-12-16 09:43:48 [15] | sabledMetadataSavers":[],"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}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"Season","ImageOptions":[{"Type":"Backdrop","Limit":0,"MinWidth":1280}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]}],"EnableDebugEncodingLogging":false,"EnableAutomaticRestart":true,"EnableRealtimeMonitor":true,"PathSubstitutions":[],"UICulture":"en-us","DownMixAudioBoost":2,"PeopleMetadataOptions":{"DownloadActorMetadata":true,"DownloadDirectorMetadata":true,"DownloadProducerMetadata":false,"
2014-12-16 09:43:48 [15] | DownloadWriterMetadata":false,"DownloadComposerMetadata":false,"DownloadOtherPeopleMetadata":false,"DownloadGuestStarMetadata":false},"FindInternetTrailers":true,"InsecureApps7":["Chromecast","iOS","Unknown app","MediaPortal","Media Portal","iPad","iPhone","Roku"],"SaveMetadataHidden":false,"PlaylistImagesDeleted":true,"EnableDebugLevelLogging":false,"EnableAutoUpdate":true,"SystemUpdateLevel":"Release","LogFileRetentionDays":3,"RunAtStartup":false,"IsStartupWizardCompleted":false}
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.Api, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.WebDashboard, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.Model, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.Common, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.Controller, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.Providers, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.Common.Implementations, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.Server.Implementations, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.MediaEncoding, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.Dlna, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, Ap
2014-12-16 09:43:48 [15] | p, Loading MediaBrowser.LocalMetadata, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.XbmcMetadata, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.IsoMounting.Linux, Version=1.0.5131.24779, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.Server.Mono, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, App, Loading MediaBrowser.Server.Startup.Common, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:43:48 [15] | Info, SqliteUserRepository, Sqlite 3.8.2 opening /config/data/users.db
2014-12-16 09:43:48 [15] | Info, SqliteItemRepository, Sqlite 3.8.2 opening /config/data/chapters.db
2014-12-16 09:43:48 [15] | Info, SqliteItemRepository, Sqlite 3.8.2 opening /config/data/mediainfo.db
2014-12-16 09:43:48 [15] | Info, SqliteFileOrganizationRepository, Sqlite 3.8.2 opening /config/data/fileorganization.db
2014-12-16 09:43:48 [15] | Info, AuthenticationRepository, Sqlite 3.8.2 opening /config/data/authentication.db
2014-12-16 09:43:48 [15] | Info, SyncRepository, Sqlite 3.8.2 opening /config/data/sync4.db
2014-12-16 09:43:49 [15] | Info, App, HttpClientManager.GetTempFileResponse url: http://ffmpeg.gusari.org/static/64bit/ffmpeg.static.64bit.latest.tar.gz
2014-12-16 09:44:02 [15] | Info, App, Extracting ffmpeg from /config/cache/temp/933a65a8-781f-40bf-a717-9e56f0b232d5.tmp
2014-12-16 09:44:02 [15] | Info, App, Extracting /config/cache/temp/933a65a8-781f-40bf-a717-9e56f0b232d5.tmp to /config/cache/temp/7c38e914-d8da-44ed-b093-16b9890fe529
2014-12-16 09:44:03 [15] | Info, App, FFMpeg: /config/ffmpeg/20140716/ffmpeg
2014-12-16 09:44:03 [15] | Info, App, FFProbe: /config/ffmpeg/20140716/ffprobe
2014-12-16 09:44:03 [15] | Info, App, HttpClientManager.GetTempFileResponse url: https://github.com/MediaBrowser/MediaBrowser.Resources/raw/master/ffmpeg/ARIALUNI.7z
2014-12-16 09:44:03 [15] | Info, ImageProcessor, libwebp version: 0.4.1
2014-12-16 09:44:03 [15] | Info, ActivityRepository, Sqlite 3.8.2 opening /config/data/activitylog.db
2014-12-16 09:44:03 [15] | Info, SqliteDisplayPreferencesRepository, Sqlite 3.8.2 opening /config/data/displaypreferences.db
2014-12-16 09:44:03 [15] | Info, SqliteItemRepository, Sqlite 3.8.2 opening /config/data/library.db
2014-12-16 09:44:03 [15] | Info, SqliteProviderInfoRepository, Sqlite 3.8.2 opening /config/data/refreshinfo.db
2014-12-16 09:44:03 [15] | Info, SqliteUserDataRepository, Sqlite 3.8.2 opening /config/data/userdata_v2.db
2014-12-16 09:44:03 [15] | Info, SqliteNotificationsRepository, Sqlite 3.8.2 opening /config/data/notifications.db
2014-12-16 09:44:04 [15] | Info, App, Requesting administrative access to authorize http server
2014-12-16 09:44:04 [15] | Info, HttpServer, Calling ServiceStack AppHost.Init
2014-12-16 09:44:04 [15] | 
2014-12-16 09:44:05 [15] | Info, ServiceStackHost, Initializing Application took 16442.721ms
2014-12-16 09:44:05 [15] | Info, ServerManager, Loading Http Server
2014-12-16 09:44:05 [15] | Info, HttpServer, Adding HttpListener prefix http://+:8096/mediabrowser/
2014-12-16 09:44:05 [15] | Running startup tasks
2014-12-16 09:44:05 [15] | Info, App, Core startup complete
2014-12-16 09:44:05 [15] | Error launching url: System.ComponentModel.Win32Exception: Cannot find the specified file
2014-12-16 09:44:05 [15] |   at System.Diagnostics.Process.Start_shell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
2014-12-16 09:44:05 [15] |   at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
2014-12-16 09:44:05 [15] |   at System.Diagnostics.Process.Start () [0x00000] in <filename unknown>:0 
2014-12-16 09:44:05 [15] |   at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
2014-12-16 09:44:05 [15] |   at MediaBrowser.Server.Startup.Common.Browser.BrowserLauncher.OpenUrl (System.String url, ILogger logger) [0x00000] in <filename unknown>:0 
2014-12-16 09:44:05 [15] | Cannot find the specified file
2014-12-16 09:44:05 [15] | Error, App, Error launching url: http://localhost:8096/mediabrowser/web/wizardstart.html
2014-12-16 09:44:05 [15] | 	Cannot find the specified file
2014-12-16 09:44:05 [15] | 	System.ComponentModel.Win32Exception
2014-12-16 09:44:05 [15] | 	  at System.Diagnostics.Process.Start_shell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
2014-12-16 09:44:05 [15] | 	  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
2014-12-16 09:44:05 [15] | 	  at System.Diagnostics.Process.Start () [0x00000] in <filename unknown>:0 
2014-12-16 09:44:05 [15] | 	  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
2014-12-16 09:44:05 [15] | 	  at MediaBrowser.Server.Startup.Common.Browser.BrowserLauncher.OpenUrl (System.String url, ILogger logger) [0x00000] in <filename unknown>:0 
2014-12-16 09:44:05 [15] | 	
2014-12-16 09:44:05 [15] | Info, Dlna, SSDP service started
2014-12-16 09:46:03 [15] | Info, Main, Media Browser Server started
2014-12-16 09:46:03 [15] | 
2014-12-16 09:46:03 [15] | Info, Main, Command line: /opt/mediabrowser/MediaBrowser.Server.Mono.exe -programdata /config
2014-12-16 09:46:03 [15] | Info, Main, Server: nas
2014-12-16 09:46:03 [15] | Info, Main, Operating system: Unix 3.17.4.0
2014-12-16 09:46:03 [15] | Info, Main, Processor count: 4
2014-12-16 09:46:03 [15] | Info, Main, 64-Bit OS: True
2014-12-16 09:46:03 [15] | Info, Main, 64-Bit Process: True
2014-12-16 09:46:03 [15] | Info, Main, Program data path: /config
2014-12-16 09:46:03 [15] | Info, Main, Mono: 3.2.8 (Debian 3.2.8+dfsg-4ubuntu1)
2014-12-16 09:46:03 [15] | Info, Main, Application Path: /opt/mediabrowser/MediaBrowser.Server.Mono.exe
2014-12-16 09:46:03 [15] | Info, Main, *** WHEN REPORTING ISSUES PLEASE INCLUDE THE ENTIRE LOG FILE. ***
2014-12-16 09:46:03 [15] | appHost.Init
2014-12-16 09:46:03 [15] | Info, App, Application version: 3.0.5462.0
2014-12-16 09:46:03 [15] | Info, App, Application configuration:
2014-12-16 09:46:03 [15] | 	{"EnableUPnP":true,"PublicPort":8096,"HttpServerPortNumber":8096,"EnableInternetProviders":true,"SeasonZeroDisplayName":"Specials","SaveLocalMeta":false,"EnableLocalizedGuids":false,"PreferredMetadataLanguage":"en","MetadataCountryCode":"US","SortReplaceCharacters":[".","+","%"],"SortRemoveCharacters":[",","&","-","{","}","'"],"SortRemoveWords":["the","a","an"],"MinResumePct":5,"MaxResumePct":90,"MinResumeDurationSeconds":300,"RealtimeMonitorDelay":30,"EnableDashboardResponseCaching":true,"EnableTvDbUpdates":false,"EnableTmdbUpdates":false,"EnableFanArtUpdates":false,"ImageSavingConvention":"Compatible","EnablePeoplePrefixSubFolders":true,"MediaEncodingQuality":"Auto","MetadataOptions":[{"ItemType":"Book","ImageOptions":[{"Type":"Backdrop","Limit":1,"MinWidth":1280}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"Movie","ImageOptions":[{"Type
2014-12-16 09:46:03 [15] | ":"Backdrop","Limit":3,"MinWidth":1280},{"Type":"Art","Limit":0,"MinWidth":0},{"Type":"Disc","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":"Series","ImageOptions":[{"Type":"Backdrop","Limit":2,"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":1,"MinWidth":1280},{"Type":"Disc","Limit":0,"MinWidth":0}],"Di
2014-12-16 09:46:03 [15] | sabledMetadataSavers":[],"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}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]},{"ItemType":"Season","ImageOptions":[{"Type":"Backdrop","Limit":0,"MinWidth":1280}],"DisabledMetadataSavers":[],"LocalMetadataReaderOrder":[],"DisabledMetadataFetchers":[],"MetadataFetcherOrder":[],"DisabledImageFetchers":[],"ImageFetcherOrder":[]}],"EnableDebugEncodingLogging":false,"EnableAutomaticRestart":true,"EnableRealtimeMonitor":true,"PathSubstitutions":[],"UICulture":"en-us","DownMixAudioBoost":2,"PeopleMetadataOptions":{"DownloadActorMetadata":true,"DownloadDirectorMetadata":true,"DownloadProducerMetadata":false,"
2014-12-16 09:46:03 [15] | DownloadWriterMetadata":false,"DownloadComposerMetadata":false,"DownloadOtherPeopleMetadata":false,"DownloadGuestStarMetadata":false},"FindInternetTrailers":true,"InsecureApps7":["Chromecast","iOS","Unknown app","MediaPortal","Media Portal","iPad","iPhone","Roku"],"SaveMetadataHidden":false,"PlaylistImagesDeleted":true,"EnableDebugLevelLogging":false,"EnableAutoUpdate":true,"SystemUpdateLevel":"Release","LogFileRetentionDays":3,"RunAtStartup":false,"IsStartupWizardCompleted":false}
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.Api, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.WebDashboard, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.Model, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.Common, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.Controller, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.Providers, Ver
2014-12-16 09:46:03 [15] | sion=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.Common.Implementations, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.Server.Implementations, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.MediaEncoding, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.Dlna, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.LocalMetadata, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.XbmcMetadata, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.IsoMounting.Linux, Version=1.0.5131.24779, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.Server.Mono, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, App, Loading MediaBrowser.Server.Startup.Common, Version=3.0.5462.0, Culture=neutral, PublicKeyToken=null
2014-12-16 09:46:03 [15] | Info, SqliteUserRepository, Sqlite 3.8.2 opening /config/data/users.db
2014-12-16 09:46:03 [15] | Info, SqliteItemRepository, Sqlite 3.8.2 opening /config/data/chapters.db
2014-12-16 09:46:03 [15] | Info, SqliteItemRepository, Sqlite 3.8.2 opening /config/data/mediainfo.db
2014-12-16 09:46:03 [15] | Info, SqliteFileOrganizationRepository, Sqlite 3.8.2 opening /config/data/fileorganization.db
2014-12-16 09:46:03 [15] | Info, AuthenticationRepository, Sqlite 3.8.2 opening /config/data/authentication.db
2014-12-16 09:46:03 [15] | Info, SyncRepository, Sqlite 3.8.2 opening /config/data/sync4.db
2014-12-16 09:46:03 [15] | Info, App, FFMpeg: /config/ffmpeg/20140716/ffmpeg
2014-12-16 09:46:03 [15] | Info, App, FFProbe: /config/ffmpeg/20140716/ffprobe
2014-12-16 09:46:03 [15] | Info, ImageProcessor, libwebp version: 0.4.1
2014-12-16 09:46:03 [15] | Info, ActivityRepository, Sqlite 3.8.2 opening /config/data/activitylog.db
2014-12-16 09:46:03 [15] | Info, SqliteDisplayPreferencesRepository, Sqlite 3.8.2 opening /config/data/displaypreferences.db
2014-12-16 09:46:03 [15] | Info, SqliteItemRepository, Sqlite 3.8.2 opening /config/data/library.db
2014-12-16 09:46:03 [15] | Info, SqliteProviderInfoRepository, Sqlite 3.8.2 opening /config/data/refreshinfo.db
2014-12-16 09:46:03 [15] | Info, SqliteUserDataRepository, Sqlite 3.8.2 opening /config/data/userdata_v2.db
2014-12-16 09:46:03 [15] | Info, SqliteNotificationsRepository, Sqlite 3.8.2 opening /config/data/notifications.db
2014-12-16 09:46:03 [15] | Info, App, Requesting administrative access to authorize http server
2014-12-16 09:46:03 [15] | Info, HttpServer, Calling ServiceStack AppHost.Init
2014-12-16 09:46:04 [15] | Info, ServiceStackHost, Initializing Application took 1003.967ms
2014-12-16 09:46:04 [15] | Info, ServerManager, Loading Http Server
2014-12-16 09:46:04 [15] | Info, HttpServer, Adding HttpListener prefix http://+:8096/mediabrowser/
2014-12-16 09:46:04 [15] | Running startup tasks
2014-12-16 09:46:05 [15] | Info, App, Core startup complete
2014-12-16 09:46:05 [15] | Error launching url: System.ComponentModel.Win32Exception: Cannot find the specified file
2014-12-16 09:46:05 [15] |   at System.Diagnostics.Process.Start_shell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
2014-12-16 09:46:05 [15] |   at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
2014-12-16 09:46:05 [15] |   at System.Diagnostics.Process.Start () [0x00000] in <filename unknown>:0 
2014-12-16 09:46:05 [15] |   at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
2014-12-16 09:46:05 [15] |   at MediaBrowser.Server.Startup.Common.Browser.BrowserLauncher.OpenUrl (System.String url, ILogger logger) [0x00000] in <filename unknown>:0 
2014-12-16 09:46:05 [15] | Cannot find the specified file
2014-12-16 09:46:05 [15] | Error, App, Error launching url: http://localhost:8096/mediabrowser/web/wizardstart.html
2014-12-16 09:46:05 [15] | 	Cannot find the specified file
2014-12-16 09:46:05 [15] | 	System.ComponentModel.Win32Exception
2014-12-16 09:46:05 [15] | 	  at System.Diagnostics.Process.Start_shell (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
2014-12-16 09:46:05 [15] | 	  at System.Diagnostics.Process.Start_common (System.Diagnostics.ProcessStartInfo startInfo, System.Diagnostics.Process process) [0x00000] in <filename unknown>:0 
2014-12-16 09:46:05 [15] | 	  at System.Diagnostics.Process.Start () [0x00000] in <filename unknown>:0 
2014-12-16 09:46:05 [15] | 	  at (wrapper remoting-invoke-with-check) System.Diagnostics.Process:Start ()
2014-12-16 09:46:05 [15] | 	  at MediaBrowser.Server.Startup.Common.Browser.BrowserLauncher.OpenUrl (System.String url, ILogger logger) [0x00000] in <filename unknown>:0 
2014-12-16 09:46:05 [15] | 	
2014-12-16 09:46:05 [15] | Info, Dlna, SSDP service started

Edited by StevenDTX
Link to comment
Share on other sites

hurricanehrndz

Yes this is a mediabrowser error, not specific to docker. There should be an update shortly please try again then and report back.

Link to comment
Share on other sites

StevenDTX

Yes this is a mediabrowser error, not specific to docker. There should be an update shortly please try again then and report back.

 

Thank you for the quick response!

Link to comment
Share on other sites

  • 1 month later...
jacob.alberty

Would it be feasable to call a firstrun.sh from start.sh using something like:

if [ -e /firstrun.sh ]
then
  /firstrun.sh
  rm -f /firstrun.sh
fi

firstrun.sh could then look like

#!/bin/sh

usermod -u ${USER_ID:-99} mediabrowser
groupmod -g ${GROUP_ID:-100} mediabrowser
usermod -g ${GROUP_ID:-100} mediabrowser

envtpl /etc/circus.d/MediaBrowser.ini.tpl --allow-missing

This would open up using USER_ID and GROUP_ID as configurable parameters to allow the docker container to be configured to match the host systems file permissions.

 

If no GROUP_ID or USER_ID is specified it will give a small

usermod: no changes

error message on first boot due to trying to reuse the groups set by run. but beyond that the file firstrun.sh is removed and behavior will mimic the old behavior when no GROUP_ID or USER_ID set other than not trying to recreate MediaBrowser.ini every start (so no error message about that)

but if GROUP_ID and USER_ID are passed using -e with docker run then it will set the mediabrowser user and/or group to whatever is specified and then have circusd launch mediabrowser using that user and group.

Link to comment
Share on other sites

hurricanehrndz

Would it be feasable to call a firstrun.sh from start.sh using something like:

if [ -e /firstrun.sh ]
then
  /firstrun.sh
  rm -f /firstrun.sh
fi

firstrun.sh could then look like

#!/bin/sh

usermod -u ${USER_ID:-99} mediabrowser
groupmod -g ${GROUP_ID:-100} mediabrowser
usermod -g ${GROUP_ID:-100} mediabrowser

envtpl /etc/circus.d/MediaBrowser.ini.tpl --allow-missing

This would open up using USER_ID and GROUP_ID as configurable parameters to allow the docker container to be configured to match the host systems file permissions.

 

If no GROUP_ID or USER_ID is specified it will give a small

usermod: no changes

error message on first boot due to trying to reuse the groups set by run. but beyond that the file firstrun.sh is removed and behavior will mimic the old behavior when no GROUP_ID or USER_ID set other than not trying to recreate MediaBrowser.ini every start (so no error message about that)

but if GROUP_ID and USER_ID are passed using -e with docker run then it will set the mediabrowser user and/or group to whatever is specified and then have circusd launch mediabrowser using that user and group.

Yes it would be. Thank you for the suggestion, I will get right on it.

  • Like 1
Link to comment
Share on other sites

  • 4 weeks later...
deaerator

I came back to the fold and decided to install the docker.

My only issue is where is the restart button.  when the docker updates and requires a restart; I can't find the restart button. 

 

 

Link to comment
Share on other sites

deaerator

The only reason i ask is when i install a new plugin, it keeps asking me to restart the server.  I recall that there was a server restart button under servers setting. 

Link to comment
Share on other sites

thefirstofthe300

The only reason i ask is when i install a new plugin, it keeps asking me to restart the server. I recall that there was a server restart button under servers setting.

Do to the way that security in Linux works, the server isn't actually able to restart itself so it was removed for the Linux builds. Plus, it would mess up the service if you started the server using a service (systemd or sysv init).
Link to comment
Share on other sites

I'm having this error with the last build (2015-02-22). It sounds to happen more or less randomly after a restart of the Docker container. Any thoughts?

$ docker logs mbserver

--> start.sh script running...
---> Starting circus...
2015-02-28 09:18:50 circus[1] [INFO] Starting master on pid 1
2015-02-28 09:18:50 circus[1] [INFO] Arbiter now waiting for commands
2015-02-28 09:18:50 circus[1] [INFO] MediaBrowser started
Stacktrace:


Native stacktrace:

Stacktrace:


Native stacktrace:

	mono() [0x4b73d8]
	mono() [0x50f13b]
	mono() [0x423d22]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f500f6a7340]
	/lib/x86_64-linux-gnu/libpthread.so.0(pthread_mutex_lock+0x4) [0x7f500f6a1414]
	mono() [0x4c1c47]
	[0x4053aae6]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Stacktrace:


Native stacktrace:

	mono() [0x4b73d8]
	mono() [0x50f13b]
	mono() [0x423d22]
	/lib/x86_64-linux-gnu/libpthread.so.0(+0x10340) [0x7f2aed67f340]

Debug info from gdb:


=================================================================
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries 
used by your application.
=================================================================

Update: I've upgraded Docker from v1.0.1 (from the default Ubuntu repo) to v1.5 (from the Docker repo). Don't have the issue anymore.

Update2: Well, actually, this is coming back. I'm opening a dedicated thread.

Edited by grimy55
Link to comment
Share on other sites

grimy55

I've noticed the Mono package that comes with the Docker container is v3.2.8 (actually the version provided in the official Ubuntu Trusty depo). Some users have reported some incompatibilities between this old Mono v3.2.8 and the newer Mediabrowser version. It might also be the cause of the issue I reported above and there.

 

Is it planned to modify the official Mediabrowser container to come with a newer version of Mono (the mono-project provides installation instructions for Trusty)?

 

 

Thanks for your good work.

Link to comment
Share on other sites

hurricanehrndz

I've noticed the Mono package that comes with the Docker container is v3.2.8 (actually the version provided in the official Ubuntu Trusty depo). Some users have reported some incompatibilities between this old Mono v3.2.8 and the newer Mediabrowser version. It might also be the cause of the issue I reported above and there.

 

Is it planned to modify the official Mediabrowser container to come with a newer version of Mono (the mono-project provides installation instructions for Trusty)?

 

 

Thanks for your good work.

Yes. I'm working on getting imagemagic working and at the same time I will try and update mono. Please be patient. I've been busy rebuilding my development and unraid server.

Link to comment
Share on other sites

hurricanehrndz

Do to the way that security in Linux works, the server isn't actually able to restart itself so it was removed for the Linux builds. Plus, it would mess up the service if you started the server using a service (systemd or sysv init).

The service can be restarted using docker exec command. I will post it soon once the new update is released. Everyone please withhold from updating until I say the update is ready for docker. Feel free to follow me on twitter carlos_techbyte

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