sync failed with some errors authentication failed - invalidt ticket - expired

AngryAdm

Member
Sep 5, 2020
145
25
18
93
I suspect the syncs taking a very long time. The backup in around 18tb being synced TO on a 300mbit offsite line.
Is this the reason for the ticket timeout? Is there a way to adjust it or otherwise fix this problem?

1644229540763.png
 
Is this the reason for the ticket timeout?
In general tickets time out 2h after creation for security reasons, the pbs client has an async task that renews the auth ticket every 15 minutes or so (similar to the web interface) to avoid that from happening on long-running tasks, seems a bit weird to have that fail here.

What PBS versions are in use here (remote and local), and can you please attach the full sync log (e.g., as gzip compressed or so)?
 
also note that any progress made up to that point is not removed, so restarting the sync should pick it right up where it started to fail.
 
Hi, We just experienced this again, I will attempt to fill in the information you requested.

2022-02-08T06:43:51+01:00: re-sync snapshot "vm/212/2022-02-02T06:00:02Z" done
2022-02-08T06:43:51+01:00: percentage done: 80.88% (14/18 groups, 157/281 snapshots in group #15)
2022-02-08T06:43:51+01:00: sync snapshot "vm/212/2022-02-02T07:00:02Z"
2022-02-08T06:43:51+01:00: sync archive qemu-server.conf.blob
2022-02-08T06:43:51+01:00: sync archive drive-scsi3.img.fidx
2022-02-08T07:28:51+01:00: downloaded 102502791 bytes (0.04 MiB/s)
2022-02-08T07:28:51+01:00: sync archive drive-scsi2.img.fidx
2022-02-08T12:57:28+01:00: downloaded 6699457660 bytes (0.32 MiB/s)
2022-02-08T12:57:28+01:00: sync archive drive-scsi0.img.fidx
2022-02-08T13:37:32+01:00: downloaded 5735962934 bytes (2.28 MiB/s)
2022-02-08T13:37:32+01:00: sync archive drive-efidisk0.img.fidx
2022-02-08T13:37:32+01:00: downloaded 0 bytes (0.00 MiB/s)
2022-02-08T13:37:32+01:00: got backup log file "client.log.blob"
2022-02-08T13:37:32+01:00: sync snapshot "vm/212/2022-02-02T07:00:02Z" done
2022-02-08T13:37:32+01:00: percentage done: 80.90% (14/18 groups, 158/281 snapshots in group #15)
2022-02-08T13:37:35+01:00: sync group vm/212 failed - permission check failed.
2022-02-08T13:37:38+01:00: sync group vm/400 failed - authentication failed - invalid ticket - expired
2022-02-08T13:37:42+01:00: sync group vm/801 failed - authentication failed - invalid ticket - expired
2022-02-08T13:37:45+01:00: sync group vm/901 failed - authentication failed - invalid ticket - expired
2022-02-08T13:37:45+01:00: TASK ERROR: sync failed with some errors.
 
I was unable to find the tasklog in /var/log ??? So I had to copy it from UI into notepad. Which apparanty resulted in 90% blank space in the beginning of the document...

Where is the file located that you are requesting?

recieving server PBS02:
Version: 2.1-2
Kernel: 5.13.19-2-pve

data to be pulled from server PBS01:
Version: 2.1-2
Kernel: 5.13.19-4-pve
 

Attachments

  • tasklogpbs.txt
    21.8 KB · Views: 5
Last edited:
the log file is in /var/log/proxmox-backup/tasks/... , retrievable via proxmox-backup-manager task log UPID (the UPID is also displayed in the web UI)

the system (journal) and PBS access logs (/var/log/proxmox-backup/access.log and auth.log) surrounding the time of the first error appearing in the log would also be interesting (from the remote system!)
 
Last edited:
Which apparanty resulted in 90% blank space in the beginning of the document...
FYI: That's the gui task log render optimization, it only actually adds the text in the view port and enforce empty space outside that, so that the scroll bars are correct.
 
Hi all

Can I ask somebody for help with how to authenticate using curl to access the proxmox backup server API.
At the moment I am using the below in a bash script

START_TASK_DATA=`curl -v -s -k --cookie "PVEAuthCookie=$TICKET" -X GET $HOST/api2/json/access/roles`
echo $START_TASK_DATA

but keep getting - "authentication failed - no authentication credentials provided."

Does anyone know how to do this? What is the syntax to use the "ticket" for authentication?
 
Hi,
Hi all

Can I ask somebody for help with how to authenticate using curl to access the proxmox backup server API.
At the moment I am using the below in a bash script

START_TASK_DATA=`curl -v -s -k --cookie "PVEAuthCookie=$TICKET" -X GET $HOST/api2/json/access/roles`
echo $START_TASK_DATA

but keep getting - "authentication failed - no authentication credentials provided."

Does anyone know how to do this? What is the syntax to use the "ticket" for authentication?
Please do not reply to other threads with unrelated posts but open a new thread, thanks! FYI: you're using the cookie name from PVE not PBS, the latter would be PBSAuthCookie
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!