# Uploads migration to S3 was not successful at all

**URL:** https://meta.discourse.org/t/uploads-migration-to-s3-was-not-successful-at-all/108041
**Category:** Support
**Created:** [31 בינואר,‏ 2019,‏ 5:47pm UTC](https://meta.discourse.org/t/uploads-migration-to-s3-was-not-successful-at-all/108041 "2019-01-31T17:47:29Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [31 בינואר,‏ 2019,‏ 5:47pm UTC](https://meta.discourse.org/t/uploads-migration-to-s3-was-not-successful-at-all/108041/1 "2019-01-31T17:47:29Z")

</div>

We have recently migrated the uploads to an AWS S3 Container, but there’s some stuff that is broken at this moment  
Uploaded files still use the “old” path:

> **[Error when downloading resources in the forum](https://community.kodular.io/t/error-when-downloading-resources-in-the-forum/17576)**
>
> I can not download .aia in the forum

At our community, people can upload project files to share with our users, which are not treated as images  
Due to this, posts having `<a href="/uploads/default/...">Blah blah blah</a>` point to our community instead of the community CDN (which is AWS), not like images

Images are working properly, but other files are not  
What have I missed during the migration?

---

<div class="post-metadata">

### Author: ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)
#### Post date: [1 בפברואר,‏ 2019,‏ 12:21pm UTC](https://meta.discourse.org/t/uploads-migration-to-s3-was-not-successful-at-all/108041/2 "2019-02-01T12:21:05Z")

</div>

Have you done a

```
 rake posts:rebake

```

---

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [1 בפברואר,‏ 2019,‏ 6:34pm UTC](https://meta.discourse.org/t/uploads-migration-to-s3-was-not-successful-at-all/108041/3 "2019-02-01T18:34:28Z")

</div>

Yes, and I did it now again, and the problem persists

```plaintext
root@community ~# cd /var/discourse
root@community /v/discourse# ./launcher enter app
which: no docker.io in (/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin)
root@community-app:/var/www/discourse# rake posts:rebake
Rebaking post markdown for 'default'
    69576 / 69567 (100.0%)
69576 posts done!
--------------------------------------------------
root@community-app:/var/www/discourse# 

```

Check, for example, this topic

> **[FontArt v1 - My first kodular IDE Extension](https://community.kodular.io/t/fontart-v1-my-first-kodular-ide-extension/12216)**
>
> This Extension was made using Kodular IDE: https://ide.kodular.io/ Thank You kodular Team for a very handy IDE! Thank You to my Beta Testers @Peter, @gabriel600r, @Italo This Extension will allow you change the Text of the Label, Button,...

At the bottom there are two files to download, and none of them is working

---

<div class="post-metadata">

### Author: ![barreeeiroo](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/barreeeiroo/32/165264_2.png) [@barreeeiroo](https://meta.discourse.org/u/barreeeiroo)
#### Post date: [16 בפברואר,‏ 2019,‏ 6:26pm UTC](https://meta.discourse.org/t/uploads-migration-to-s3-was-not-successful-at-all/108041/4 "2019-02-16T18:26:17Z")

</div>

Fixed my making a remap:

> [@Permalink with wildcards](https://meta.discourse.org/t/permalink-with-wildcards/109329/3):
>
> Thanks, I made the following remap and it worked! rake posts:remap["\<a class=\"attachment\" href=\"/uploads/default/","\<a class=\"attachment\" href=\"https://kodular-community.s3.dualstack.eu-west-1.amazonaws.com/"]

---

<div class="post-metadata">

### Author: ![Falco](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/falco/32/179432_2.png) [@Falco](https://meta.discourse.org/u/Falco)
#### Post date: [16 בפברואר,‏ 2019,‏ 6:27pm UTC](https://meta.discourse.org/t/uploads-migration-to-s3-was-not-successful-at-all/108041/5 "2019-02-16T18:27:16Z")

</div>


