Docker and transmission, can't connect to web ui

  • Hi all,


    I've been using OVM for a few years and just upgraded to version 4 today from OVM 3. I'm trying to install transmission using docker and I followed the video tutorial. Everything went well until I tried accessing the transmission UI in my browser. In the video the transmission controls appear but in my browser I'm being asked for a userid and password. I tried entering the userid/password that match the PUID/PGID I entered but it didn't work. I've tried every other userid/password combination including root and admin and none of them work. Any idea what's wrong? My log file is below, I've highlighted a few lines of concern. Any help will be much appreciated.


    [s6-init] making user provided files available at /var/run/s6/etc...exited 0.
    [s6-init] ensuring user provided files have correct perms...exited 0.
    [fix-attrs.d] applying ownership & permissions fixes...
    [fix-attrs.d] done.
    [cont-init.d] executing container initialization scripts...
    [cont-init.d] 10-adduser: executing...


    -------------------------------------
    _ ()
    | | ___ _ __
    | | / __| | | / \
    | | \__ \ | | | () |
    |_| |___/ |_| \__/



    Brought to you by linuxserver.io
    We gratefully accept donations at:
    https://www.linuxserver.io/donations/
    -------------------------------------
    GID/UID
    -------------------------------------


    User uid: 1000
    User gid: 100
    -------------------------------------


    [cont-init.d] 10-adduser: exited 0.
    [cont-init.d] 20-config: executing...
    [cont-init.d] 20-config: exited 0.
    [cont-init.d] done.
    [services.d] starting services
    [services.d] done.
    [2018-05-17 10:45:08.151] Transmission 2.94 (d8e60ee44f) started (session.c:740)
    [2018-05-17 10:45:08.152] RPC Server Adding address to whitelist: 127.0.0.1 (rpc-server.c:971)
    [2018-05-17 10:45:08.152] RPC Server Serving RPC and Web requests on port 127.0.0.1:9091/transmission/ (rpc-server.c:1213)
    [2018-05-17 10:45:08.152] Couldn't bind port 51413 on 0.0.0.0: Address in use (Is another copy of Transmission already running?) (net.c:380)
    [2018-05-17 10:45:08.152] Couldn't bind port 51413 on ::: Address in use (Is another copy of Transmission already running?) (net.c:380)
    [2018-05-17 10:45:08.152] UDP Couldn't bind IPv4 socket (tr-udp.c:271)
    [2018-05-17 10:45:08.152] DHT Generating new id (tr-dht.c:311)
    [2018-05-17 10:45:08.152] Using settings from "/config" (daemon.c:528)
    [2018-05-17 10:45:08.152] Saved "/config/settings.json" (variant.c:1266)
    [2018-05-17 10:45:08.152] Watching "/watch" for new .torrent files (daemon.c:573)
    [2018-05-17 10:45:08.152] Port Forwarding (NAT-PMP) initnatpmp succeeded (0) (natpmp.c:70)
    [2018-05-17 10:45:08.152] Port Forwarding (NAT-PMP) sendpublicaddressrequest succeeded (2) (natpmp.c:70)
    [2018-05-17 10:45:10.152] Port Forwarding (UPnP) Found Internet Gateway Device "http://192.168.1.254:5431/uuid:a26c6839-cad9-4bc3-9d8b-10aaf4d49aba/WANIPConnection:1" (upnp.c:227)
    [2018-05-17 10:45:10.152] Port Forwarding (UPnP) Local Address is "192.168.1.79" (upnp.c:229)
    [2018-05-17 10:45:10.152] Port Forwarding (UPnP) Port forwarding through "http://192.168.1.254:5431/uuid:a26c6839-cad9-4bc3-9d8b-10aaf4d49aba/WANIPConnection:1", service "urn:schemas-upnp-org:service:WANIPConnection:1". (local address: 192.168.1.79:51413) (upnp.c:304)
    [2018-05-17 10:45:10.152] Port Forwarding (UPnP) Port forwarding successful! (upnp.c:307)
    [2018-05-17 10:45:10.152] Port Forwarding State changed from "Not forwarded" to "Forwarded" (port-forwarding.c:92)
    [2018-05-17 10:46:57.151] RPC Server Unable to bind to 0.0.0.0:9091 after 10 attempts, giving up (rpc-server.c:846)

  • The video is under the OMV Setup videos, post #6 "{How to} Install Transmission in a Docker in OMV4 [Video]".


    Not sure the best way to share my configuration. Here's what I get from the Details button for my Docker container:


    [
    {
    "Id": "cb832fc980f370c610f365bc042e03239e7fc5db0b9ac9cd8a705e7c531ccdaf",
    "Created": "2018-05-17T17:45:05.842804937Z",
    "Path": "/init",
    "Args": [],
    "State": {
    "Status": "running",
    "Running": true,
    "Paused": false,
    "Restarting": false,
    "OOMKilled": false,
    "Dead": false,
    "Pid": 1715,
    "ExitCode": 0,
    "Error": "",
    "StartedAt": "2018-05-17T17:45:06.597545502Z",
    "FinishedAt": "0001-01-01T00:00:00Z"
    },
    "Image": "sha256:1c5fa729c475ef55e5a37fdc8556fc547f1398456bf423a3f76f6807c188723a",
    "ResolvConfPath": "/var/lib/docker/containers/cb832fc980f370c610f365bc042e03239e7fc5db0b9ac9cd8a705e7c531ccdaf/resolv.conf",
    "HostnamePath": "/var/lib/docker/containers/cb832fc980f370c610f365bc042e03239e7fc5db0b9ac9cd8a705e7c531ccdaf/hostname",
    "HostsPath": "/var/lib/docker/containers/cb832fc980f370c610f365bc042e03239e7fc5db0b9ac9cd8a705e7c531ccdaf/hosts",
    "LogPath": "/var/lib/docker/containers/cb832fc980f370c610f365bc042e03239e7fc5db0b9ac9cd8a705e7c531ccdaf/cb832fc980f370c610f365bc042e03239e7fc5db0b9ac9cd8a705e7c531ccdaf-json.log",
    "Name": "/transmission",
    "RestartCount": 0,
    "Driver": "overlay2",
    "Platform": "linux",
    "MountLabel": "",
    "ProcessLabel": "",
    "AppArmorProfile": "docker-default",
    "ExecIDs": null,
    "HostConfig": {
    "Binds": [
    "/etc/localtime:/etc/localtime:ro",
    "/sharedfolders/downloads:/downloads:rw",
    "/sharedfolders/config:/config:rw",
    "/sharedfolders/watched:/watch:rw"
    ],
    "ContainerIDFile": "",
    "LogConfig": {
    "Type": "json-file",
    "Config": {}
    },
    "NetworkMode": "host",
    "PortBindings": {},
    "RestartPolicy": {
    "Name": "no",
    "MaximumRetryCount": 0
    },
    "AutoRemove": false,
    "VolumeDriver": "",
    "VolumesFrom": null,
    "CapAdd": null,
    "CapDrop": null,
    "Dns": [],
    "DnsOptions": [],
    "DnsSearch": [],
    "ExtraHosts": null,
    "GroupAdd": null,
    "IpcMode": "shareable",
    "Cgroup": "",
    "Links": null,
    "OomScoreAdj": 0,
    "PidMode": "",
    "Privileged": false,
    "PublishAllPorts": false,
    "ReadonlyRootfs": false,
    "SecurityOpt": null,
    "UTSMode": "",
    "UsernsMode": "",
    "ShmSize": 67108864,
    "Runtime": "runc",
    "ConsoleSize": [
    0,
    0
    ],
    "Isolation": "",
    "CpuShares": 0,
    "Memory": 0,
    "NanoCpus": 0,
    "CgroupParent": "",
    "BlkioWeight": 0,
    "BlkioWeightDevice": [],
    "BlkioDeviceReadBps": null,
    "BlkioDeviceWriteBps": null,
    "BlkioDeviceReadIOps": null,
    "BlkioDeviceWriteIOps": null,
    "CpuPeriod": 0,
    "CpuQuota": 0,
    "CpuRealtimePeriod": 0,
    "CpuRealtimeRuntime": 0,
    "CpusetCpus": "",
    "CpusetMems": "",
    "Devices": [],
    "DeviceCgroupRules": null,
    "DiskQuota": 0,
    "KernelMemory": 0,
    "MemoryReservation": 0,
    "MemorySwap": 0,
    "MemorySwappiness": null,
    "OomKillDisable": false,
    "PidsLimit": 0,
    "Ulimits": null,
    "CpuCount": 0,
    "CpuPercent": 0,
    "IOMaximumIOps": 0,
    "IOMaximumBandwidth": 0
    },
    "GraphDriver": {
    "Data": {
    "LowerDir": "/var/lib/docker/overlay2/0ec775057b573c714dd6eb2daebfeb35fbec3595e82480a6187a4d580db38385-init/diff:/var/lib/docker/overlay2/e5fb298e9cc0d770949bd927fb3e3445be607ec35530b5a2f4b93abe9967f0db/diff:/var/lib/docker/overlay2/344443dac48e650a15a34ffcb5f997dc72a2e19578caa63d721bc6f717e7765f/diff:/var/lib/docker/overlay2/4f236c75179bc62b14a496dfe10c18a3410d773d6fa2b06a18aa1312e3766f07/diff:/var/lib/docker/overlay2/50a5ccc99bbb61fbf947e7fc69e29533a39ee6a267b1c81af879ccb473eb41c9/diff:/var/lib/docker/overlay2/4f3f729d7af09ad55c46b243b00cc76edd8162f481e5551a623328743ed510c4/diff",
    "MergedDir": "/var/lib/docker/overlay2/0ec775057b573c714dd6eb2daebfeb35fbec3595e82480a6187a4d580db38385/merged",
    "UpperDir": "/var/lib/docker/overlay2/0ec775057b573c714dd6eb2daebfeb35fbec3595e82480a6187a4d580db38385/diff",
    "WorkDir": "/var/lib/docker/overlay2/0ec775057b573c714dd6eb2daebfeb35fbec3595e82480a6187a4d580db38385/work"
    },
    "Name": "overlay2"
    },
    "Mounts": [
    {
    "Type": "bind",
    "Source": "/sharedfolders/downloads",
    "Destination": "/downloads",
    "Mode": "rw",
    "RW": true,
    "Propagation": "rprivate"
    },
    {
    "Type": "bind",
    "Source": "/sharedfolders/config",
    "Destination": "/config",
    "Mode": "rw",
    "RW": true,
    "Propagation": "rprivate"
    },
    {
    "Type": "bind",
    "Source": "/sharedfolders/watched",
    "Destination": "/watch",
    "Mode": "rw",
    "RW": true,
    "Propagation": "rprivate"
    },
    {
    "Type": "bind",
    "Source": "/etc/localtime",
    "Destination": "/etc/localtime",
    "Mode": "ro",
    "RW": false,
    "Propagation": "rprivate"
    }
    ],
    "Config": {
    "Hostname": "fserver",
    "Domainname": "",
    "User": "",
    "AttachStdin": false,
    "AttachStdout": false,
    "AttachStderr": false,
    "ExposedPorts": {
    "51413/tcp": {},
    "9091/tcp": {}
    },
    "Tty": false,
    "OpenStdin": false,
    "StdinOnce": false,
    "Env": [
    "TERM=xterm",
    "PUID=1000",
    "PGID=100",
    "PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin",
    "PS1=root@fserver:/$ ",
    "HOME=/media/e7988c56-9fae-44f8-aa58-beb229480ea3/pvr"
    ],
    "Cmd": null,
    "ArgsEscaped": true,
    "Image": "linuxserver/transmission:latest",
    "Volumes": {
    "/config": {},
    "/downloads": {},
    "/watch": {}
    },
    "WorkingDir": "",
    "Entrypoint": [
    "/init"
    ],
    "OnBuild": null,
    "Labels": {
    "build_version": "Linuxserver.io version:- 123 Build-date:- May-11-2018-22:05:07-UTC",
    "maintainer": "sparklyballs"
    }
    },
    "NetworkSettings": {
    "Bridge": "",
    "SandboxID": "749d45576eaa1904a39974ed100b7fe236a41ce4a4a5668056caa69da0d91341",
    "HairpinMode": false,
    "LinkLocalIPv6Address": "",
    "LinkLocalIPv6PrefixLen": 0,
    "Ports": {},
    "SandboxKey": "/var/run/docker/netns/default",
    "SecondaryIPAddresses": null,
    "SecondaryIPv6Addresses": null,
    "EndpointID": "",
    "Gateway": "",
    "GlobalIPv6Address": "",
    "GlobalIPv6PrefixLen": 0,
    "IPAddress": "",
    "IPPrefixLen": 0,
    "IPv6Gateway": "",
    "MacAddress": "",
    "Networks": {
    "host": {
    "IPAMConfig": null,
    "Links": null,
    "Aliases": null,
    "NetworkID": "f4c3b966a5db5f60bf4ef293e23d69761fe3549ee07521c1884fd81da14473b8",
    "EndpointID": "604d4484aa81022e84cda0ea4c41312afaf932055d915e71087043d4c490cab6",
    "Gateway": "",
    "IPAddress": "",
    "IPPrefixLen": 0,
    "IPv6Gateway": "",
    "GlobalIPv6Address": "",
    "GlobalIPv6PrefixLen": 0,
    "MacAddress": "",
    "DriverOpts": null
    }
    }
    }
    }
    ]

  • Like @subzero79 said, you have something using already that port:


    - First case : An app on your omv host
    - Second case: A container.


    In your settings, I see you use Host networking. Some images uses the same port by default so when you launch theses images, it will be a conflict because they can't use the same port. So, I personnally prefer to use Bridge networking because you can specify port mapping.
    Moreover, if you use docker omv plugin to create a container and an error occured the container is launched but you don't see it because the window is still here so when you click on create , the error 'port already in used' occured. I think it's the case for you ?


    Just verify what is using this port and kill the process or container.

  • Thanks, seems like transmission was running outside of docker despite my efforts to remove it before upgrading to 4.x. I appreciate the help.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!