Nightly backup fails

AI-generated summary

Nightly Backup Fails

jonasth is experiencing issues with their Discourse nightly backup, which has failed a couple of times in the last month. The error log indicates a failure to archive uploads due to an exception in backuper.rb. However, the specific reason for the failure is not provided.

gerhard suggests that upgrading might resolve the issue and recommends running ./launcher rebuild app on the console to rebuild the app.

Hi!

We are using discourse_docker with Discourse v2.2.0.beta10 +6

Our nightly backup has failed a couple of times during the last month.
The log says:

[2019-02-17 03:31:42] Finalizing backup...
[2019-02-17 03:31:42] Creating archive: forum-2019-02-17-033115-v20190125153345.tar.gz
[2019-02-17 03:31:42] Making sure archive does not already exist...
[2019-02-17 03:31:42] Creating empty archive...
[2019-02-17 03:31:42] Archiving data dump...
[2019-02-17 03:31:43] Archiving uploads...
[2019-02-17 03:34:19] EXCEPTION: /var/www/discourse/lib/backup_restore/backuper.rb:237:in `block in create_archive': Failed to archive uploads.

[2019-02-17 03:34:19] /var/www/discourse/lib/discourse.rb:29:in `execute_command'
/var/www/discourse/lib/backup_restore/backuper.rb:237:in `block in create_archive'
/usr/local/lib/ruby/2.5.0/fileutils.rb:122:in `chdir'
/usr/local/lib/ruby/2.5.0/fileutils.rb:122:in `cd'
/var/www/discourse/lib/backup_restore/backuper.rb:235:in `create_archive'
[...]
[2019-02-17 03:34:19] Deleting old backups...
[2019-02-17 03:34:19] Something went wrong while deleting old backups.
[2019-02-17 03:34:19] Cleaning stuff up...
[2019-02-17 03:34:19] Removing '.tar' leftovers...
[2019-02-17 03:34:19] Unpausing sidekiq...
[2019-02-17 03:34:19] Marking backup as finished...
[2019-02-17 03:34:19] Refreshing disk stats...
[2019-02-17 03:34:21] Notifying 'system' of the end of the backup...

Seems like it fails to archive (tar) the backups? But it doesn’t say why.

Regards,
Jonas

Upgrading should fix it. I recommend you do a rebuild on the console:

./launcher rebuild app