I have setup PBS as a VM on Proxmox using an external drive.
Restoring full VM's works perfectly, no issues there. But when using file restore it only downloads between 50-250 MB before failing with the following error:
This happens both when using an API token for access or using my backup@pbs user directly.
When running the command directly from the shell I get this error:
This is because of the missing ' from the command
With ' ' around the repository I get this error:
That I can fix in the Shell with
After all that when running the command like this:
The file contents is dumped in the Shell, I don't know if it's the whole file though.
After all that I still get the same error as I started with:
Any idea what the issue is?
Restoring full VM's works perfectly, no issues there. But when using file restore it only downloads between 50-250 MB before failing with the following error:
Starting download of file: drive-scsi2.img.fidx/zpool/MainPool/MainPool/Blandet/ISO/TrueNAS-SCALE-24.04.2.iso
reading file extraction stream failed - error reading a body from connection: unexpected EOF during chunk size line
TASK ERROR: file restore task failed: command '/usr/bin/proxmox-file-restore extract '--crypt-mode=none' vm/108/2024-08-25T01:35:03Z 'ZHJpdmUtc2NzaTIuaW1nLmZpZHgvenBvb2wvTWFpblBvb2wvTWFpblBvb2wvQmxhbmRldC9JU08vVHJ1ZU5BUy1TQ0FMRS0yNC4wNC4yLmlzbw==' - --base64 1 --repository backup@pbs!backup@(Server):Backups'
failed: exit code 1
This happens both when using an API token for access or using my backup@pbs user directly.
When running the command directly from the shell I get this error:
-bash: ![EMAIL='backup@proxmoxbackup.gyldenstrand.dk']backup@(Server)[/EMAIL]: event not found
This is because of the missing ' from the command
With ' ' around the repository I get this error:
Error: error building client for repository backup@pbs![EMAIL='backup@proxmoxbackup.gyldenstrand.dk']backup@(Server)[/EMAIL]:443:Backups - API token secret must be provided!
That I can fix in the Shell with
export PBS_PASSWORD='(API TOKEN SECRET)'
After all that when running the command like this:
/usr/bin/proxmox-file-restore extract '--crypt-mode=none' vm/108/2024-08-25T01:35:03Z 'ZHJpdmUtc2NzaTIuaW1nLmZpZHgvenBvb2wvTWFpblBvb2wvTWFpblBvb2wvQmxhbmRldC9JU08vVHJ1ZU5BUy1TQ0FMRS0yNC4wNC4yLmlzbw==' - --base64 1 --repository 'backup@pbs!backup@(Server):Backups'
The file contents is dumped in the Shell, I don't know if it's the whole file though.
After all that I still get the same error as I started with:
Starting download of file: drive-scsi2.img.fidx/zpool/MainPool/MainPool/Blandet/Gustav/2001.A.Space.Odyssey.1968.2160p.4K.BluRay.x265.10bit.AAC5.1-[YTS.MX].mkv
reading file extraction stream failed - error reading a body from connection: unexpected EOF during chunk size line
TASK ERROR: file restore task failed: command '/usr/bin/proxmox-file-restore extract '--crypt-mode=none' vm/108/2024-08-25T01:35:03Z ZHJpdmUtc2NzaTIuaW1nLmZpZHgvenBvb2wvTWFpblBvb2wvTWFpblBvb2wvQmxhbmRldC9HdXN0YXYvMjAwMS5BLlNwYWNlLk9keXNzZXkuMTk2OC4yMTYwcC40Sy5CbHVSYXkueDI2NS4xMGJpdC5BQUM1LjEtW1lUUy5NWF0ubWt2 - --base64 1 --repository backup@pbs!(Server):443:Backups'
failed: exit code 1
Any idea what the issue is?
Last edited: