Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't create snapshot action 0.13.0 #3046

Closed
YFrendo opened this issue May 26, 2023 · 8 comments · Fixed by kopia/htmlui#163
Closed

Can't create snapshot action 0.13.0 #3046

YFrendo opened this issue May 26, 2023 · 8 comments · Fixed by kopia/htmlui#163

Comments

@YFrendo
Copy link

YFrendo commented May 26, 2023

I'm using kopiaGUI and since the last update 0.13.0 when I create a NEW folder snapshot directory I can't assign a snapshot action to this snapshot.

Everything else seems to work perfectly but when I type some path to my shell it's not save in the policy.

Capture d’écran 2023-05-26 à 23 17 24

As you can see it's not filed inside the effective field.

If someone know who to fox this!

I'm on Ubuntu Server, kopia run with an apt install on server UI

@YFrendo
Copy link
Author

YFrendo commented May 27, 2023

With some investigation I have notice that the internal representation only modify the script key and not the path one in the internal representation.
With a new one they are not created either

JSON Representation
This is the internal representation of a policy

{
"retention": {},
"files": {},
"errorHandling": {},
"scheduling": {
"intervalSeconds": 10800
},
"compression": {},
"actions": {
"beforeSnapshotRoot": {
"path": "/path/not/modify",
"script": "/path/modify",
"timeout": 300
},
"afterSnapshotRoot": {
"path": "/path/not/modify",
"script": "/path/modify",
"timeout": 300
}
},
"logging": {
"directories": {},
"entries": {}
},
"upload": {}
}

@rsnitsch
Copy link

I have the same issue. Whatever I enter as command is neither reflected in the "Effective" column nor saved in the policy.

@YFrendo
Copy link
Author

YFrendo commented May 31, 2023

For now I'm using 0.12.1 until this is fix, everything work now.

@stenki-eu
Copy link

stenki-eu commented Jun 28, 2023

I have the same issue. Whatever I enter as command is neither reflected in the "Effective" column nor saved in the policy.

I have the same problem. The entered information is not saved.

Environment: Unraid Docker (repository kopia/kopia)

@lupusA
Copy link
Contributor

lupusA commented Jul 9, 2023

I think i found the issue.

@YFrendo
Copy link
Author

YFrendo commented Jul 10, 2023

If it's just a typo mistake I think it will be fix soon!

@tribor
Copy link

tribor commented Jul 10, 2023

if I edit the policy via CLI the UI still does not represent my changes. I wonder if "path" or "script" is the correct value?

    "actions": {
        "afterSnapshotRoot": {
            "path": "/jobs/success.sh",
            "timeout": 60
        }
    },

@lupusA
Copy link
Contributor

lupusA commented Jul 10, 2023

Hi @tribor,

the UI in version 0.13 looks for "script". After merging the PR kopia/htmlui#163 it will work again, so that actions can be added again. I've tested it myself.

With the PR, actions are saved and correctly filled when open the policy editor again. In version 0.12.X it is working as intended. The change that broke it was merged in march. My PR only fixes the creation of new actions. Old actions have to be manually converted to use "script". Otherwise, they will not be shown.

If you manually edit the policy and you are on version 0.13. "script" should do the trick. If you are on version 0.12. "path" should be correct.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants