KB ID: 10039
Product: vProtect
Version: not applicable
Published: 2021-04-18
Last modified: 2021-04-18
Problem
Cannot backup vProtect database using GUI
example from the vPortect task console output
ExternalAPIException: File could not be saved: Command execution failed: [/opt/vprotect/scripts/backup_db.sh, /tmp/vprotect_db.sql.gz] Return code: 1 output: [] error: [/opt/vprotect/scripts/backup_db.sh: line 5: /tmp/vprotect_db.sql.gz: Permission denied mysqldump: Got errno 32 on write ].
Solution
Go to the vProtect server host and check permissions to /tmp/vprotect_db.sql.gz file. It should be read and write to vprotect user. Or just remove /tmp/vprotect_db.sql.gz file if you don't need it
ls -la /tmp/vprotect_db.sql.gz
[root@vprotect ~]# ls -la /tmp/vprotect_db.sql.gz
-rw-r--r--. 1 nobody nobody 4123003 Apr 18 22:04 vprotect_db.sql.gz
#change permissions:
[root@vprotect ~]# chown vprotect:vprotect vprotect_db.sql.gz
[root@vprotect ~]# chmod 644 vprotect_db.sql.gz
#remove file:
[root@vprotect ~]# rm /tmp/vprotect_db.sql.gz