Closed sgtpepperaut closed 2 years ago
Hi, can you run with the --debug option and attach the result? Remember to remove the password information from the registry.
Best regards
here is the output:
================ EXCEPTION ================
System.IndexOutOfRangeException
Index was outside the bounds of the array.
at BetterConsoleTables.Table.ToString(Int32[] columnLengths)
at BetterConsoleTables.Table.ToString()
at Corsinvest.ProxmoxVE.Api.Extension.Helpers.TableHelper.Create(IEnumerable1 columns, IEnumerable
1 rows, TableOutputType outputType, Boolean hasInnerRows)
at Corsinvest.ProxmoxVE.Api.Extension.Helpers.TableHelper.Create(IEnumerable1 columns, IEnumerable
1 rows, TableOutputType outputType, Boolean hasInnerRows)
at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.Snap(String vmIdsOrNames, String label, Int32 keep, Boolean state, Int64 timeout, String timestampFormat, Int32 optMaxPercentageStorage)
at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.<>cDisplayClass9_1.1 columns, IEnumerable
1 rows, TableOutputType outputType, Boolean hasInnerRows)
at Corsinvest.ProxmoxVE.Api.Extension.Helpers.TableHelper.Create(IEnumerable1 columns, IEnumerable
1 rows, TableOutputType outputType, Boolean hasInnerRows)
at Corsinvest.ProxmoxVE.AutoSnap.Api.Application.Snap(String vmIdsOrNames, String label, Int32 keep, Boolean state, Int64 timeout, String timestampFormat, Int32 optMaxPercentageStorage)
at Corsinvest.ProxmoxVE.AutoSnap.ShellCommands.<>cDisplayClass9_1.
Permission problem read documentation
Your user snapshot@pve doesn't have access to storage where you are storing snapshots. Simply add this user with permissions "Datastore.Audit Pool.Audit VM.Audit VM.Snapshot" also to your storage, not only to VM 5020.
The error message could provide a hint to the permission problem. This might also save you from answering these questions in the future :-)
Fix in new version
What happened?
running a simple one liner on a fresh install gives me an error on proxmox 7.1-7 /usr/local/bin/cv4pve-autosnap --host=127.0.0.1 --username="snapshot@pve" --password="MYPASS" --vmid=5020 snap --label="daily" --keep=6
Expected behavior
create a snapshot :)
Relevant log output
Proxmox VE Version
7.1-7
Version (bug)
1.13.2
Version (working)
No response
On what operating system are you experiencing the issue?
Linux
Pull Request