# Images not loading after merge even when file exists and Upload model exists

**URL:** <https://meta.discourse.org/t/images-not-loading-after-merge-even-when-file-exists-and-upload-model-exists/314851>\
**Category:** Migration\
**Created:** [July 3, 2024, 7:43pm UTC](https://meta.discourse.org/t/images-not-loading-after-merge-even-when-file-exists-and-upload-model-exists/314851 "2024-07-03T19:43:06Z")\
**Posts on this page:** 1\
**Showing post:** 4

<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:** [July 11, 2024, 4:47pm UTC](https://meta.discourse.org/t/images-not-loading-after-merge-even-when-file-exists-and-upload-model-exists/314851/4 "2024-07-11T16:47:16Z")

</div>

> [@RGJ](#):
>
> I _hate_ debugging those kind of errors.

That’s how we’re the same. But I’m pretty sure you’re better at it than I am. Thanks very much for your hints.

> [@RGJ](#):
>
> Most of the time I just manually execute the code in the controller in a rails console.

That’s what I’m trying to do.

> [@RGJ](#):
>
> This time I guess the 404 might be coming from line 111
> 
> [discourse/app/controllers/uploads\_controller.rb at main · discourse/discourse · GitHub](https://github.com/discourse/discourse/blob/main/app/controllers/uploads_controller.rb#L111)

That seems like a good guess. Thanks!

> [@RGJ](#):
>
> What does `Discourse.store.list_missing_uploads(skip_optimized: true)` give you?

`nil`. `skip_optimized: false` – same.

I managed to get the uploads for one post fixed, but apparently didn’t make very good notes. 🤷 But I did a bunch of things to get there; I mostly have some hope that it’s possible, at least.

---

_[View the full topic](https://meta.discourse.org/t/images-not-loading-after-merge-even-when-file-exists-and-upload-model-exists/314851)._
