Backup restore getting failed from UI

While trying to restore the backup from UI it got failed

Below are the logs.

[2024-01-05 09:53:23] [STARTED]
[2024-01-05 09:53:23] 'srujan.madderla' has started the restore!
[2024-01-05 09:53:23] Marking restore as running...
[2024-01-05 09:53:23] Making sure /var/www/discourse/tmp/restores/default/2024-01-05-095323 exists...
[2024-01-05 09:53:23] Copying archive to tmp directory...
[2024-01-05 09:53:39] Unzipping archive, this may take a while...
[2024-01-05 09:53:42] EXCEPTION: /var/www/discourse/lib/discourse.rb:138:in `exec': Failed to decompress archive.

gzip: stdin: invalid compressed data--format violated
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now

[2024-01-05 09:53:42] /var/www/discourse/lib/discourse.rb:172:in `execute_command'
/var/www/discourse/lib/discourse.rb:138:in `exec'
/var/www/discourse/lib/discourse.rb:34:in `execute_command'
/var/www/discourse/lib/backup_restore/backup_file_handler.rb:78:in `decompress_archive'
/var/www/discourse/lib/backup_restore/backup_file_handler.rb:23:in `decompress'
/var/www/discourse/lib/backup_restore/restorer.rb:42:in `run'
/var/www/discourse/script/spawn_backup_restore.rb:20:in `restore'
/var/www/discourse/script/spawn_backup_restore.rb:33:in `block in <main>'
/var/www/discourse/script/spawn_backup_restore.rb:4:in `fork'
/var/www/discourse/script/spawn_backup_restore.rb:4:in `<main>'
[2024-01-05 09:53:42] Trying to rollback...
[2024-01-05 09:53:42] There was no need to rollback
[2024-01-05 09:53:42] Cleaning stuff up...
[2024-01-05 09:53:42] Removing tmp '/var/www/discourse/tmp/restores/default/2024-01-05-095323' directory...
[2024-01-05 09:53:44] Marking restore as finished...
[2024-01-05 09:53:44] Notifying 'srujan.madderla' of the end of the restore...

Can someone please help on this ?

Either your server is out of space or the archive is corrupted. Check for available space on the target server and try taking a fresh backup to restore.

You’ll need at least 3x backup size to be able to restore the backup successfully.

1 Like

Can you please guide me how to check the server space ?

It should be a quick google search away however, running the below command on the server should give you the disk space

 df -h
1 Like