Unable to upload the backup for restore on a new instance

hi, I have installed a new instance to recover some backups, but when I went to upload the backup, it gave me this error:

Errno::EACCES (Permission denied @ dir_s_mkdir - /var/www/discourse/public/backups/default/tmp)

do you know how to solve this to be able to upload the backup?

That’s strange. You could try to chown -R discourse:www-data /var/www/discourse/public/backups/* inside the docker container.

1 Like

thanks but that didn’t help.

do I need to rebuild the app before trying to upload the backup again?

You could try, but I don’t expect to have any effect.

1 Like

ok that was the solution with an extra “*” in the end:

chown -R discourse:www-data /var/www/discourse/public/backups/*


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.