Unable To Login To WebUI

hello everyone i am trying to deploy duplicati and just cant seem to get through this error this is the compose i am using please help … if i add this part - SETTINGS_ENCRYPTION_KEY= it opens duplicati but gives the login error and if i remove the encryption key part it doesnt even opens duplicati sayd bad gateway

Docker Compose

services:
  duplicati:
    image: lscr.io/linuxserver/duplicati:latest
    container_name: duplicati
    environment:
      - PUID=0
      - PGID=0
      - TZ=Asia/Kolkata
      - CLI_ARGS=webservice-password=0987652122
    volumes:
      - ./config:/config
      - /:/source
    ports:
      - 8200:8200
    restart: unless-stopped


As a guess, that looks a bit suspect as the CLI option name needs two dashes in front of it.
Beyond that, I’m not a Docker expert, so not sure if there’s anything else in the syntax for it.

Managing secrets in Docker has another option:

DUPLICATI__WEBSERVICE_PASSWORD: "<ui password>"

likely works in Duplicati provided Docker as well as LSIO, but CLI_ARGS may be LSIO only.

thankyou for replying sir i have tried asking in lsio too but they dnt seem to answer … i have tried many things could you please help with compose which i should use sir

Did you see their recommended compose? I don’t use Docker myself.

https://hub.docker.com/r/linuxserver/duplicati

Personally, I like your PUID choices in terms of getting necessary files.
If you have a specific question, please post. Maybe someone can help.
We also don’t know what’s going wrong there after you fixed password.

i just tried with their compose and still login issue

services:
  duplicati:
    image: lscr.io/linuxserver/duplicati:latest
    container_name: duplicati
    environment:
      - PUID=0
      - PGID=0
      - TZ=Asia/Kolkata
      - SETTINGS_ENCRYPTION_KEY=SecretPassWord
      - CLI_ARGS= #optional
      - DUPLICATI__WEBSERVICE_PASSWORD= #optional
    volumes:
      - ./config:/config
      - /:/source
    ports:
      - 8200:8200
    restart: always

The LSIO docs says

DUPLICATI__WEBSERVICE_PASSWORD= #optional

but

DUPLICATI__WEBSERVICE_PASSWORD= #optional

is what you posted. Did you actually not give a password? You need to give one after = there.

DUPLICATI__WEBSERVICE_PASSWORD: "<ui password>" is what linked Duplicati manual shows.

I’m not enough of a Docker expert to say if : and = work the same. I’ll assume examples work
after you complete them. For Duplicati manual’s syntax, replace <ui password> with your own.

i so wana thankyou sir i defined both passwords and now everything works amazingly …i thought it was optional but dint work but after defining password before made all sorted…thankyou again sir

It depends on Duplicati version, which is in a transition period.

Release: 2.1.0.2 (Beta) 2024-11-29

The new password requirement compared to prior Beta is the middle item.
Communicating this with Docker users seems to be especially challenging.

https://hub.docker.com/r/duplicati/duplicati
chose to describe the new scheme, although old Dockers are still available.
New directions should work with old Docker from a password point of view.

https://hub.docker.com/r/linuxserver/duplicati
shows method that works on old and new, but password is required on new.
Empty password used to clear password (after a set), but that’s now denied.

IMO LSIO should update their doc to new requirement, but that’s up to them.

I’m glad you got it working.

2 Likes

thankyou again sir your help was perfect