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

**URL:** <https://kopia.discourse.group/t/error-failed-to-open-repository-unable-to-create-format-manager-invalid-repository-password/2380>\
**Category:** Support\
**Created:** [October 29, 2023, 3:44am UTC](https://kopia.discourse.group/t/error-failed-to-open-repository-unable-to-create-format-manager-invalid-repository-password/2380 "2023-10-29T03:44:31Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![tiger2983](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@tiger2983](https://kopia.discourse.group/u/tiger2983)\
**Post date:** [October 29, 2023, 3:44am UTC](https://kopia.discourse.group/t/error-failed-to-open-repository-unable-to-create-format-manager-invalid-repository-password/2380/1 "2023-10-29T03:44:31Z")

</div>

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.

```auto
# 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

```

---

<div class="post-metadata">

**Author:** ![ChrisA](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@ChrisA](https://kopia.discourse.group/u/ChrisA)\
**Post date:** [October 29, 2023, 8:00am UTC](https://kopia.discourse.group/t/error-failed-to-open-repository-unable-to-create-format-manager-invalid-repository-password/2380/2 "2023-10-29T08:00:35Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tiger2983](https://avatars.discourse-cdn.com/v4/letter/t/a698b9/32.png) [@tiger2983](https://kopia.discourse.group/u/tiger2983)\
**Post date:** [October 29, 2023, 7:02pm UTC](https://kopia.discourse.group/t/error-failed-to-open-repository-unable-to-create-format-manager-invalid-repository-password/2380/3 "2023-10-29T19:02:47Z")

</div>

> [@ChrisA](#):
>
> can you put your path and hostname in brackets.

If you meant quotes…

```auto
# 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:

 ![image](https://global.discourse-cdn.com/free1/uploads/kopia/original/1X/6de8792b5b28e13b8accc75e166e748d95e9af9f.png)

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

 ![image](https://global.discourse-cdn.com/free1/uploads/kopia/original/1X/dbcbe67042c036b3fc0dc9e5c5855c8396de4e1b.png)

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

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

 ![image](https://global.discourse-cdn.com/free1/uploads/kopia/original/1X/15befcb630706fdd25f2971e89495fd851ba8a9d.png)

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

 ![image](https://global.discourse-cdn.com/free1/uploads/kopia/original/1X/bb588d72769c90ff85911289763eb0f36d633381.png)

I can see the expected snapshots:

 ![image](https://global.discourse-cdn.com/free1/uploads/kopia/original/1X/9d6c623f2d4e0a0100d1649f6748c328187e95e7.png)

---

<div class="post-metadata">

**Author:** ![ChrisA](https://avatars.discourse-cdn.com/v4/letter/c/b77776/32.png) [@ChrisA](https://kopia.discourse.group/u/ChrisA)\
**Post date:** [October 30, 2023, 7:39am UTC](https://kopia.discourse.group/t/error-failed-to-open-repository-unable-to-create-format-manager-invalid-repository-password/2380/4 "2023-10-30T07:39:24Z")

</div>

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)](https://github.com/kopia/kopia/issues/3415)

Cheers,
