which ended up in the backup task log and can be confusing to users:

> INFO: Backup finished at 2021-10-11 08:40:38
> Result: {
>       "data": null
> }
> INFO: Backup job finished successfully

For proxmox-backup-server < 2.0.11-1, there was no output for the
upload-log command.

Reported in the community forum:
https://forum.proxmox.com/threads/backup-finishes-ok-but-data-null-info-on-finish.97740/

Signed-off-by: Fabian Ebner <f.eb...@proxmox.com>
---
 PVE/VZDump.pm | 1 +
 1 file changed, 1 insertion(+)

diff --git a/PVE/VZDump.pm b/PVE/VZDump.pm
index d00be8b2..88ac11b3 100644
--- a/PVE/VZDump.pm
+++ b/PVE/VZDump.pm
@@ -1097,6 +1097,7 @@ sub exec_backup_task {
                        'upload-log',
                        [ $pbs_snapshot_name, $task->{tmplog} ],
                        errmsg => "uploading backup task log failed",
+                       outfunc => sub {},
                    );
                };
                debugmsg('warn', "$@") if $@; # $@ contains already error prefix
-- 
2.30.2



_______________________________________________
pve-devel mailing list
pve-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pve-devel

Reply via email to