# Blank pages, 500 errors and no logs

**URL:** https://meta.discourse.org/t/blank-pages-500-errors-and-no-logs/96413
**Category:** Support
**Created:** [September 5, 2018, 1:35pm UTC](https://meta.discourse.org/t/blank-pages-500-errors-and-no-logs/96413 "2018-09-05T13:35:09Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Southclaws](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/southclaws/32/78890_2.png) [@Southclaws](https://meta.discourse.org/u/Southclaws)
#### Post date: [September 5, 2018, 1:35pm UTC](https://meta.discourse.org/t/blank-pages-500-errors-and-no-logs/96413/1 "2018-09-05T13:35:09Z")

</div>

So while trying to get a portable/automated Docker deployment up I’m spinning up my old system-installed Discourse instance temporarily but I’ve hit some issues and it won’t work properly again (it did for a long time before I switched to using Traefik a few months ago - because Discourse was using a unix:// socket which didn’t make sense in the context of a Traefik container and didn’t know I could switch Discourse to use ports instead.

Anyway, I dug through the forum and discovered I can use

```plaintext
expose:
  - "3000"
  - "2222"

```

And I also added labels for Traefik:

```plaintext

labels:
  traefik.frontend.rule: "Host:forum.southcla.ws"
  traefik.docker.network: "gateway"
  traefik.port: "3000"

```

And those are working great, Traefik can now talk to my Discourse container!

But, when I loaded up the page, it was pure white and the console contained a ton of 404s. Very strange, because it worked fine literally 3 days earlier when I shut off Traefik and accessed it via Caddy (a reverse proxy from [domain.com](http://domain.com) → unix://xyz).

So I’m not really sure how just changing the network interface method caused this - couldn’t find anything else in the docs or on the forum.

I poked around the forum, found a thread that mentioned using `stable` instead of `testspassed` so I tried that, now I just get a 500 error instead of a blank page.

* * *

On both of these tests, the logs output the same thing:

```plaintext
rsyslogd: command 'KLogPermitNonKernelFacility' is currently not permitted - did you already set it via a RainerScript command (v6+ config)? [v8.16.0 try http://www.rsyslog.com/e/2222]
rsyslogd: imklog: cannot open kernel log (/proc/kmsg): Operation not permitted.
rsyslogd: activation of module imklog failed [v8.16.0 try http://www.rsyslog.com/e/2145]
rsyslogd: Could not open output pipe '/dev/xconsole':: No such file or directory [v8.16.0 try http://www.rsyslog.com/e/2039]
supervisor pid: 41 unicorn pid: 82

```

Which I have no idea what it means! I assumed the container should _Just Work™_ because that’s the problem that docker is meant to solve but it seems I’m getting different results after just a couple of days and one config change.

I would change back but that means turning off Traefik and shutting down _every_ other web service I’m hosting - I basically need to run Discourse on a port, not a unix:// socket.

Would love to get my forum back online after months of downtime, aside from all these issues, Discourse is by far my favourite forum software available, thanks!

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [September 5, 2018, 1:51pm UTC](https://meta.discourse.org/t/blank-pages-500-errors-and-no-logs/96413/2 "2018-09-05T13:51:03Z")

</div>

> [@Southclaws](#):
>
> found a thread that mentioned using `stable` instead of `testspassed`

Wherever you found that, that’s bad advice.

> [@When should I switch from beta release to stable release?](https://meta.discourse.org/t/when-should-i-switch-from-beta-release-to-stable-release/95669/6):
>
> Downgrading from beta won’t work, because there were database changes since the release of stable. You need to wait for the next stable release before you can switch from beta to stable.

---

<div class="post-metadata">

### Author: ![Southclaws](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/southclaws/32/78890_2.png) [@Southclaws](https://meta.discourse.org/u/Southclaws)
#### Post date: [September 5, 2018, 1:56pm UTC](https://meta.discourse.org/t/blank-pages-500-errors-and-no-logs/96413/3 "2018-09-05T13:56:37Z")

</div>

Alright, I’ll stay on the latest then. Thanks for letting me know!

Still, the issues are persisting, blank pages and 404s, no idea how to fix this one.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [September 5, 2018, 2:00pm UTC](https://meta.discourse.org/t/blank-pages-500-errors-and-no-logs/96413/4 "2018-09-05T14:00:38Z")

</div>

Well, either your reverse proxy isn’t configured correctly or a plugin broke your Discourse. You could take a look at [Using Safe Mode to troubleshoot issues with themes and plugins](https://meta.discourse.org/t/how-to-use-discourse-safe-mode/53504) in order to rule out plugin problems.

---

<div class="post-metadata">

### Author: ![Southclaws](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/southclaws/32/78890_2.png) [@Southclaws](https://meta.discourse.org/u/Southclaws)
#### Post date: [September 5, 2018, 2:04pm UTC](https://meta.discourse.org/t/blank-pages-500-errors-and-no-logs/96413/5 "2018-09-05T14:04:22Z")

</div>

The proxy is running for 24 other containers and they all work fine - are there any specific settings that Discourse requires, like special headers or anything like that?

[Safe mode](https://meta.discourse.org/t/53504?silent=true) won’t work, exact same issue with the blank screen and 404s trying to load .js files.

---

<div class="post-metadata">

### Author: ![gerhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/gerhard/32/119479_2.png) [@gerhard](https://meta.discourse.org/u/gerhard)
#### Post date: [September 5, 2018, 2:15pm UTC](https://meta.discourse.org/t/blank-pages-500-errors-and-no-logs/96413/6 "2018-09-05T14:15:29Z")

</div>

There’s a nginx server running on port 80 inside the container. Your reverse proxy would have to do all the stuff nginx is doing since you are connecting to port 3000. I don’t recommend doing that. There’s too much that can go wrong and you are experiencing that right now.

My recommendation:

1. Read [Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247)

2. Expose the container’s nginx on a different port by editing your `app.yml`. E.g.:

3. Configure your reverse proxy to connect to the container via the port exposed in `app.yml` (e.g. 8080) and make sure your reverse proxy sends the required headers. See [Run other websites on the same machine as Discourse](https://meta.discourse.org/t/running-other-websites-on-the-same-machine-as-discourse/17247) for more information on that.

---

<div class="post-metadata">

### Author: ![Southclaws](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/southclaws/32/78890_2.png) [@Southclaws](https://meta.discourse.org/u/Southclaws)
#### Post date: [September 5, 2018, 2:21pm UTC](https://meta.discourse.org/t/blank-pages-500-errors-and-no-logs/96413/7 "2018-09-05T14:21:49Z")

</div>

Ah, okay, I didn’t know there was _another_ reverse proxy running _inside_ the container, that’s kinda weird in the docker world!

Thanks, I’ll give this a try and look into headers - afaik Traefik just passes all headers with no changes.

Edit: Yep, that worked, thanks!

---

<div class="post-metadata">

### Author: ![rishabh](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rishabh/32/179446_2.png) [@rishabh](https://meta.discourse.org/u/rishabh)
#### Post date: [September 5, 2018, 2:58pm UTC](https://meta.discourse.org/t/blank-pages-500-errors-and-no-logs/96413/8 "2018-09-05T14:58:03Z")

</div>


