# Blank page after upgrade and javascript error

**URL:** https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548
**Category:** Support
**Created:** [September 7, 2017, 12:44pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548 "2017-09-07T12:44:35Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [September 7, 2017, 12:44pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/1 "2017-09-07T12:44:35Z")

</div>

Hello. Latest build (commit [0adaa7c](https://github.com/discourse/discourse/compare/a0daa7c...tests-passed)) brings it back after some years 😉

It comes right after the `discourse-presence` plugin is integrated and enabled by default. Should I remove it from the list? I have renamed it so it looks like

I thought it failed because I changed the container configuration without running `./launcher rebuild app` but then I ran it and:

```plaintext
I, [2017-09-07T12:41:47.226058 #14] INFO -- : > cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-presence.git
fatal: destination path 'discourse-presence' already exists and is not an empty directory.
I, [2017-09-07T12:41:47.232919 #14] INFO -- :

FAILED
--------------------
Pups::ExecError: cd /var/www/discourse/plugins && git clone https://github.com/discourse/discourse-presence.git failed with return #<Process::Status: pid 159 exit 128>
Location of failure: /pups/lib/pups/exec_command.rb:108:in `spawn'
exec failed with the params {"cd"=>"$home/plugins", "cmd"=>["mkdir -p plugins", "git clone https://github.com/discourse/docker_manager.git", "git clone https://github.com/discourse/discourse-spoiler-alert.git", "git clone https://github.com/discourse/discourse-voting.git", "git clone https://github.com/discourse/discourse-solved.git", "git clone https://github.com/discourse/discourse-assign.git", "git clone https://github.com/discourse/discourse-presence.git", "git clone https://github.com/lidel/discourse-openstreetmap.git"]}
6cdaf8b12114762b0bc1f96f3f014e0ad5e356c24b49370812bd4513a147ce0f
**FAILED TO BOOTSTRAP** please scroll up and look for earlier error messages, there may be more than one

```

On the server-side nothing’s wrong. The **`/logs/report_js_error`** contains only `OK` which gives a syntax error. See screenshot below.

 ![2017-09-07-143450_1138x621](https://global.discourse-cdn.com/meta/original/3X/a/5/a549909659eea9246fb67d5f3bfa289dd50f7fa9.png)

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [September 7, 2017, 12:45pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/2 "2017-09-07T12:45:57Z")

</div>

`fatal: destination path 'discourse-presence' already exists and is not an empty directory.`

So I guess I have to remove mention of this plugin…

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 7, 2017, 12:46pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/3 "2017-09-07T12:46:55Z")

</div>

> [@hellekin](#):
>
> Should I remove it from the list?

Yes, discourse-presence is now part of core, so you need to remove the line from your app.yml file

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [September 7, 2017, 1:07pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/4 "2017-09-07T13:07:25Z")

</div>

Indeed, while you replied I went:

```plaintext
cd /var/discourse
./launcher start web
./launcher enter web
cd plugins
mv discourse-presence/ discourse-presence-legacy
^D
./launcher rebuild web

```

The rebuild continued, but the error was still there. Having the legacy code in the way caused problem.

So I removed the line entirely as you suggested, and it’s rebuilding now…

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [September 7, 2017, 1:22pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/5 "2017-09-07T13:22:51Z")

</div>

No luck… It looks like a bug…

> [@hellekin](#):
>
> The /logs/report\_js\_error contains only OK which gives a syntax error.

What is the purpose of this file? Does this syntax error come before or after another error?

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [September 7, 2017, 2:10pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/6 "2017-09-07T14:10:18Z")

</div>

rebuild from `master`: works.

Still have an error though in the console:

 ![2017-09-07-161259_544x104](https://global.discourse-cdn.com/meta/original/3X/6/5/659213c145bb5f752b60125d0feb82c0902b041c.png)

---

<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: [September 7, 2017, 2:27pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/7 "2017-09-07T14:27:25Z")

</div>

You need to remove it from app.yml.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 7, 2017, 3:10pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/8 "2017-09-07T15:10:32Z")

</div>

> [@hellekin](#):
>
> Still have an error though in the console:

Is this the console on the `/admin/upgrade` page? If so you may have hit this issue:

[https://meta.discourse.org/t/fatal-js-error-breaking-admin-upgrade-page/69559?u=david\_taylor](https://meta.discourse.org/t/fatal-js-error-breaking-admin-upgrade-page/69559)

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [September 7, 2017, 3:44pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/9 "2017-09-07T15:44:57Z")

</div>

> [@david](#):
>
> Is this the console on the /admin/upgrade page?

No it’s the console on any page, running the master branch at [PERF: Remove `Object#present?` check introduced in https://github.com… · discourse/discourse@58321d0 · GitHub](https://github.com/discourse/discourse/commit/58321d0783b29d5fbac92eb4404d4d63616c407a) (the one after your fix to that bug you mention.)

[Commits · discourse/discourse · GitHub](https://github.com/discourse/discourse/commits/master) still mentions the build failing… I’m going to wait until `test-passed` includes your fix to revert to that branch.

---

<div class="post-metadata">

### Author: ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)
#### Post date: [September 7, 2017, 3:47pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/10 "2017-09-07T15:47:28Z")

</div>

If the `Discourse.markdown` error is on every page then maybe it’s not the same issue. What plugins do you have installed?

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [September 7, 2017, 4:16pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/11 "2017-09-07T16:16:04Z")

</div>

OK, thanks for your interest @david, but I guess it’s a different topic. I resolved the blank page issue by switching to the `master` branch that includes your reverts. Now, on the `master` branch, there’s still this Markdown issue that doesn’t seem to affect much of the site use.

Since you asked, here’s my list of plugins:

```plaintext
hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - mkdir -p plugins
          - git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/discourse-spoiler-alert.git
          - git clone https://github.com/discourse/discourse-voting.git
          - git clone https://github.com/discourse/discourse-solved.git
          - git clone https://github.com/discourse/discourse-assign.git
          - git clone https://github.com/lidel/discourse-openstreetmap.git

```

I suppose the last one is the culprit since the others are official.

---

<div class="post-metadata">

### Author: ![Mittineague](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mittineague/32/114259_2.png) [@Mittineague](https://meta.discourse.org/u/Mittineague)
#### Post date: [September 7, 2017, 7:47pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/12 "2017-09-07T19:47:16Z")

</div>

> [@hellekin](#):
>
> I suppose the last one is the culprit since the others are official.

That is a good supposition.

> Latest commit ca8318b on Mar 14, 2015

Much has changed since then.

@lidel

---

<div class="post-metadata">

### Author: ![hellekin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/hellekin/32/51636_2.png) [@hellekin](https://meta.discourse.org/u/hellekin)
#### Post date: [September 9, 2017, 6:44pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/13 "2017-09-09T18:44:04Z")

</div>

Today I switched back to `tests-passed` from `master` and all is working again. I suspect the patch @david was mentioning in [response #8](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/8?u=hellekin) was causing the blank page. [All izz well](https://www.youtube.com/watch?v=S-LltgOtFSg) now.

---

<div class="post-metadata">

### Author: ![sbernhard](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sbernhard/32/208186_2.png) [@sbernhard](https://meta.discourse.org/u/sbernhard)
#### Post date: [December 25, 2020, 12:09am UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/14 "2020-12-25T00:09:04Z")

</div>

The same happens because of a issue in discourse-encrypt (debounce). See [DEV: Use the new discourseDebounce function wrapper. (#54) · discourse/discourse-encrypt@cf8f995 · GitHub](https://github.com/discourse/discourse-encrypt/commit/cf8f995689d336ff9cd8fd375c9fdc11ece3fcca)  
I guess you need to pick an older version of discourse-encrypt in 2.6

---

<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: [June 8, 2024, 12:36pm UTC](https://meta.discourse.org/t/blank-page-after-upgrade-and-javascript-error/69548/15 "2024-06-08T12:36:58Z")

</div>

This topic was automatically closed after 2465 days. New replies are no longer allowed.
