# Migrate\_from\_s3: עליך להשבית העלאות S3 לפני הפעלת המשימה

**URL:** https://meta.discourse.org/t/migrate-from-s3-you-must-disable-s3-uploads-before-running-that-task/160633
**Category:** Support
**Created:** [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:** 2
**Page:** 2

<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: [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

```

---

<div class="post-metadata">

### Author: ![Pravi](https://avatars.discourse-cdn.com/v4/letter/p/76d3ee/32.png) [@Pravi](https://meta.discourse.org/u/Pravi)
#### Post date: [19 בספטמבר,‏ 2020,‏ 1:59pm UTC](https://meta.discourse.org/t/migrate-from-s3-you-must-disable-s3-uploads-before-running-that-task/160633/22 "2020-09-19T13:59:29Z")

</div>

This is what I get. Only a few files migrated back. Most of the files are still in S3.

 ![s3](https://global.discourse-cdn.com/meta/original/3X/7/4/74bb2d9547d73d9ed981b033012f42b9aed53333.png)

No, fix yet 😫 Its been a month.

[Previous page](https://meta.discourse.org/t/migrate-from-s3-you-must-disable-s3-uploads-before-running-that-task/160633.md?page=1)
