# Unable To Login To WebUI

**URL:** https://forum.duplicati.com/t/unable-to-login-to-webui/19677
**Category:** Support
**Created:** [December 14, 2024, 9:26am UTC](https://forum.duplicati.com/t/unable-to-login-to-webui/19677 "2024-12-14T09:26:20Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Aditya\_Yadav](https://forum.duplicati.com/user_avatar/forum.duplicati.com/aditya_yadav/32/9935_2.png) [@Aditya\_Yadav](https://forum.duplicati.com/u/Aditya_Yadav)
#### Post date: [December 14, 2024, 9:26am UTC](https://forum.duplicati.com/t/unable-to-login-to-webui/19677/1 "2024-12-14T09:26:20Z")

</div>

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

```plaintext
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

```

 ![image](https://forum.duplicati.com/uploads/default/original/2X/0/0dc0b6c714aae1508c51931eb48ddc6f78868514.png)  
 ![image](https://forum.duplicati.com/uploads/default/original/2X/5/59dda65a32fdee9527bc055b3c496bfb69e8890f.png)

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [December 14, 2024, 1:04pm UTC](https://forum.duplicati.com/t/unable-to-login-to-webui/19677/2 "2024-12-14T13:04:56Z")

</div>

> [@Aditya\_Yadav](#):
>
> `CLI_ARGS=webservice-password=0987652122`

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](https://docs.duplicati.com/detailed-descriptions/using-duplicati-from-docker#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.

---

<div class="post-metadata">

### Author: ![Aditya\_Yadav](https://forum.duplicati.com/user_avatar/forum.duplicati.com/aditya_yadav/32/9935_2.png) [@Aditya\_Yadav](https://forum.duplicati.com/u/Aditya_Yadav)
#### Post date: [December 14, 2024, 5:06pm UTC](https://forum.duplicati.com/t/unable-to-login-to-webui/19677/3 "2024-12-14T17:06:08Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [December 14, 2024, 5:15pm UTC](https://forum.duplicati.com/t/unable-to-login-to-webui/19677/4 "2024-12-14T17:15:53Z")

</div>

> [@Aditya\_Yadav](#):
>
> could you please help with compose which i should use

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

[https://hub.docker.com/r/linuxserver/duplicati](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.

---

<div class="post-metadata">

### Author: ![Aditya\_Yadav](https://forum.duplicati.com/user_avatar/forum.duplicati.com/aditya_yadav/32/9935_2.png) [@Aditya\_Yadav](https://forum.duplicati.com/u/Aditya_Yadav)
#### Post date: [December 14, 2024, 6:58pm UTC](https://forum.duplicati.com/t/unable-to-login-to-webui/19677/5 "2024-12-14T18:58:05Z")

</div>

i just tried with their compose and still login issue

 ![image](https://forum.duplicati.com/uploads/default/original/2X/f/f888b02f05546067305406d68cd4a1144484c3a1.png)

```plaintext
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

```

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [December 14, 2024, 8:59pm UTC](https://forum.duplicati.com/t/unable-to-login-to-webui/19677/6 "2024-12-14T20:59:09Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![Aditya\_Yadav](https://forum.duplicati.com/user_avatar/forum.duplicati.com/aditya_yadav/32/9935_2.png) [@Aditya\_Yadav](https://forum.duplicati.com/u/Aditya_Yadav)
#### Post date: [December 15, 2024, 8:29am UTC](https://forum.duplicati.com/t/unable-to-login-to-webui/19677/7 "2024-12-15T08:29:49Z")

</div>

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

---

<div class="post-metadata">

### Author: ![ts678](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/t/8491ac/32.png) [@ts678](https://forum.duplicati.com/u/ts678)
#### Post date: [December 15, 2024, 12:36pm UTC](https://forum.duplicati.com/t/unable-to-login-to-webui/19677/8 "2024-12-15T12:36:13Z")

</div>

> [@Aditya\_Yadav](#):
>
> i thought it was optional

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

[Release: 2.1.0.2 (Beta) 2024-11-29](https://forum.duplicati.com/t/release-2-1-0-2-beta-2024-11-29/19577)

> [@Release: 2.1.0.2 (Beta) 2024-11-29](https://forum.duplicati.com/t/release-2-1-0-2-beta-2024-11-29/19577/1):
>
> **Important changes from last Beta**
> 
> - Updated to .NET8 with OS specific builds
> - Using Kestrel as the API/UI server
> - Mandatory password and new authentication scheme for server
> - Settings database version updated to v8
> - Backup database updated to v13

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](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](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.

---

<div class="post-metadata">

### Author: ![Aditya\_Yadav](https://forum.duplicati.com/user_avatar/forum.duplicati.com/aditya_yadav/32/9935_2.png) [@Aditya\_Yadav](https://forum.duplicati.com/u/Aditya_Yadav)
#### Post date: [December 16, 2024, 11:49am UTC](https://forum.duplicati.com/t/unable-to-login-to-webui/19677/9 "2024-12-16T11:49:33Z")

</div>

thankyou again sir your help was perfect
