parse-platformparse-server

parse dashboard error: You don't have any apps


I have created my own instance of parse-server and parse-dashboard. The parse server is working correctly as I can read and write entries remotely via curl.

When I open the dashboard in my browser http://192.168.2.28:4040/apps, it will then ask for a username and password, which I have configured. After a successful login, I see the error message: You don't have any apps. However, parse dashboard should see one app running, named testerdb. I believe I have something misconfigured, but am unsure of what this could be.

To start my parse server I am running this bash script:

APPID="appid123456"
MASTERKEY="masterkey654321"
DBURI="mongodb://127.0.0.1:27017/testerdb?ssl=false"
APPNAME="testerdb"

parse-server --verbose --appId ${APPID} --masterKey ${MASTERKEY} --appName ${APPNAME} --databaseURI ${DBURI}

Again, I am able to successfully read/write to the parse app via curl.

To start the dashboard I am running:

DASH=/lib/node_modules/parse-dashboard/Parse-Dashboard/parse-dashboard-config.json
parse-dashboard --config ${DASH} --allowInsecureHTTP=1

The allowInsecureHTTP won't be used in production. I am simply using it to help troubleshoot.

This is my parse-dashboard-config.json:

{
  "apps": [{
    "serverURL": "http://localhost:1337/parse",
    "appId": "appid123456",
    "masterKey": "masterkey654321",
    "appName": "testerdb"
  }],
  "users": [{
    "user":"jftuga",
    "pass":"xyz789",
    "apps": [{"appId1": "appid123456"}]
  }]
}

Both bash scripts are running as the parse user. In the browser, there are no javascript console messages. In my parse-server.info log file (for parse-server) it does not appear that any parse-dashboard processes are accessing the app. I am also accessing the dashboard from another computer on the same LAN.

dashboard screenshot


Solution

  • There were 2 problems with the above configuration.

    Issue 1

    My parse-dashboard-config.json was located in /lib/node_modules/parse-dashboard/Parse-Dashboard but actually needed to be in /lib/node_modules/parse-dashboard/Parse-Dashboard/public. Notice the /public at the end.

    Issue 2

    The line:

    "serverURL": "http://localhost:1337/parse",
    

    needs to be:

    "serverURL": "http://192.168.1.28:1337/parse",
    

    as this URL will be accessed by the browser's Javascript code. Therefore, it needs to be an externally accessible IP address.