mirror of
https://github.com/Corsinvest/cv4pve-autosnap.git
synced 2026-04-25 17:05:48 +03:00
[GH-ISSUE #48] Problem connection! no tokenid specified #44
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/cv4pve-autosnap#44
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @plastilincheg on GitHub (Apr 30, 2021).
Original GitHub issue: https://github.com/Corsinvest/cv4pve-autosnap/issues/48
Hello. Cannot create snapshot. What i do wrong?
root@proxmox:~# /usr/local/bin/cv4pve-autosnap --host=127.0.0.1 --api-token='cv4pve@pve!cv4pve' --timestamp-format=yyMMddss --vmid='1005' snap --label='-daily-' --keep=3
Problem connection! no tokenid specified
@franklupo commented on GitHub (May 1, 2021):
Hi,
the format of token is 'USER@REALM!TOKENID=UUID'
You not specified the part '=UUID'
best regards
@plastilincheg commented on GitHub (May 1, 2021):
What do you mean UUID? I cannot search this parameter.
@franklupo commented on GitHub (May 1, 2021):
When you create the token in Proxmox VE only one flying UUID is shown in the window.
Secret is the UUID
https://pve.proxmox.com/pve-docs/chapter-pveum.html#pveum_tokens
@franklupo commented on GitHub (May 2, 2021):
News?
@plastilincheg commented on GitHub (May 4, 2021):
Authentication success but snapshot not create.
root@proxmox:~# /usr/local/bin/cv4pve-autosnap --host=127.0.0.1 --api-token='cv4pve@pve!xceJxrnRNXMC=9e7dfd28-bdcb-4184-9cdd-2e57abeb532a' --timestamp-format=yyMMddss --vmid='1008' snap --label='-test-' --keep=3
ACTION Snap
VMs: 1008
Label: -test-
Keep: 3
State: False
Timeout: 30000
Timestamp format: yyMMddss
Total execution 00:00:00.0430807
@franklupo commented on GitHub (May 4, 2021):
Execute with --debug and attach output
best regards
@plastilincheg commented on GitHub (May 4, 2021):
Method: GET, Url: https://127.0.0.1:8006/api2/json/version
StatusCode: OK
ReasonPhrase: OK
IsSuccessStatusCode: True
{
"data": {
"keyboard": "en-us",
"repoid": "337d6701",
"version": "6.4-4",
"release": "6.4"
}
}
ACTION Snap
VMs: 1008
Label: -test-
Keep: 3
State: False
Timeout: 30000
Timestamp format: yyMMddss
Method: GET, Url: https://127.0.0.1:8006/api2/json/cluster/resources?type=vm
StatusCode: OK
ReasonPhrase: OK
IsSuccessStatusCode: True
{
"data": []
}
Total execution 00:00:00.0508417
@franklupo commented on GitHub (May 4, 2021):
What permissions have you given user you use?
@plastilincheg commented on GitHub (May 4, 2021):
I add storage permission Administrator

@franklupo commented on GitHub (Aug 23, 2021):
Hi,
add permssion in cluster, not in storage.
Best regards