# Migrar para S3 para problemas com Digital Ocean Spaces

**URL:** <https://meta.discourse.org/t/migrate-to-s3-for-digital-ocean-spaces-woes/109662>\
**Category:** Self-hosting\
**Tags:** s3\
**Created:** [Fevereiro 20, 2019, 3:54pm UTC](https://meta.discourse.org/t/migrate-to-s3-for-digital-ocean-spaces-woes/109662 "2019-02-20T15:54:27Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)\
**Post date:** [Fevereiro 27, 2019, 9:31pm UTC](https://meta.discourse.org/t/migrate-to-s3-for-digital-ocean-spaces-woes/109662/11 "2019-02-27T21:31:20Z")

</div>

> [@rishabh](#):
>
> ```plaintext
> DISCOURSE_S3_ACCESS_KEY_ID="" \
> DISCOURSE_S3_SECRET_ACCESS_KEY="" \
> DISCOURSE_S3_REGION="us-east-1" \
> DISCOURSE_S3_BUCKET="uploadbucket" \
> DISCOURSE_S3_CDN_URL="https://xyz.com" \
> DRY_RUN=1 rake uploads:migrate_to_s3
> 
> ```

That works for me. You are setting a value for for the access keys, right?

> [@pfaffman](#):
>
> I don’t have `GlobalSetting.s3_region` , even if I do pass the ENV variable.

What makes you think that this is the case? You can replace `DRY_RUN=1 rake uploads:migrate_to_s3` with `rails c` in the above command and inspect the values of the settings if you want to see what’s happening…

> [@pfaffman](#):
>
> Any guess on what table is causing the `value too long` ?

It must be the `url` column in the `topic_links` table. It’s the only column with a restriction of 500 chars.

---

_[View the full topic](https://meta.discourse.org/t/migrate-to-s3-for-digital-ocean-spaces-woes/109662)._
