Backup upload failing


(Tim) #1

I'm trying to restore my discourse site, but I can't upload backups. It eventually fails with a 500 error (though that's probably irrelevant).

The JavaScript console is showing that it's trying to post to https://site.com/admin/backups/upload. The issue with this is that the path isn't valid. The site is configured to use a subfolder per these instructions: https://meta.discourse.org/t/subfolder-support-with-docker/30507. It looks like the upload function isn't respecting that and is leaving out the value specified in DISCOURSE_RELATIVE_URL_ROOT.

I'm not currently able to manually upload files to the server (AWS EC2 instance with lots of security). The site is also configured to use S3 for backups, but Discourse doesn't see the backups uploaded manually to S3. Discourse doesn't see any of the backups after resetting the EC2 instance.

Does anyone have any ideas how to fix this? My discourse instance is completely broken until I can load a backup.

Update:
I was able to work around the alleged bug and my limitations by turning of S3 config, uploading the backup as an attachment to a post, SSHing into the server to copy it from the uploads folder to the backups folder, renaming to its original name, and then it showed on the backups page and I could click the button to restore that backup.

The original issue remains, however. This is still a blocker for me as I do not have SSH access to the prod instance to move and rename the file.


(Jeff Atwood) #2

@zogstrip is there a bug with subfolder logic here?


(Régis Hanol) #3

I will have a look, pretty sure I haven’t tested that use case :frowning:


(Tim) #4

Have you been able to track this down?


(Nick Ackerman) #5

I have run into this issue as well. Has any progress been made here? Can we expect a fix?


(Régis Hanol) #6

Sorry about the delay. Here’s the fix :rotating_light:


(Jeff Atwood) #7

This topic was automatically closed after 3 days. New replies are no longer allowed.