Thursday, January 9, 2025

[SOLVED]: ERROR: Error opening output file vhdxz. (urbackupsrv decompress-file)

# urbackupsrv decompress-file -f /tmp/test/Image_E_241022-1054.vhdxz
2025-01-10 09:25:33: ERROR: Error opening output file "/tmp/test/Image_E_241022-1054.vhdxz"

Solution:

1. Change ownership of the parent directory (where vhdxz file located) to urbackup user

# chown urbackup /tmp/test/ 

2. Run it as urbackup user (running as root did not work for me!)

# sudo -u urbackup urbackupsrv decompress-file -f /tmp/test/Image_E_241022-1054.vhdxz
2025-01-10 09:26:02: Decompressing "/tmp/test/Image_E_241022-1054.vhdxz"... 0%
2025-01-10 09:26:02: Decompressing "/tmp/test/Image_E_241022-1054.vhdxz"... 1%
2025-01-10 09:26:02: Decompressing "/tmp/test/Image_E_241022-1054.vhdxz"... 2%
2025-01-10 09:26:02: Decompressing "/tmp/test/Image_E_241022-1054.vhdxz"... 3%
...