mkarikom 0 Posted March 29, 2021 Share Posted March 29, 2021 For some reason emby always tries to bind 8096, even with the following: ``` version: "2.1" services: emby: image: ghcr.io/linuxserver/emby container_name: emby environment: - PUID=1000 - PGID=1001 volumes: - <my config path>:/config - <my tv path>:/data/tvshows ports: - 8099:8099 devices: - /dev/dri:/dev/dri #optional restart: unless-stopped ``` Here is the error: ``` System.IO.IOException: System.IO.IOException: Failed to bind to address http://[::]:8096: address already in use. embyserver2 | ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use embyserver2 | ---> System.Net.Sockets.SocketException (98): Address already in use embyserver2 | at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName) embyserver2 | at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) embyserver2 | at System.Net.Sockets.Socket.Bind(EndPoint localEP) embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind() ``` Yes, 8096 is already bound (jellyfin), because I'm testing both, which is why I set emby to 8099 in the compose script above Link to comment Share on other sites More sharing options...
Luke 36997 Posted March 29, 2021 Share Posted March 29, 2021 Hi, this change only authorizes the port through the docker container. You still need to change the port in Emby Server network settings as well. Link to comment Share on other sites More sharing options...
mkarikom 0 Posted March 29, 2021 Author Share Posted March 29, 2021 Thanks! I'm new to docker and I've been following this documentation. Under "Parameters", it gives this example for ports: <external>:<internal>, which made me think that `8099:8099` would tell emby to listen on 8099 internally as well. Can you point me to the relevant docs for the network settings? Link to comment Share on other sites More sharing options...
Solution Luke 36997 Posted March 29, 2021 Solution Share Posted March 29, 2021 https://support.emby.media/support/solutions/articles/44001159601-network-hosting-settings So it's the local port(s) that you would want to change. 1 Link to comment Share on other sites More sharing options...
mkarikom 0 Posted March 29, 2021 Author Share Posted March 29, 2021 Ok apollogies for not posting the complete output above, I can't access the web interface because the docker-compose failed. Here is the complete output: ``` embyserver2 | [s6-init] making user provided files available at /var/run/s6/etc...exited 0. embyserver2 | [s6-init] ensuring user provided files have correct perms...exited 0. embyserver2 | [fix-attrs.d] applying ownership & permissions fixes... embyserver2 | [fix-attrs.d] done. embyserver2 | [cont-init.d] executing container initialization scripts... embyserver2 | [cont-init.d] done. embyserver2 | [services.d] starting services embyserver2 | [services.d] done. embyserver2 | Info Main: Application path: /system/EmbyServer.dll embyserver2 | Info Main: Emby embyserver2 | Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 embyserver2 | Operating system: Linux version 5.8.0-45-generic (buildd@lcy01-amd64-024) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #51~20.04.1- embyserver2 | Framework: .NET Core 3.1.8 embyserver2 | OS/Process: x64/x64 embyserver2 | Runtime: system/System.Private.CoreLib.dll embyserver2 | Processor count: 32 embyserver2 | Data path: /config embyserver2 | Application path: /system embyserver2 | Info App: Application version: 4.5.4.0 embyserver2 | Info App: Loading assemblies embyserver2 | Info App: File /config/plugins/NfoMetadata.dll has version 1.0.34.0 embyserver2 | Info App: File /system/plugins/NfoMetadata.dll has version 1.0.34.0 embyserver2 | Info App: File /config/plugins/Emby.Dlna.dll has version 1.0.39.0 embyserver2 | Info App: File /system/plugins/Emby.Dlna.dll has version 1.0.39.0 embyserver2 | Info App: File /config/plugins/AudioDb.dll has version 1.0.11.0 embyserver2 | Info App: File /system/plugins/AudioDb.dll has version 1.0.11.0 embyserver2 | Info App: File /config/plugins/Emby.Webhooks.dll has version 1.0.13.0 embyserver2 | Info App: File /system/plugins/Emby.Webhooks.dll has version 1.0.13.0 embyserver2 | Info App: File /config/plugins/BlurayMounter.dll has version 1.0.0.0 embyserver2 | Info App: File /system/plugins/BlurayMounter.dll has version 1.0.0.0 embyserver2 | Info App: File /config/plugins/Fanart.dll has version 1.0.10.0 embyserver2 | Info App: File /system/plugins/Fanart.dll has version 1.0.10.0 embyserver2 | Info App: File /config/plugins/OMDb.dll has version 1.0.11.0 embyserver2 | Info App: File /system/plugins/OMDb.dll has version 1.0.11.0 embyserver2 | Info App: File /config/plugins/Emby.Server.CinemaMode.dll has version 1.0.35.0 embyserver2 | Info App: File /system/plugins/Emby.Server.CinemaMode.dll has version 1.0.35.0 embyserver2 | Info App: File /config/plugins/OpenSubtitles.dll has version 1.0.27.0 embyserver2 | Info App: File /system/plugins/OpenSubtitles.dll has version 1.0.27.0 embyserver2 | Info App: File /config/plugins/Emby.PortMapper.dll has version 1.0.4.0 embyserver2 | Info App: File /system/plugins/Emby.PortMapper.dll has version 1.0.4.0 embyserver2 | Info App: File /config/plugins/StudioImages.dll has version 1.0.3.0 embyserver2 | Info App: File /system/plugins/StudioImages.dll has version 1.0.3.0 embyserver2 | Info App: File /config/plugins/MovieDb.dll has version 1.3.8.0 embyserver2 | Info App: File /system/plugins/MovieDb.dll has version 1.3.8.0 embyserver2 | Info App: File /config/plugins/DvdMounter.dll has version 1.0.0.0 embyserver2 | Info App: File /system/plugins/DvdMounter.dll has version 1.0.0.0 embyserver2 | Info App: File /config/plugins/MusicBrainz.dll has version 1.0.13.0 embyserver2 | Info App: File /system/plugins/MusicBrainz.dll has version 1.0.13.0 embyserver2 | Info App: File /config/plugins/Tvdb.dll has version 1.0.35.0 embyserver2 | Info App: File /system/plugins/Tvdb.dll has version 1.0.35.0 embyserver2 | Info App: Loading Emby.Server.CinemaMode, Version=1.0.35.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Server.CinemaMode.dll embyserver2 | Info App: Loading MusicBrainz, Version=1.0.13.0, Culture=neutral, PublicKeyToken=null from /config/plugins/MusicBrainz.dll embyserver2 | Info App: Loading Emby.Dlna, Version=1.0.39.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Dlna.dll embyserver2 | Info App: Loading NfoMetadata, Version=1.0.34.0, Culture=neutral, PublicKeyToken=null from /config/plugins/NfoMetadata.dll embyserver2 | Info App: Loading AudioDb, Version=1.0.11.0, Culture=neutral, PublicKeyToken=null from /config/plugins/AudioDb.dll embyserver2 | Info App: Loading MovieDb, Version=1.3.8.0, Culture=neutral, PublicKeyToken=null from /config/plugins/MovieDb.dll embyserver2 | Info App: Loading Emby.PortMapper, Version=1.0.4.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.PortMapper.dll embyserver2 | Info App: Loading DvdMounter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/DvdMounter.dll embyserver2 | Info App: Loading OpenSubtitles, Version=1.0.27.0, Culture=neutral, PublicKeyToken=null from /config/plugins/OpenSubtitles.dll embyserver2 | Info App: Loading BlurayMounter, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null from /config/plugins/BlurayMounter.dll embyserver2 | Info App: Loading OMDb, Version=1.0.11.0, Culture=neutral, PublicKeyToken=null from /config/plugins/OMDb.dll embyserver2 | Info App: Loading Emby.Webhooks, Version=1.0.13.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Emby.Webhooks.dll embyserver2 | Info App: Loading StudioImages, Version=1.0.3.0, Culture=neutral, PublicKeyToken=null from /config/plugins/StudioImages.dll embyserver2 | Info App: Loading Fanart, Version=1.0.10.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Fanart.dll embyserver2 | Info App: Loading Tvdb, Version=1.0.35.0, Culture=neutral, PublicKeyToken=null from /config/plugins/Tvdb.dll embyserver2 | Info App: Loading Emby.Api, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.Web, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading MediaBrowser.Model, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading MediaBrowser.Common, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading MediaBrowser.Controller, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.Providers, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.Photos, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.Server.Implementations, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.LiveTV, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.ActivityLog, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.Server.MediaEncoding, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.LocalMetadata, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.Notifications, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.Codecs.Dxva, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.Codecs, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.Server.Connect, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading Emby.Server.Sync, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info App: Loading EmbyServer, Version=4.5.4.0, Culture=neutral, PublicKeyToken=null embyserver2 | Info SqliteUserRepository: Sqlite version: 3.33.0 embyserver2 | Info SqliteUserRepository: Sqlite compiler options: COMPILER=gcc-8.3.0,ENABLE_COLUMN_METADATA,ENABLE_DBSTAT_VTAB,ENABLE_FTS3_PARENTHESIS,ENABLE_FTS3_TOKENIZER,ENABLE_FTS4,ENABLE_FTS5,ENABLE_GEOPOLY,ENABLE_JSON1,ENABLE_PREUPDATE_HOOK,ENABLE_RTREE,ENABLE_SESSION,ENABLE_UNLOCK_NOTIFY,ENABLE_UPDATE_DELETE_LIMIT,LIKE_DOESNT_MATCH_BLOBS,MAX_SCHEMA_RETRY=25,MAX_VARIABLE_NUMBER=250000,OMIT_LOOKASIDE,SECURE_DELETE,THREADSAFE=1 embyserver2 | Info SqliteUserRepository: Default journal_mode for /config/data/users.db is wal embyserver2 | Info AuthenticationRepository: Default journal_mode for /config/data/authentication.db is wal embyserver2 | Info ActivityRepository: Default journal_mode for /config/data/activitylog.db is wal embyserver2 | Info SqliteDisplayPreferencesRepository: Default journal_mode for /config/data/displaypreferences.db is wal embyserver2 | Info App: Adding HttpListener prefix http://+:8096/ embyserver2 | Error Main: Error in appHost.Init embyserver2 | *** Error Report *** embyserver2 | Version: 4.5.4.0 embyserver2 | Command line: /system/EmbyServer.dll -programdata /config -ffdetect /bin/ffdetect -ffmpeg /bin/ffmpeg -ffprobe /bin/ffprobe -restartexitcode 3 embyserver2 | Operating system: Linux version 5.8.0-45-generic (buildd@lcy01-amd64-024) (gcc (Ubuntu 9.3.0-17ubuntu1~20.04) 9.3.0, GNU ld (GNU Binutils for Ubuntu) 2.34) #51~20.04.1- embyserver2 | Framework: .NET Core 3.1.8 embyserver2 | OS/Process: x64/x64 embyserver2 | Runtime: system/System.Private.CoreLib.dll embyserver2 | Processor count: 32 embyserver2 | Data path: /config embyserver2 | Application path: /system embyserver2 | System.IO.IOException: System.IO.IOException: Failed to bind to address http://[::]:8096: address already in use. embyserver2 | ---> Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use embyserver2 | ---> System.Net.Sockets.SocketException (98): Address already in use embyserver2 | at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName) embyserver2 | at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) embyserver2 | at System.Net.Sockets.Socket.Bind(EndPoint localEP) embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind() embyserver2 | --- End of inner exception stack trace --- embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind() embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken) embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_0`1.<<StartAsync>g__OnBind|0>d.MoveNext() embyserver2 | --- End of stack trace from previous location where exception was thrown --- embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context) embyserver2 | --- End of inner exception stack trace --- embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context) embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Core.ListenOptions.BindAsync(AddressBindContext context) embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Core.AnyIPListenOptions.BindAsync(AddressBindContext context) embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.EndpointsStrategy.BindAsync(AddressBindContext context) embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindAsync(IServerAddressesFeature addresses, KestrelServerOptions serverOptions, ILogger logger, Func`2 createBinding) embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.StartAsync[TContext](IHttpApplication`1 application, CancellationToken cancellationToken) embyserver2 | at Microsoft.AspNetCore.Hosting.WebHost.StartAsync(CancellationToken cancellationToken) embyserver2 | at Microsoft.AspNetCore.Hosting.WebHost.Start() embyserver2 | at Emby.Server.Implementations.HttpServer.KestrelHost.KestrelListener.OnAddPrefixesComplete() embyserver2 | at Emby.Server.Implementations.ApplicationHost.Init() embyserver2 | at EmbyServer.HostedService.StartAsync(CancellationToken cancellationToken) embyserver2 | Source: Microsoft.AspNetCore.Server.Kestrel.Core embyserver2 | TargetSite: Void MoveNext() embyserver2 | InnerException: Microsoft.AspNetCore.Connections.AddressInUseException: Address already in use embyserver2 | Source: Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets embyserver2 | TargetSite: Void Bind() embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind() embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketTransportFactory.BindAsync(EndPoint endpoint, CancellationToken cancellationToken) embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Core.KestrelServer.<>c__DisplayClass21_0`1.<<StartAsync>g__OnBind|0>d.MoveNext() embyserver2 | --- End of stack trace from previous location where exception was thrown --- embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Core.Internal.AddressBinder.BindEndpointAsync(ListenOptions endpoint, AddressBindContext context) embyserver2 | InnerException: System.Net.Sockets.SocketException: Address already in use embyserver2 | Source: System.Net.Sockets embyserver2 | TargetSite: Void UpdateStatusAfterSocketErrorAndThrowException(System.Net.Sockets.SocketError, System.String) embyserver2 | at System.Net.Sockets.Socket.UpdateStatusAfterSocketErrorAndThrowException(SocketError error, String callerName) embyserver2 | at System.Net.Sockets.Socket.DoBind(EndPoint endPointSnapshot, SocketAddress socketAddress) embyserver2 | at System.Net.Sockets.Socket.Bind(EndPoint localEP) embyserver2 | at Microsoft.AspNetCore.Server.Kestrel.Transport.Sockets.SocketConnectionListener.Bind() embyserver2 | embyserver2 | Info Main: Shutdown complete embyserver2 | [cont-finish.d] executing container finish scripts... embyserver2 | [cont-finish.d] done. embyserver2 | [s6-finish] waiting for services. embyserver2 | [s6-finish] sending all processes the TERM signal. embyserver2 | [s6-finish] sending all processes the KILL signal and exiting. ``` Link to comment Share on other sites More sharing options...
mkarikom 0 Posted March 29, 2021 Author Share Posted March 29, 2021 Ok, nevermind, I just shut down jellyfin, ran docker-compose, then switched the port in the interface as suggested. All done, thanks! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now