Unable to connect distant swift repo on Windows

Hello,

I am trying to list all snapshots of my swift remote repo using “restic 0.16.4 compiled with go1.21.6 on windows/amd64” on Windows with command “restic_0.16.4_windows_amd64.exe snapshots --verbose”

But the following error is thrown : “Fatal: unable to open repository at swift:myproject:/: conn.Authenticate: Authorization Failed”

The exact same parameters are working fine with Ubuntu from the same computer (using VM) therefore I really don’t understand why it is not working the Windows exe.

I tried to disable the firewalls, running the command with admin rights, … but the error is always the same.

Here is the params I am using :
set OS_AUTH_URL=https://…
set OS_REGION_NAME=RegionOne
set OS_PROJECT_NAME=aaa
set OS_PASSWORD=‘…’
set OS_USER_DOMAIN_NAME=default
set OS_USERNAME=aaa
set OS_PROJECT_DOMAIN_NAME=default
set RESTIC_REPOSITORY=swift:myproject:/
set RESTIC_PASSWORD_FILE=restickey-ik

restic_0.16.4_windows_amd64.exe snapshots --verbose

Could you please help me to figure it out ?

most likely the problem is here. Your password contains probably some special characters which need escaping or different quoting in this particular shell.

:fearful: removing single quote used for OS_PASSWORD and it’s working !

Thank you so much !

1 Like