ServerUtil.exe: Failed to connect to server: No connection could be made because the target machine actively refused it

Thanks for the best backup utility.
I used old duplicati-client and now I want to use Duplicati.CommandLine.ServerUtil.exe and export all backups settings.

If I’m not wrong it worked before but now not. I use GUI Interface in Windows 10.

You can see my attempts:

PS C:\Program Files\Duplicati 2> &'.\Duplicati.CommandLine.ServerUtil.exe' export all --server-datafolder 'C:\Users\user\AppData\Local\Duplicati' --destination 'C:\Scripts\ Logs' --unencrypted
Connecting to http://localhost:8200/...
Failed to obtain a signin token: No connection could be made because the target machine actively refused it. (localhost:8200)
Enter server password:
PS C:\Program Files\Duplicati 2> &'.\Duplicati.CommandLine.ServerUtil.exe' export all --server-datafolder 'C:\Users\user\AppData\Local\Duplicati' --destination 'C:\Scripts\ Logs' --unencrypted --password 'mypassword'                                                                                                                                               Connecting to http://localhost:8200/...
Failed to obtain a signin token: No connection could be made because the target machine actively refused it. (localhost:8200)
Failed to connect to server: No connection could be made because the target machine actively refused it. (localhost:8200)
PS C:\Program Files\Duplicati 2> &'.\Duplicati.CommandLine.ServerUtil.exe' export all --server-datafolder 'C:\Users\user\AppData\Local\Duplicati' --destination 'C:\Scripts\ Logs' --unencrypted
Connecting to http://localhost:8200/...
Failed to obtain a signin token: No connection could be made because the target machine actively refused it. (localhost:8200)
Enter server password: ***
Failed to connect to server: No connection could be made because the target machine actively refused it. (localhost:8200)
PS C:\Program Files\Duplicati 2>

So I tried to export without password and later press Ctrl+C. Later with correct password in the command line and later with wrong password.

What do I do incorrectly? I tried to change password and swtich off Option “Prevent tray icon automatic log-in” but without any success.

Please help.

Seems like there’s no Duplicati there.

What URL works in the browser? Use that in the command line per the help command:

  --hosturl <hosturl>                  The host URL to use [default:
                                       http://localhost:8200/]

ServerUtil documentation would be worth reading, although it leaves some features out.

1 Like

But there is :slightly_smiling_face:.

http://localhost:8300/ngax/index.html
Sorry. My mistake. I didn’t notice it because on all my machines 8200 but in this computer 8300. Thank you very much!

I read it before and I read some articles about it but it wasn’t helped me before. But now it’s solved. :+1:

TrayIcon

By default, Duplicati uses the port 8200 as the communication port with hosted server. Should that port be taken, usually because another instance of Duplicati is running in another user context, Duplicati will automatically try other ports from the sequence: 8200, 8300, 8400, ..., 8900.

Once an available port is found, this port is stored in the server database and attempted first on next run.

A search is old, but the “stored in the server database” part is new, but I’m not sure I like it. You can push it back to 8200 if you want, using a startup option as seen in command help:

--webservice-port: The port the webserver listens on. Multiple values may be supplied with a comma in between.

The new memory was meant to help those who bookmark, but hurts those that use 8200, which includes those using the ServerUtil default…

1 Like