# Cannot run maintenance as Kopia CLI believes I'm not the repository owner

**URL:** <https://kopia.discourse.group/t/cannot-run-maintenance-as-kopia-cli-believes-im-not-the-repository-owner/2915>\
**Category:** General Topics\
**Created:** [May 17, 2024, 4:25pm UTC](https://kopia.discourse.group/t/cannot-run-maintenance-as-kopia-cli-believes-im-not-the-repository-owner/2915 "2024-05-17T16:25:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ab03](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@ab03](https://kopia.discourse.group/u/ab03)\
**Post date:** [May 17, 2024, 4:25pm UTC](https://kopia.discourse.group/t/cannot-run-maintenance-as-kopia-cli-believes-im-not-the-repository-owner/2915/1 "2024-05-17T16:25:25Z")

</div>

I’ve changed the hosting server and have migrated the repository over with `kopia snapshot move-history`.

In KopiaUI this change has been reflected, but when I run `kopia maintenance info` the owner is the old user, and with `kopia maintenance run --full`, I get the following error, “`ERROR maintenance must be run by designated user: x@y (old repository owner)`”.

The Kopia host is Windows.

I will say that I run 0.15.0 which is an older version, but I wanted to do maintenance before I upgrade to make sure no problems arise. I could try updating first, but I really want to make sure no problems arise, as I temporarily don’t have access to any backup of the Kopia repository.

---

<div class="post-metadata">

**Author:** ![kapitainsky](https://yyz2.discourse-cdn.com/free1/user_avatar/kopia.discourse.group/kapitainsky/32/535_2.png) [@kapitainsky](https://kopia.discourse.group/u/kapitainsky)\
**Post date:** [May 17, 2024, 5:07pm UTC](https://kopia.discourse.group/t/cannot-run-maintenance-as-kopia-cli-believes-im-not-the-repository-owner/2915/2 "2024-05-17T17:07:03Z")

</div>

You moved snapshots ownership but maintenance is still using the old one. You can check it by running:

```auto
$ kopia maintenance info
Owner: old_user@old_host

```

and change by running:

```auto
$ kopia maintenance set --owner=new_user@new_host

```

---

<div class="post-metadata">

**Author:** ![ab03](https://avatars.discourse-cdn.com/v4/letter/a/34f0e0/32.png) [@ab03](https://kopia.discourse.group/u/ab03)\
**Post date:** [May 17, 2024, 5:18pm UTC](https://kopia.discourse.group/t/cannot-run-maintenance-as-kopia-cli-believes-im-not-the-repository-owner/2915/3 "2024-05-17T17:18:06Z")

</div>

Thank you, works great now.
