# Backup restore getting failed from UI

**URL:** https://meta.discourse.org/t/backup-restore-getting-failed-from-ui/290609
**Category:** Support
**Tags:** backups
**Created:** [January 5, 2024, 10:03am UTC](https://meta.discourse.org/t/backup-restore-getting-failed-from-ui/290609 "2024-01-05T10:03:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Srujan\_Madderla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/srujan_madderla/32/327711_2.png) [@Srujan\_Madderla](https://meta.discourse.org/u/Srujan_Madderla)
#### Post date: [January 5, 2024, 10:03am UTC](https://meta.discourse.org/t/backup-restore-getting-failed-from-ui/290609/1 "2024-01-05T10:03:33Z")

</div>

While trying to restore the backup from UI it got failed

Below are the logs.

```plaintext
[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 ?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [January 5, 2024, 10:18am UTC](https://meta.discourse.org/t/backup-restore-getting-failed-from-ui/290609/2 "2024-01-05T10:18:00Z")

</div>

> [@Srujan\_Madderla](#):
>
> 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

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.

---

<div class="post-metadata">

### Author: ![Srujan\_Madderla](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/srujan_madderla/32/327711_2.png) [@Srujan\_Madderla](https://meta.discourse.org/u/Srujan_Madderla)
#### Post date: [January 5, 2024, 10:29am UTC](https://meta.discourse.org/t/backup-restore-getting-failed-from-ui/290609/3 "2024-01-05T10:29:33Z")

</div>

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

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [January 5, 2024, 10:58am UTC](https://meta.discourse.org/t/backup-restore-getting-failed-from-ui/290609/4 "2024-01-05T10:58:53Z")

</div>

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

```plaintext
 df -h

```
