Parse-dashboard: parse dashboard: You don't have any apps

Created on 23 Sep 2016  路  2Comments  路  Source: parse-community/parse-dashboard

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.

  • Where/How is the dashboard looking for running apps?
  • What log files can I look at in order to troubleshoot?
  • What else can I do to debug this?

dashboard screenshot: http://i.stack.imgur.com/fbVNN.png

wontfix

Most helpful comment

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.

All 2 comments

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.

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Was this page helpful?
0 / 5 - 0 ratings