# Mender Dashboard is blank on upgrading

**URL:** <https://hub.mender.io/t/mender-dashboard-is-blank-on-upgrading/3022>\
**Category:** General Discussions\
**Tags:** mender, mender-server\
**Created:** [December 23, 2020, 4:47am UTC](https://hub.mender.io/t/mender-dashboard-is-blank-on-upgrading/3022 "2020-12-23T04:47:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![vishruti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vishruti](https://hub.mender.io/u/vishruti)\
**Post date:** [December 23, 2020, 4:47am UTC](https://hub.mender.io/t/mender-dashboard-is-blank-on-upgrading/3022/1 "2020-12-23T04:47:53Z")

</div>

I am using Mender Production Server. The server configurations were as follows  
mongo version: 3.6  
mender version: 2.4  
I used following link to upgrade the server

> **[Upgrading | Mender documentation](https://docs.mender.io/2.5/server-installation/upgrading)**

and after upgrading the server the updated version is as follows  
mongo: 4.4  
mender version: 2.5  
I received no errors during the upgrading, but after starting the server there is no dashboard it’s a blank white page. I am not able to understand the cause of this issue.  
I am attaching few snapshots which might help you to understand the cause.  
As you can refer to the left side of the ui\_output image, the complete screen is just blank no dashboard at all.  
Please let me know if I am missing something here.

 ![docker_ps_output](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/101bc1f963580037c634d3006843270daa50977a.png) ![run_command](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/14dd2c731db11962a56d723c5976b710eca595df.png) ![ui_output](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/1X/9832ee3c8cc4ea783d8b790d843f7ab05b8de27f.png)

---

<div class="post-metadata">

**Author:** ![alfrunes](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/alfrunes/32/703_2.png) [@alfrunes](https://hub.mender.io/u/alfrunes)\
**Post date:** [January 4, 2021, 12:48pm UTC](https://hub.mender.io/t/mender-dashboard-is-blank-on-upgrading/3022/2 "2021-01-04T12:48:41Z")

</div>

Hi @vishruti

It looks like you have a syntax error in the gui container’s env.js file (the second error is a consequence of the first one). Have you overwritten the Docker [entrypoint](https://github.com/mendersoftware/gui/blob/2.5.x/entrypoint.sh) for the gui container in your production setup?

---

<div class="post-metadata">

**Author:** ![vishruti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vishruti](https://hub.mender.io/u/vishruti)\
**Post date:** [January 4, 2021, 1:53pm UTC](https://hub.mender.io/t/mender-dashboard-is-blank-on-upgrading/3022/3 "2021-01-04T13:53:57Z")

</div>

Hi @alfrunes, I don’t recall overwriting an entrypoint for gui container. I followed the exact same steps as per the documentation.  
Can you please let me know the steps I need to follow to resolve this issue.

---

<div class="post-metadata">

**Author:** ![alfrunes](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/alfrunes/32/703_2.png) [@alfrunes](https://hub.mender.io/u/alfrunes)\
**Post date:** [January 4, 2021, 3:00pm UTC](https://hub.mender.io/t/mender-dashboard-is-blank-on-upgrading/3022/4 "2021-01-04T15:00:25Z")

</div>

I’m not able to reproduce this error locally. Can you inspect the syntax error in the `env.js` file? You can click the hyperlink from the debug console or run `docker exec menderproduction_mender-gui_1 cat env.js`.  
If I replicated your environment correctly, it should look something along the lines of:

```auto
  mender_environment = {
    hostAddress: "<YOUR_GATEWAY_IP_ADDRESS>",
    hostedAnnouncement: "",
    isDemoMode: "",
    features: {
      hasMultitenancy: "",
      isEnterprise: "",
      isHosted: ""
    },
    trackerCode: "",
    recaptchaSiteKey: "",
    stripeAPIKey: "",
    integrationVersion: "2.5.0",
    menderVersion: "2.4.x",
    menderArtifactVersion: "3.4.x",
    menderDebPackageVersion: "2.4.x",
    metaMenderVersion: "",
    services: {
      deploymentsVersion: "",
      deviceauthVersion: "",
      guiVersion: "2.5.x_9282911a3cff7e60098436f75e4cab968bd898a4",
      inventoryVersion: ""
    },
    demoArtifactPort: "",
    disableOnboarding: ""
  }

```

---

<div class="post-metadata">

**Author:** ![vishruti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vishruti](https://hub.mender.io/u/vishruti)\
**Post date:** [January 11, 2021, 4:50am UTC](https://hub.mender.io/t/mender-dashboard-is-blank-on-upgrading/3022/5 "2021-01-11T04:50:43Z")

</div>

Hi @alfrunes, I checked the env.js file. The host address is not the public IP of my server.  
I have attached a snapshot for the same.  
I am not able to login to the container as it is in exited state.  
please let me know how can I change this IP address as per the public Ip of my server

 ![envjs](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/4/406514c0b2f7aca29ab7847f7d7d95b8013ff18e.png)

---

<div class="post-metadata">

**Author:** ![vishruti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vishruti](https://hub.mender.io/u/vishruti)\
**Post date:** [January 11, 2021, 6:20am UTC](https://hub.mender.io/t/mender-dashboard-is-blank-on-upgrading/3022/6 "2021-01-11T06:20:12Z")

</div>

I have changed the ip as per my server’s public IP and on reloading the site I get following error and the dashbord is blank as well

 ![userReducerjs](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/b/b4beb8a12ba669a48dca3e3c859f03e33a94fa8f.png)

---

<div class="post-metadata">

**Author:** ![alfrunes](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/alfrunes/32/703_2.png) [@alfrunes](https://hub.mender.io/u/alfrunes)\
**Post date:** [January 11, 2021, 4:23pm UTC](https://hub.mender.io/t/mender-dashboard-is-blank-on-upgrading/3022/7 "2021-01-11T16:23:35Z")

</div>

As you can see there is a syntax error on line 14 and 17. Somehow the environment variable setting these two values ([MENDER\_VERSION](https://github.com/mendersoftware/integration/blob/master/production/run#L11)) is assigned the string “2.3.0\n2.4.0”. It might be that a merge conflict to the integration repository has introduced an error to [integration/docker-compose.client.yml](https://github.com/mendersoftware/integration/blob/master/docker-compose.client.yml) could you make sure that the file matches that of [upstream](https://github.com/mendersoftware/integration/blob/master/docker-compose.client.yml)?  
If not, check it out from upstream:

```bash
## Enter the root of your integration repository:
#cd /path/to/integration
git fetch origin --tags
git checkout refs/tags/2.5.0 docker-compose.client.yml

```

---

<div class="post-metadata">

**Author:** ![vishruti](https://avatars.discourse-cdn.com/v4/letter/v/bc8723/32.png) [@vishruti](https://hub.mender.io/u/vishruti)\
**Post date:** [January 12, 2021, 4:24am UTC](https://hub.mender.io/t/mender-dashboard-is-blank-on-upgrading/3022/8 "2021-01-12T04:24:32Z")

</div>

Hi @alfrunes , the issue has been resolved.  
Thank you.
