# Discourse missing images after upgrade

**URL:** https://meta.discourse.org/t/discourse-missing-images-after-upgrade/204114
**Category:** Support
**Created:** [September 21, 2021, 3:56pm UTC](https://meta.discourse.org/t/discourse-missing-images-after-upgrade/204114 "2021-09-21T15:56:34Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![Chase\_Hippen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chase_hippen/32/212760_2.png) [@Chase\_Hippen](https://meta.discourse.org/u/Chase_Hippen)
#### Post date: [September 21, 2021, 3:56pm UTC](https://meta.discourse.org/t/discourse-missing-images-after-upgrade/204114/1 "2021-09-21T15:56:34Z")

</div>

We use Terraform to stand up 2 EC2 instances that we run Discourse on behind a load balancer. We recently updated Discourse with 3 years worth of updates, and finally have it up, the nfs volume is mounted, and everything is present except we’re missing most uploaded images.

I tried  
./launcher enter app  
rake posts:missing\_uploads  
rake uploads:missing  
rails c \> SiteSetting.migrate\_to\_new\_scheme=true

I also tried rake recover from tombstone & rake recover from indexes, neither seems to have done anything to help.

Output of rake uploads:missing is

```plaintext
...
134 of 143 uploads are missing
...
1265 of 1265 optimized_images are missing

```

Output of rake posts:missing\_uploads is

```plaintext
"Looking for missing uploads on: default

0 post uploads are missing."

```

What can I do to further troubleshoot this issue? Any idea where the uploads may have gone?

---

<div class="post-metadata">

### Author: ![Chase\_Hippen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chase_hippen/32/212760_2.png) [@Chase\_Hippen](https://meta.discourse.org/u/Chase_Hippen)
#### Post date: [September 30, 2021, 4:41pm UTC](https://meta.discourse.org/t/discourse-missing-images-after-upgrade/204114/3 "2021-09-30T16:41:50Z")

</div>

Was able to find that the images were mounted to the instance, but the volume they were in wasn’t mounted to the container. I copied them from the fs to the container and reran migrations. Now it’s working.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 30, 2021, 4:42pm UTC](https://meta.discourse.org/t/discourse-missing-images-after-upgrade/204114/4 "2021-10-30T16:42:18Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
