Cannot start deluged, listen port in use

This is how I started deluge

docker run
–name=deluge
–net=host
-e PUID=1000
-e PGID=1000
-e TZ=UTC
-p 8112:8112
-p 58846:58846
-p 58946:58946
-p 58946:58946/udp
linuxserver/deluge

When I open http://ip:8112 on the connection manager window, the status of the host (localclient@127.0.0.1:58846) is oflline. After selecting the host and clicking on “Start Daemon” nothing happens and host doesn’t become online. Based on netstat output port 58846 is free and nothing is using this port.

Log:

[services.d] starting services
[services.d] done.
11:25:57 [WARNING ][deluge.config :410 ] Unable to open config file /config/web.conf: [Errno 2] No such file or directory: ‘/config/web.conf’
11:25:57 [WARNING ][deluge.i18n.util :83 ] IOError when loading translations: [Errno 2] No translation file found for domain: ‘deluge’
11:25:58 [WARNING ][deluge.config :410 ] Unable to open config file /config/hostlist.conf: [Errno 2] No such file or directory: ‘/config/hostlist.conf’
11:25:58 [WARNING ][deluge.config :475 ] Unable to open config file: /config/hostlist.conf because: [Errno 2] No such file or directory: ‘/config/hostlist.conf’
11:25:58 [WARNING ][deluge.config :500 ] Unable to backup old config: [Errno 2] No such file or directory: ‘/config/hostlist.conf’
11:26:36 [WARNING ][deluge.config :475 ] Unable to open config file: /config/web.conf because: [Errno 2] No such file or directory: ‘/config/web.conf’
11:26:36 [WARNING ][deluge.config :500 ] Unable to backup old config: [Errno 2] No such file or directory: ‘/config/web.conf’
11:26:37 [ERROR ][deluge.core.daemon_entry :128 ] Cannot start deluged, listen port in use.
Check for other running daemons or services using this port: localhost:58846
11:29:08 [ERROR ][deluge.core.daemon_entry :128 ] Cannot start deluged, listen port in use.
Check for other running daemons or services using this port: localhost:58846

Yesterday I had to recreate my containers, and I get a similar error + can’t start daemon:

14:17:17 [WARNING ][deluge.i18n.util           :83  ] IOError when loading translations: [Errno 2] No translation file found for domain: 'deluge'
14:17:17 [ERROR   ][deluge.ui.web.web          :83  ] Couldn't listen on 0.0.0.0:8112: [Errno 98] Address already in use. 
Check that deluge-web or webui plugin is not already running.

First I was using my ‘configs’ from before. I also removed all content of the config folder and recreated, but an extra error appears:
14:19:04 [WARNING ][deluge.config :410 ] Unable to open config file /config/web.conf: [Errno 2] No such file or directory: '/config/web.conf'

@hamed-sepehr can you recreate the issue if you follow our readme’s instructions?

@wardw please share your docker command or your compose

Here you go:
I use this GID and UID for several containers, so they are working :slight_smile:

 deluge:
    image: linuxserver/deluge
    restart: unless-stopped
    network_mode: host
    volumes:
      - /volume1/docker/deluge:/config
      - /volume1/Download:/downloads
    environment:
      - TZ=Europe/Brussels
      - PGID=100
      - PUID=1028
    container_name: deluge

netstat -tupln | grep 8112
what are the results, it says your port 8112 is in use on the host which is likely holding up your progression

only one result:
tcp 0 0 0.0.0.0:8112 0.0.0.0:* LISTEN 23767/deluge-web

are you already running deluge directly on the host (or in a host-mode docker) and trying to add a second node running it?

Not that I know of…
I completely reinstalled docker yesterday

docker ps

according to your logs, the port is already in use, according to netstat it’s in use by deluge. You may want to visit us on discord for some real-time help!

Nevermind, just did everything again with the latest image and now it works fine.