3

So, I am new to Android Studio. I'm following an online course step by step. I'm using ParseServer on AWS. I've managed to get my appId, etc. and can connect with a Java SSH Client directly from my browser. My app can successfully store information in the ParseServer, but I can't access the parse dashboard. When I try to it asks me to enter my username and password -- which I don't have.

I've found a file (in bitnami terminal) and I think that I should maybe make myself an account in here?

# /home/bitnami/apps/parse/.forever/config.json


{
  "root": "/opt/bitnami/apps/parse/.forever",
  "pidPath": "/opt/bitnami/apps/parse/.forever/pids",
  "sockPath": "/opt/bitnami/apps/parse/.forever/sock",
  "loglength": 100,
  "logstream": false,
  "columns": [
    "uid",
    "command",
    "script",
    "forever",
    "pid",
    "id",
    "logfile",
    "uptime"
  ]
}
Arthur Cinader
  • 1,547
  • 1
  • 12
  • 22
Audida
  • 124
  • 2
  • 12
  • We'll need to see how the dashboard was configured. Take a look at the readme for the dashboard: https://github.com/parse-community/parse-dashboard. If you search for "password" on that page, you'll see the various ways that the dashboard can be configured (either env vars or a json file.) Which one matches how you are setup? – Arthur Cinader Apr 08 '17 at 16:33
  • 1
    Thank you for your response, I've just edited. – Audida Apr 08 '17 at 18:24
  • @DDeex, that bitnami `.forever` directory is for a [process manager](https://github.com/foreverjs/forever) not the parse-dashboard. Did you solve your problem? – Arthur Cinader Apr 08 '17 at 21:34

2 Answers2

4

The issue lays with wherever you're instantiating the dashboard. For me, this is inside index.js.
var dashboard = new ParseDashboard({ "apps": [ { "serverURL": process.env.SERVER_URL, "appId": process.env.APP_ID, "masterKey": process.env.MASTER_KEY, "appName": process.env.APP_NAME, "javascriptKey": process.env.JS_KEY, } ], "users": [ { "user":<username>, "pass":<password> } ], "useEncryptedPasswords": true, //Requires Bcrypt encrypted passwords. Set to false if you want the explicit <password> plain text string to be your password) "trustProxy": 1 });

Jake T.
  • 4,308
  • 2
  • 20
  • 48
  • 1
    Thank you, i did that and rebooted my instance (on aws) of the server and now it works. :) – Audida Apr 16 '17 at 13:49
  • Happy to help! There's quite the learning curve to this stuff, was hard enough when it was all hosted by Parse. – Jake T. Apr 17 '17 at 15:38
  • index.js is part of the parse-server-example. If you didn't start from there, you would have needed to create your own kind of file, or it's whatever you pass into `node run`. index.js is just the standard / default. – Jake T. Jul 02 '18 at 14:48
  • Also, every node module pretty much has an index.js, which means if you do a project search for it you'll find tons. You need the highest level index.js, like there should be on in top level folder, next to the node_modules directory. – Jake T. Jul 02 '18 at 14:49
4

Thansk for answering my question!

The right answer is to find here: https://docs.bitnami.com/aws/faq/#how-to-find-application-credentials:

Username: user

Password: -> On EC2 / Amazon you must go this way: Instance Settings -> Get System Log -> Look for your password, which was given from system by setup

That's all!

myyvee
  • 95
  • 9