[GH-ISSUE #48] Problem connection! no tokenid specified #44

Closed
opened 2026-02-26 17:44:07 +03:00 by kerem · 10 comments
Owner

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

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
kerem closed this issue 2026-02-26 17:44:07 +03:00
Author
Owner

@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

<!-- gh-comment-id:830580059 --> @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
Author
Owner

@plastilincheg commented on GitHub (May 1, 2021):

What do you mean UUID? I cannot search this parameter.

<!-- gh-comment-id:830582245 --> @plastilincheg commented on GitHub (May 1, 2021): What do you mean UUID? I cannot search this parameter.
Author
Owner

@franklupo commented on GitHub (May 1, 2021):

When you create the token in Proxmox VE only one flying UUID is shown in the window.

image

Secret is the UUID

https://pve.proxmox.com/pve-docs/chapter-pveum.html#pveum_tokens

<!-- gh-comment-id:830597079 --> @franklupo commented on GitHub (May 1, 2021): When you create the token in Proxmox VE only one flying UUID is shown in the window. ![image](https://user-images.githubusercontent.com/6276309/116778429-234a5600-aa72-11eb-88a6-25aa29018a51.png) Secret is the UUID https://pve.proxmox.com/pve-docs/chapter-pveum.html#pveum_tokens
Author
Owner

@franklupo commented on GitHub (May 2, 2021):

News?

<!-- gh-comment-id:830767871 --> @franklupo commented on GitHub (May 2, 2021): News?
Author
Owner

@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

<!-- gh-comment-id:831950721 --> @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
Author
Owner

@franklupo commented on GitHub (May 4, 2021):

Execute with --debug and attach output

best regards

<!-- gh-comment-id:832029836 --> @franklupo commented on GitHub (May 4, 2021): Execute with --debug and attach output best regards
Author
Owner

@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

<!-- gh-comment-id:832032368 --> @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
Author
Owner

@franklupo commented on GitHub (May 4, 2021):

What permissions have you given user you use?

<!-- gh-comment-id:832042858 --> @franklupo commented on GitHub (May 4, 2021): What permissions have you given user you use?
Author
Owner

@plastilincheg commented on GitHub (May 4, 2021):

I add storage permission Administrator
image

image

<!-- gh-comment-id:832050716 --> @plastilincheg commented on GitHub (May 4, 2021): I add storage permission Administrator ![image](https://user-images.githubusercontent.com/9542165/117032820-79392b00-ad0a-11eb-9557-25ba29c42499.png) ![image](https://user-images.githubusercontent.com/9542165/117032524-37a88000-ad0a-11eb-9a12-74bb47670ca3.png)
Author
Owner

@franklupo commented on GitHub (Aug 23, 2021):

Hi,
add permssion in cluster, not in storage.

Best regards

<!-- gh-comment-id:903788658 --> @franklupo commented on GitHub (Aug 23, 2021): Hi, add permssion in cluster, not in storage. Best regards
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/cv4pve-autosnap#44
No description provided.