kopia icon indicating copy to clipboard operation
kopia copied to clipboard

Duplicates of Policies

Open woiwoiwoiwoi opened this issue 1 year ago • 3 comments

In the WebUI, under Policies, the same policy is shown twice. Sometimes the Global Policy is shown twice, sometimes a different one. It seems to me like clicking on either Edit button leads to the same policy behind the scenes.

Running 0.15.0 on Docker, backing up do Google Drive.

woiwoiwoiwoi avatar Jan 04 '24 13:01 woiwoiwoiwoi

Hi @woiwoiwoiwoi,

i assume that the issue lies in the backend. KopiaUI does not create a policy object or similar under the policies tab, it just shows the available policies that are returned from the API. We had this issue in the past, where two global policies where shown. After a reconnect the issue was gone.

We need to track it down. However, I was not able to reproduce it.

Cheers,

lupusA avatar Jan 04 '24 19:01 lupusA

Thanks for responding so quickly. I know somebody else who also has the same issue. Also KopiaUI via Docker. I could ask them to chip in here if that helps.

Incidentally, I have reconnected my repository since my above message. I have also moved the repo from GDrive to WebDAV. After the reconnect, I'm pretty sure the policy was still duplicated. Then I edited one of the two shown policies: the only thing I changed was I set "Manual Snapshots Only" back to "inherit from parent" (from "Yes"). Now, I only have one policy left.

woiwoiwoiwoi avatar Jan 08 '24 20:01 woiwoiwoiwoi

Same issue.

xbot avatar Jan 28 '24 12:01 xbot

I've noticed duplicate policies in the UI a few times after changing the policies with a flaky internet connection. But today a duplicate showed up after editing policies on the KRS host in the terminal.

kopia@server:~$ kopia policy list
[...]
9e92683dd2739097792c1f8cc444e5cb user@host:C:\Users\user
cc8ac7febd1b132cf5b81485d0bcf49c user@host:C:\Users\user

Unfortunately I'm unable to reproduce the issue.

dimejo avatar May 07 '24 10:05 dimejo