EXCEPTION: Permission denied - Backup

Hi,

After clicking the Backup button, this happens.
Users are logged in using SSO. Former admin manages to create backups (Which at the moment only work automatically)
My user which is in the admins group is denied, so is another one’s admin user.

Would appreciate the help!

[2021-08-31 16:07:17] Marking backup as running...
[2021-08-31 16:07:17] Making sure '/var/www/discourse/tmp/backups/default/2021-08-31-160717' exists...
[2021-08-31 16:07:17] Making sure '/var/www/discourse/public/backups/default' exists...
[2021-08-31 16:07:17] Updating metadata...
[2021-08-31 16:07:17] Dumping the public schema of the database...
[2021-08-31 16:07:17] EXCEPTION: Permission denied
[2021-08-31 16:07:17] /var/www/discourse/lib/backup_restore/backuper.rb:139:in `popen'
/var/www/discourse/lib/backup_restore/backuper.rb:139:in `dump_public_schema'
/var/www/discourse/lib/backup_restore/backuper.rb:36:in `run'
/var/www/discourse/script/spawn_backup_restore.rb:9:in `backup'
/var/www/discourse/script/spawn_backup_restore.rb:34: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>'
[2021-08-31 16:07:17] Deleting old backups...
[2021-08-31 16:07:18] Cleaning stuff up...
[2021-08-31 16:07:18] Removing '.tar' leftovers...
[2021-08-31 16:07:18] Marking backup as finished...
[2021-08-31 16:07:18] Refreshing disk stats...
[2021-08-31 16:07:18] Notifying 'eranm' of the end of the backup...
[2021-08-31 16:07:22] Finished!

Looks like it’s a problem with the permissions on the folder where the backup will be stored on the server. Enter the container and check if the write permissions are there.

1 Like

No container, it runs on EC2 machine. Data is set to be uploaded to S3 bucket, permissions confirmed.