# Run as Service failed login

**URL:** https://forum.duplicati.com/t/run-as-service-failed-login/19902
**Category:** Support
**Created:** [January 12, 2025, 5:58pm UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902 "2025-01-12T17:58:49Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![Marabunta](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@Marabunta](https://forum.duplicati.com/u/Marabunta)
#### Post date: [January 12, 2025, 5:58pm UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902/1 "2025-01-12T17:58:49Z")

</div>

Hi,

as User everything except VSS works.  
So I thought lets run it as admin, same problem.  
Next was to create a Service(tried with and without webservice-password):

C:\Program Files\Duplicati 2\> ./Duplicati.WindowsService.exe install --webservice-interface=any --webservice-port=8200 --server-datafolder C:.…\AppData\Local\Duplicati --webservice-password

Creating and running the service is successful.  
But Login is not possible, everything is wrong, I know the passphrase, I even looked in the sqllite table(strange that it is stored in cleartext). But nothing works.

Am I doing something wrong?  
Thanks

---

<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: [January 12, 2025, 6:59pm UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902/2 "2025-01-12T18:59:50Z")

</div>

Welcome to the forum @Marabunta

[Duplicati Access Password](https://docs.duplicati.com/detailed-descriptions/duplicati-access-password) has some general information on the password usage.

> [@Marabunta](#):
>
> `--webservice-password`

Is that the end of the line? If trying to set a password this way, you need to supply it.

[Configuring the server password](https://docs.duplicati.com/duplicati-programs/server#configuring-the-server-password)

> `--webservice-password=<new password>`

[Example change with a different context](https://docs.duplicati.com/detailed-descriptions/duplicati-access-password#example-change-with-a-different-context)

gives another way to set the password that doesn’t leave password quite as exposed.

> [@Marabunta](#):
>
> I even looked in the sqllite table(strange that it is stored in cleartext).

Where are you looking and what did you see? I don’t even know if you set a password.

[Server authentication model](https://docs.duplicati.com/technical-details/server-authentication-model)

> The password is not stored in plain text, it is repeatedly hashes with a [PBKDF](https://en.wikipedia.org/wiki/PBKDF2) method to ensure it is not readable from the database. This ensures that even an attacker with access to the database will not be able to obtain a password that can be used to log in.

If you didn’t actually supply a password, please do so using one of the two ways shown.

---

<div class="post-metadata">

### Author: ![Marabunta](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@Marabunta](https://forum.duplicati.com/u/Marabunta)
#### Post date: [January 12, 2025, 10:35pm UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902/3 "2025-01-12T22:35:59Z")

</div>

I did provide the password. I was not sure about escaping special characters  
–webservice-password=^%()§/$abc or --webservice-password=“^%()§/$abc” \<\<passphrase  
tried both with no success

Duplicati-server.sqlite  
Table option  
row passphrase

I guess thats wrong, but i do not remember setting another password

---

<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: [January 12, 2025, 11:10pm UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902/4 "2025-01-12T23:10:24Z")

</div>

> [@Marabunta](#):
>
> row passphrase

I think that’s the job’s encryption passphrase. You might have several, if you have several jobs.  
I’m thinking server passphrase was in server-passphrase info, and 2.1 has it in in pbkdf-config.

Let me see if I can set up Windows service with your info, and find out whether I can do a login.

---

<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: [January 12, 2025, 11:18pm UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902/5 "2025-01-12T23:18:22Z")

</div>

Did you ever try it the ServerUtil way?

Also, look in the Application event log. There are probably some complaints sitting there.

---

<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: [January 12, 2025, 11:30pm UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902/6 "2025-01-12T23:30:43Z")

</div>

Testing, install line with unquoted passphrase didn’t let me login, but the quoted version did.  
I’d probably have to play more with special characters to narrow down which ones bother it.  
Using ServerUtil “might” be less sensitive, so please try.

---

<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: [January 12, 2025, 11:48pm UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902/7 "2025-01-12T23:48:28Z")

</div>

It seems like the ^ caret is the character it mishandles. Unsure why.

EDIT:

It’s the escape character in Command Prompt, like backslash is on other systems.  
So doubling it works unquoted, and it seemed from test like double quoting works.

---

<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: [January 13, 2025, 12:00am UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902/8 "2025-01-13T00:00:44Z")

</div>

```plaintext
C:\Program Files\Duplicati 2>Duplicati.CommandLine.ServerUtil change-password --server-datafolder "C:\Windows\System32\config\systemprofile\AppData\Local\Duplicati"
Connecting to http://localhost:8200/...
Please provide the new password: **********

```

does not need quoting or caret doubling, and lets me login with `^%()§/$abc`.  
If you haven’t already, also try with new browser tab or maybe a hard refresh.

EDIT:

Run the ServerUtil in `Command Prompt (Admin)` or similar. It needs access…

---

<div class="post-metadata">

### Author: ![Marabunta](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@Marabunta](https://forum.duplicati.com/u/Marabunta)
#### Post date: [January 13, 2025, 12:46am UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902/9 "2025-01-13T00:46:54Z")

</div>

application log was spamming  
Attempting to restart server process: C:\Program Files\Duplicati 2\Duplicati.Server.exe  
and  
2025-01-12 19:51:09 +01 - [Warning-Duplicati.Server.Program-MissingEncryptionKey]: No database encryption key was found. The database will be stored unencrypted. Supply an encryption key via the environment variable SETTINGS\_ENCRYPTION\_KEY or disable database encryption with the option --disable-db-encryption

Duplicati.CommandLine.ServerUtil change-password --server-datafolder C:\users\user\AppData\Local\Duplicati  
Connecting to [http://localhost:8200/](http://localhost:8200/)…  
Please provide the new password: \*\*\*\*\*\*\*

Login with the new password was possible, but I have no access to the backups from my normal user. Can I just import the jobs and everything is fine?  
And if everything is gone, can I still access it with just the backup files and the password in a new environment or do I need the appdata folder and other things?

Thanks

---

<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: [January 13, 2025, 1:11am UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902/10 "2025-01-13T01:11:59Z")

</div>

> [@Marabunta](#):
>
> Login with the new password was possible

Good first step.

[Migrating from User to Service install on Windows](https://forum.duplicati.com/t/migrating-from-user-to-service-install-on-windows/660/46) are currently the latest directions for that.

> [@Marabunta](#):
>
> Can I just import the jobs and everything is fine?

That won’t know where your old databases were. It will assign new paths. Best to move old.  
You can adapt the directions if you like, e.g. copy the old DBs to what Database screen has.

> [@Marabunta](#):
>
> can I still access it with just the backup files and the password

[Direct restore from backup files](https://docs.duplicati.com/getting-started/restoring-files#direct-restore-from-backup-files)

> To restore files from the backup, Duplicati needs only to know how to access the files and the encryption passphrase (if any).

Is that what you mean? There’s also:

[Migrating Duplicati to a new machine](https://docs.duplicati.com/detailed-descriptions/migrating-duplicati-to-a-new-machine)

---

<div class="post-metadata">

### Author: ![Marabunta](https://forum.duplicati.com/letter_avatar_proxy/v4/letter/m/d9b06d/32.png) [@Marabunta](https://forum.duplicati.com/u/Marabunta)
#### Post date: [January 13, 2025, 1:32am UTC](https://forum.duplicati.com/t/run-as-service-failed-login/19902/11 "2025-01-13T01:32:32Z")

</div>

thanks, will try that in the next days
