# Thumbnails not being pulled

**URL:** <https://meta.discourse.org/t/thumbnails-not-being-pulled/140591>\
**Category:** Support\
**Created:** [February 4, 2020, 2:37pm UTC](https://meta.discourse.org/t/thumbnails-not-being-pulled/140591 "2020-02-04T14:37:21Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![RubyRhod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rubyrhod/32/40260_2.png) [@RubyRhod](https://meta.discourse.org/u/RubyRhod)\
**Post date:** [February 4, 2020, 2:37pm UTC](https://meta.discourse.org/t/thumbnails-not-being-pulled/140591/1 "2020-02-04T14:37:21Z")

</div>

I’m migrating a 15 year old community to discourse, and we’ve decided not to migrate the hundred thousand plus posts, rather selected ones of lasting value.

On the old board, images are saved as [https://static.xxx/uploads/xxx.jpg](https://static.xxx/uploads/xxx.jpg). and we’ll keep that server alive post-migration.

When moving posts with images, it’s not grabbing and making the thumbnail, no matter whether I wrap the images in () or not. It does it for the current session but when I force-reload the page or another user looks at it, we get the broken picture icon:

 ![Screen Shot 2020-02-04 at 9.30.58 AM](https://global.discourse-cdn.com/meta/original/3X/7/9/79d46ccb3a3888e06493f9399f1635a505a1bfec.png)

The icon links directly to the picture on the static server, which is working fine. But thumbnails would be ‘nice’.

The only thing I can think of is a firewall problem - both servers are in private IP space, and the firewall prevents an internal server from accessing another via an external IP. I _believe_ I’ve set this correctly in the host’s /etc/hosts file, but am NOT a docker expert. When I ping the static image server I get the correct internal IP address from regular command prompt. (note to self, enter the container and test from there)

Is there something else I need to do to force static.xx to be the internal IP? External images when wrapped with () are working as expected with the lightbox.

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [February 4, 2020, 3:44pm UTC](https://meta.discourse.org/t/thumbnails-not-being-pulled/140591/2 "2020-02-04T15:44:34Z")

</div>

You could have it talk to an internal DNS server? It depends on your layer 3 topology but that would stop all loopback chatter.

---

<div class="post-metadata">

**Author:** ![RubyRhod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rubyrhod/32/40260_2.png) [@RubyRhod](https://meta.discourse.org/u/RubyRhod)\
**Post date:** [February 4, 2020, 4:21pm UTC](https://meta.discourse.org/t/thumbnails-not-being-pulled/140591/3 "2020-02-04T16:21:12Z")

</div>

when i ping the asset server i get the internal ip is docker using an alternate host file?

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [February 4, 2020, 4:21pm UTC](https://meta.discourse.org/t/thumbnails-not-being-pulled/140591/4 "2020-02-04T16:21:48Z")

</div>

Use` ./launcher enter app` to find out.

---

<div class="post-metadata">

**Author:** ![RubyRhod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rubyrhod/32/40260_2.png) [@RubyRhod](https://meta.discourse.org/u/RubyRhod)\
**Post date:** [February 4, 2020, 4:29pm UTC](https://meta.discourse.org/t/thumbnails-not-being-pulled/140591/5 "2020-02-04T16:29:50Z")

</div>

> [@Stephen](#):
>
> ./launcher enter app

aha thats the issue. resolves to external ip.  
root@discourse-app:/var/www/discourse# cat /etc/hosts

```
127.0.0.1 localhost
::1 localhost ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
172.17.0.2 discourse-app

```

Added, and… success!

---

<div class="post-metadata">

**Author:** ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)\
**Post date:** [February 4, 2020, 4:30pm UTC](https://meta.discourse.org/t/thumbnails-not-being-pulled/140591/6 "2020-02-04T16:30:43Z")

</div>

Altering the hosts file in the container won’t persist between rebuilds. Better to troubleshoot your DNS chain than bodge it.

---

<div class="post-metadata">

**Author:** ![RubyRhod](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rubyrhod/32/40260_2.png) [@RubyRhod](https://meta.discourse.org/u/RubyRhod)\
**Post date:** [February 4, 2020, 4:31pm UTC](https://meta.discourse.org/t/thumbnails-not-being-pulled/140591/7 "2020-02-04T16:31:28Z")

</div>

That’s an issue… although once the file has been brought into discourse, the original will no longer be referenced, right?

---

<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:** [March 5, 2020, 4:40pm UTC](https://meta.discourse.org/t/thumbnails-not-being-pulled/140591/8 "2020-03-05T16:40:52Z")

</div>

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