# Migrating uploads to S3 for 'default'... rake aborted!

**URL:** <https://meta.discourse.org/t/migrating-uploads-to-s3-for-default-rake-aborted/144033>\
**Category:** Self-hosting\
**Tags:** s3\
**Created:** [12 במרץ,‏ 2020,‏ 11:08am UTC](https://meta.discourse.org/t/migrating-uploads-to-s3-for-default-rake-aborted/144033 "2020-03-12T11:08:34Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![eextra](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/eextra/32/170266_2.png) [@eextra](https://meta.discourse.org/u/eextra)\
**Post date:** [12 במרץ,‏ 2020,‏ 11:08am UTC](https://meta.discourse.org/t/migrating-uploads-to-s3-for-default-rake-aborted/144033/1 "2020-03-12T11:08:34Z")

</div>

> NameError: uninitialized constant FileStore::ToS3Migration::Aws

I set the bucket according to the manual. Then I typed in the console but I can’t move the images. Why this bug ?  
i put (app:/var/www/discourse# : )

```
DISCOURSE_S3_BUCKET=new-bucket \
DISCOURSE_S3_REGION=EU_Frankfurt \
DISCOURSE_S3_ACCESS_KEY_ID=dsadadassdadaIdsadY4 \
DISCOURSE_S3_SECRET_ACCESS_KEY=xyss1dsMtdsakcmjxBVsg1xsadaX \
rake uploads:migrate_to_s3

```

---

_[View the full topic](https://meta.discourse.org/t/migrating-uploads-to-s3-for-default-rake-aborted/144033)._
