ERROR failed to open repository: unable to create format manager: invalid repository password

I get this error when trying to connect to a local filesystem repository via command line.
I have success connecting to the repository via WebUI.

# kopia repo connect filesystem --path=/repo/media --override-hostname=60b1fb8cb915                         
ERROR failed to open repository: unable to create format manager: invalid repository password
ERROR unable to remove cache directory: unlinkat /app/cache/indexes: directory not empty
ERROR error connecting to repository: unable to create format manager: invalid repository password

Hi,

can you put your path and hostname in brackets. The following command is working for me.

C:\Users\user\AppData\Local\Programs\KopiaUI\resources\server\kopia.exe repository connect filesystem --path="C:\Users\andso\kopia_test"

It asks for a password and then connects to the repository.

Cheers

If you meant quotes…

# kopia repo connect filesystem --path="/repo/media" --override-hostname=60b1fb8cb915
ERROR failed to open repository: unable to create format manager: invalid repository password
ERROR unable to remove cache directory: unlinkat /app/cache/indexes: directory not empty
ERROR error connecting to repository: unable to create format manager: invalid repository password

# kopia repo connect filesystem --path="/repo/media" --override-hostname="60b1fb8cb915"
ERROR failed to open repository: unable to create format manager: invalid repository password
ERROR unable to remove cache directory: unlinkat /app/cache/indexes: directory not empty
ERROR error connecting to repository: unable to create format manager: invalid repository password

I can connect to the repository via WebUI, but I have to manually change the hostname:

If I don’t change the hostname, I don’t see the previous snapshots:

If I do change the hostname, I see the expected snapshots:

Something seems to be going on with the .config file:

I remove the .config file, and I get this far:

I can see the expected snapshots:

Hi,

can you describe your setup? It is a repository server? If so, you will only see the snapshots if you connect with the correct user and hostname. You can create users on the server and the use the credentials to connect to the server.

Also, something seems odd with your path. It is not accessible. I will further comment at Cannot connect to repository: unable to create format manager: invalid repository password · Issue #3415 · kopia/kopia (github.com)

Cheers,