# Why is my dev server not showing me uploaded images in Topics?

**URL:** https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491
**Category:** Development
**Created:** [August 11, 2018, 9:11pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491 "2018-08-11T21:11:23Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 11, 2018, 9:11pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491/1 "2018-08-11T21:11:23Z")

</div>

I’ve just made up 2 dev servers in the cloud in 24 hours (don’t worry, wasn’t focusing the whole time 😉 )

I decided to see if a bigger server would improve performance with a dev install, so the current one is a 4 core, 4GB VPS, running 18.04.

Each one of them has had the same issue, so it must be by design (or bug).

Instead of showing me an uploaded image, it is showing the word ‘image’.

 ![image](https://global.discourse-cdn.com/meta/original/3X/b/b/bb7f0b59f81fbd9b594d767029403f282b1a657b.png)

The image shows in the preview pane when editing, but not when you view the topic.

Is there some setting that is ‘streamlining’ images because this is a dev server?

Is it due to the fact I’m accessing by IP, not Domain?

Any way to get the server to ‘serve’ images normally - I’m trying to test!

(full disclosure, there is a single plugin installed - Topic List Previews, but this shouldn’t impact/alter the actual view of a post?)

Oh & PPS, there are no errors in the browser console nor in `/logs`

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [August 11, 2018, 9:28pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491/2 "2018-08-11T21:28:06Z")

</div>

What are you calling a “dev server”? How did you set it up?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 11, 2018, 9:30pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491/3 "2018-08-11T21:30:07Z")

</div>

Using:

> [@Install Discourse on Ubuntu or Debian for Development](https://meta.discourse.org/t/beginners-guide-to-install-discourse-on-ubuntu-for-development/14727):
>
> warning This guide covers installation instructions in a development environment. For a production guide see: [Install Discourse in production with the official supported instructions](https://meta.discourse.org/t/how-to-install-discourse-in-production/142537) So you want to set up Discourse on Ubuntu or Debian to hack on and develop with? We’ll assume that you work locally and don’t have Ruby/Rails/Postgres/Redis installed on your Ubuntu or Debian system. Let’s begin! Requirements We suggest having at least 4 GB RAM and 2 CPU cores. Current compatibility: O…

On a cloud server.

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [August 11, 2018, 9:31pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491/4 "2018-08-11T21:31:42Z")

</div>

Did you start sidekiq?

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 11, 2018, 9:32pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491/5 "2018-08-11T21:32:11Z")

</div>

Let me check and revert!!!

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 11, 2018, 9:43pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491/6 "2018-08-11T21:43:58Z")

</div>

Yes, but looks like the ‘ProcessPost’ job is failing de to a refused connection … um … this might explain things!

`Jobs::ProcessPost {"post_id"=&gt;11, "bypass_bump"=&gt;false, "cooking_options"=&gt;nil, "current_site_id"=&gt;"default"} Jobs::HandledExceptionWrapper: Wrapped Errno::ECONNREFUSED: Failed to open TCP connection to localhost:443 (Connection refused - connect(2) for "localhost" port 443)`

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 12, 2018, 8:59pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491/7 "2018-08-12T20:59:34Z")

</div>

Guys, having a dig around, but does anyone know how to run ProcessPost on dev successfully with the otherwise vanilla dev setup (albeit on a cloud server)?

I’ve browsed through a lot of code and configs but can’t see what is forcing ProcessPost to attempt to connect over port 443 ..

Had another look at it:

Working link at Preview:

![image](https://global.discourse-cdn.com/meta/original/3X/8/f/8fd36c0bd73073c04505220b8406a7a37e665607.png)

Failed link once submitted:

 ![image](https://global.discourse-cdn.com/meta/original/3X/3/9/394ad550258dada9ec65d3cfa0c524e25a56e6aa.png)

I guess ‘localhost’ domain is causing the issue?

Any way to avoid the URL having localhost added?

---

<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: [August 15, 2018, 3:51pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491/8 "2018-08-15T15:51:51Z")

</div>

There is a dev site setting with a name something like “force hostname”.

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 15, 2018, 3:54pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491/9 "2018-08-15T15:54:35Z")

</div>

So used to the Docker config, which file is that in.

Scrub that got it: `site_settings.yml`!

---

<div class="post-metadata">

### Author: ![merefield](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/merefield/32/176214_2.png) [@merefield](https://meta.discourse.org/u/merefield)
#### Post date: [August 15, 2018, 4:29pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491/10 "2018-08-15T16:29:12Z")

</div>

@pfaffman that worked a treat! I needed IP and port in that setting’s default!

Thanks a lot, that was _really_ bugging me!!

---

<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: [September 14, 2018, 4:29pm UTC](https://meta.discourse.org/t/why-is-my-dev-server-not-showing-me-uploaded-images-in-topics/94491/11 "2018-09-14T16:29:18Z")

</div>

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