从 UI 恢复备份失败

在尝试从 UI 恢复备份时失败了。

以下是日志。

[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...

有人能帮忙解决这个问题吗?

您的服务器空间不足或存档已损坏。请检查目标服务器上的可用空间,然后尝试进行新的备份以进行恢复。

您需要至少 3 倍于备份大小的空间才能成功恢复备份。

1 个赞

请指导我如何检查服务器空间?

只需快速搜索一下即可,但运行服务器上的以下命令应能为您提供磁盘空间:

 df -h
1 个赞