# Only Blank Page showing at first visit

**URL:** https://meta.discourse.org/t/only-blank-page-showing-at-first-visit/63849
**Category:** Self-hosting
**Created:** [2 Giugno 2017, 10:34pm UTC](https://meta.discourse.org/t/only-blank-page-showing-at-first-visit/63849 "2017-06-02T22:34:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Der-Eddy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/der-eddy/32/74110_2.png) [@Der-Eddy](https://meta.discourse.org/u/Der-Eddy)
#### Post date: [2 Giugno 2017, 10:34pm UTC](https://meta.discourse.org/t/only-blank-page-showing-at-first-visit/63849/1 "2017-06-02T22:34:53Z")

</div>

Since some months I have this weird problem:  
At the first visit per day at my forum, it will only show a blank page with the background color of the current theme  
this also happens if you clear my browser cache (i.e. via CTRL + F5)  
after a site reload, the forum will show just fine

the browser console will show this:

 ![](https://global.discourse-cdn.com/meta/original/3X/c/5/c5087d1c00633c5b21b35a77d0935b990e453685.png)  
(this is a screenshot after I commented every plugin out and rebuild discourse)

Some informations about my installation:  
I’m always running the latest Beta version of Discourse via the recommended Docker Install Guide  
Using this templates:

```
templates:
  - "templates/postgres.template.yml"
  - "templates/redis.template.yml"
  - "templates/web.template.yml"
  - "templates/web.ratelimited.template.yml"
  #- "templates/web.ssl.template.yml"
  #- "templates/web.letsencrypt.ssl.template.yml"
  - "templates/web.socketed.template.yml"
  - "templates/cloudflare.template.yml"

```

and with this plugins:

- Docker Manager
- Spoiler Alert
- Staff Notes
- Solved
- Whos Online
- Steam Login
- Discourse Signatures
- Discourse Cakeday
- Backup to Dropbox
- Discourse [Data Explorer](https://meta.discourse.org/t/32566?silent=true)
- Discourse Assign

I’m also using a Nginx Webserver on top of the Docker Image to proxy\_pass Discourse:

```
  location / {
    proxy_pass http://unix:/var/discourse/shared/standalone/nginx.http.sock:;
    proxy_set_header Host $http_host;
    proxy_http_version 1.1;
    proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header X-Forwarded-Proto https;
  }

```

Our forum can be found at: [https://www.kokoro-ko.de/](https://www.kokoro-ko.de/)

---

<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: [3 Giugno 2017, 12:04am UTC](https://meta.discourse.org/t/only-blank-page-showing-at-first-visit/63849/2 "2017-06-03T00:04:17Z")

</div>

I’d start by disabling plugins. Try [safe mode](https://meta.discourse.org/t/53504?silent=true).

---

<div class="post-metadata">

### Author: ![Der-Eddy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/der-eddy/32/74110_2.png) [@Der-Eddy](https://meta.discourse.org/u/Der-Eddy)
#### Post date: [3 Giugno 2017, 12:33pm UTC](https://meta.discourse.org/t/only-blank-page-showing-at-first-visit/63849/3 "2017-06-03T12:33:27Z")

</div>

I enabled [safe mode](https://meta.discourse.org/t/53504?silent=true) and now this happens:

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

I also already commented every plugin out and the same happens, so I guess it has something to do with my Nginx Proxy Pass?

---

<div class="post-metadata">

### Author: ![fefrei](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/fefrei/32/119538_2.png) [@fefrei](https://meta.discourse.org/u/fefrei)
#### Post date: [3 Giugno 2017, 12:49pm UTC](https://meta.discourse.org/t/only-blank-page-showing-at-first-visit/63849/4 "2017-06-03T12:49:33Z")

</div>

> [@Der-Eddy](#):
>
> I also already commented every plugin out and the same happens

Did you run `./launcher rebuild app` after commenting out the plugins?

---

<div class="post-metadata">

### Author: ![Der-Eddy](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/der-eddy/32/74110_2.png) [@Der-Eddy](https://meta.discourse.org/u/Der-Eddy)
#### Post date: [3 Giugno 2017, 12:50pm UTC](https://meta.discourse.org/t/only-blank-page-showing-at-first-visit/63849/5 "2017-06-03T12:50:40Z")

</div>

I think I found the problem, since safe-mode still shows only a blank page I checked my Nginx logs more carefully and found this:

`2017/06/03 14:38:39 [crit] 21647#21647: *45150 open() "/var/cache/nginx/proxy_temp/5/44/0000002445" failed (13: Permission denied) while reading upstream, client: 84.152.193.65, server: www.kokoro-ko.de, request: "GET /assets/vendor-199fce5a9e9895329b51b04605f1f5061951acb488baa6b2ea2fc2ae36def529.js HTTP/2.0", upstream: "http://unix:/var/discourse/shared/standalone/nginx.http.sock:/assets/vendor-199fce5a9e9895329b51b04605f1f5061951acb488baa6b2ea2fc2ae36def529.js", host: "www.kokoro-ko.de", referrer: "https://www.kokoro-ko.de/"`

So I checked the folder permissions for `/var/cache/nginx/proxy_temp/`:

```
drwx------ 90 www-data www-data 4096 Jun 3 14:26 0
drwx------ 3 nginx nginx 4096 Jan 8 01:44 1
drwx------ 3 nginx nginx 4096 Jan 8 01:44 2
drwx------ 3 nginx nginx 4096 Jan 8 01:44 3
drwx------ 3 nginx nginx 4096 Jan 8 01:44 4
drwx------ 3 nginx nginx 4096 Jan 8 01:44 5
drwx------ 92 www-data www-data 4096 Mai 27 23:12 6
drwx------ 92 www-data www-data 4096 Mai 25 11:04 7
drwx------ 88 www-data www-data 4096 Jun 3 14:26 8
drwx------ 88 www-data www-data 4096 Jun 3 14:26 9

```

While my Nginx worker uses the `www-data` account  
I adjusted the folder permissions and now it seems to work like it should

I need further testing for this but I didn’t know about safe-mode before which leaded me to the real issue!

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [8 Giugno 2024, 12:44pm UTC](https://meta.discourse.org/t/only-blank-page-showing-at-first-visit/63849/6 "2024-06-08T12:44:42Z")

</div>

Questo argomento è stato chiuso automaticamente dopo 2562 giorni. Non sono più consentite nuove risposte.
