Unable to access the web-interface

I installed Duplicati using docker compose on my Ubuntu box -

  duplicati:
    image: lscr.io/linuxserver/duplicati:latest
    container_name: duplicati
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - CLI_ARGS= #optional
    volumes:
      - ./.docker/duplicati:/config
      - /media1:/backups
      - /media2:/source
    ports:
      - 8200:8200
    restart: unless-stopped

But, when I hit the port 8200 from my local machine using ip or loopback address, I get connection refused error. Container logs don’t show any errors. The port seems to be open and listening on the host -

$ sudo ss -tapnu | grep 8200
tcp   LISTEN    0      4096                       0.0.0.0:8200          0.0.0.0:*     users:(("docker-proxy",pid=862102,fd=4))
tcp   LISTEN    0      4096                          [::]:8200             [::]:*     users:(("docker-proxy",pid=862111,fd=4))

What could be wrong? How can I debug it further?

You need to look in the logs for

Server has started and is listening on port 8200
Use the following link to sign in: http://localhost:8200/signin.html?token=

Copy & paste the url including the token into the adress bar of your browser and you are goot to go.

Ok. I guess, I was trying hard to un-see the error in the log.

SETTINGS_ENCRYPTION_KEY is a “required” setting in docker-compose - which I had missing. This prevented the web-interface from coming up - though the docker container was running healthy.

This error is quite sneaky. If the setting is required, the container shouldn’t have started healthy.

Anyways, with that setting provided, I’m able to get the web-ui.

Thank you for the help!

This is a linuxserver issue, and if you report it, I am sure they will appreciate it:

Thank you for highlighting it.
I just checked their official installation instructions and docker-compose. I think I was at fault of not reading them entirely. They have NOT marked the SETTINGS_ENCRYPTION_KEY field as “optional” -

---
services:
  duplicati:
    image: lscr.io/linuxserver/duplicati:latest
    container_name: duplicati
    environment:
      - PUID=1000
      - PGID=1000
      - TZ=Etc/UTC
      - SETTINGS_ENCRYPTION_KEY=
      - CLI_ARGS= #optional
      - DUPLICATI__WEBSERVICE_PASSWORD= #optional
    volumes:
      - /path/to/duplicati/config:/config
      - /path/to/backups:/backups
      - /path/to/source:/source
    ports:
      - 8200:8200
    restart: unless-stopped
1 Like