Migrate_from_s3: You must disable S3 uploads before running that task

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
5 Likes