# Migrate\_from\_s3: You must disable S3 uploads before running that task

**URL:** https://meta.discourse.org/t/migrate-from-s3-you-must-disable-s3-uploads-before-running-that-task/160633
**Category:** Support
**Created:** [August 12, 2020, 2:29pm UTC](https://meta.discourse.org/t/migrate-from-s3-you-must-disable-s3-uploads-before-running-that-task/160633 "2020-08-12T14:29:43Z")
**Posts on this page:** 1
**Showing post:** 21

<div class="post-metadata">

### Author: ![supermathie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/supermathie/32/507518_2.png) [@supermathie](https://meta.discourse.org/u/supermathie)
#### Post date: [August 14, 2020, 5:28am UTC](https://meta.discourse.org/t/migrate-from-s3-you-must-disable-s3-uploads-before-running-that-task/160633/21 "2020-08-14T05:28:56Z")

</div>

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:

```plaintext
  def self.use_s3?
    false
  end

```

---

_[View the full topic](https://meta.discourse.org/t/migrate-from-s3-you-must-disable-s3-uploads-before-running-that-task/160633)._
