[SOLVED] Backup fails: "backup register image failed" / "stream no longer needed"

sur5r

New Member
Dec 28, 2023
2
1
1
After several successful backups, these errors started to occur.

Datastore verification runs successfully. I couldn't find any addition log entries, so I'm a bit at loss what goes wrong here.

Code:
INFO: starting new backup job: vzdump 100 --notes-template 'Guest: {{guestname}}' --remove 0 --mode snapshot --storage pbs2.XXX.XXX --notification-mode auto --node XXX
INFO: Starting Backup of VM 100 (qemu)
INFO: Backup started at 2023-12-28 13:04:59
INFO: status = running
INFO: VM Name: XXX
INFO: include disk 'scsi0' 'lvm0:vm-100-disk-0' 64G
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: skip unused drive 'local-zfs:vm-100-disk-0' (not included into backup)
INFO: snapshots found (not included into backup)
INFO: creating Proxmox Backup Server archive 'vm/100/2023-12-28T13:04:59Z'
INFO: enabling encryption
INFO: issuing guest-agent 'fs-freeze' command
INFO: issuing guest-agent 'fs-thaw' command
ERROR: VM 100 qmp command 'backup' failed - backup register image failed: command error: stream error received: stream no longer needed
INFO: aborting backup job
INFO: resuming VM again
ERROR: Backup of VM 100 failed - VM 100 qmp command 'backup' failed - backup register image failed: command error: stream error received: stream no longer needed
INFO: Failed at 2023-12-28 13:05:01
INFO: Backup job finished with errors
ERROR: could not notify via target `mail-to-root`: could not notify via endpoint(s): mail-to-root: At least one recipient has to be specified!
TASK ERROR: job errors
 
Hi sur5r,

Welcome to the forums!

I noticed:
INFO: include disk 'scsi0' 'lvm0:vm-100-disk-0' 64G
INFO: backup mode: snapshot INFO: ionice priority: 7
INFO: skip unused drive 'local-zfs:vm-100-disk-0' (not included into backup)
INFO: snapshots found (not included into backup)
these two vm-100-disk-0 are not the same disk, are they? One being on local-zfs and the other on lvm0.

I intended to compare your log with mine. Where did you find the log? I have the task history of successfully completed tasks, which lists some different details.

Searching /var/log/proxmox-backup/ I got API-access logs, and in task logs I only find APT updates around the times backups were running.
 
Thanks for pointing me to /var/log/proxmox-backup.

The file /var/log/proxmox-backup/tasks/active was still pointing to a job that got aborted due to network interruption.

I rebooted the PBS and that file got emptied. I guess restarting proxmox-backup.service should have done the same thing.

I guess I never looked at the "Running Tasks" window on the PBS dashboard, so I can't tell whether it's possible to fix it from the WebUI.

Takeaway for me from this error message is: Check for stuck jobs on the PBS.
 
  • Like
Reactions: peterge
Just for the record:
Our backup jobs to pbs did fail tonigh with a similar error message:
Code:
INFO: Starting Backup of VM 120 (qemu)
INFO: Backup started at 2024-04-09 02:00:12
INFO: status = running
INFO: VM Name: MiWeb
INFO: include disk 'scsi0' 'VM-Storage1:vm-120-disk-0' 200G
INFO: backup mode: snapshot
INFO: ionice priority: 7
INFO: creating Proxmox Backup Server archive 'vm/120/2024-04-09T00:00:12Z'
INFO: issuing guest-agent 'fs-freeze' command
INFO: issuing guest-agent 'fs-thaw' command
ERROR: VM 120 qmp command 'backup' failed - backup register image failed: command error: stream error received: stream no longer needed
INFO: aborting backup job
INFO: resuming VM again
ERROR: Backup of VM 120 failed - VM 120 qmp command 'backup' failed - backup register image failed: command error: stream error received: stream no longer needed
INFO: Failed at 2024-04-09 02:00:13
INFO: Backup job finished with errors
TASK ERROR: job errors
After installing the latest updates on pbs and rebotting, the backups are working again, I did not check /var/log/proxmox-backup/tasks/active before executing reboot, but its empty afterwards.
 
Last edited:
  • Like
Reactions: wbk

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!