Honestly, I would:
- put the original environment variables back (including
DISCOURSE_USE_S3=false
) and rebuild - open /var/www/discourse/app/models/global_setting.rb
- change the use_s3? method to always return false (as per below)
- run the migrate-from-s3 task
- remove the variables completely and rebuild one more time
We have someone scheduled to look into it, but this should tide you over meanwhile.
On line 96-ish, change the self.use_s3?
method to look like:
def self.use_s3?
false
end