Hello, I have a project where I’m using a docker-compose to start a Postgres instance, parse-server, and parse-dashboard. I want to build parse-server from the Dockerfile within the parse server’s source code .
The service comes up, however, I would get the error - Server not reachable: unauthorized: master key is required
when trying to connect to the server from parse-dashboard. When I switched to the image from DockerHub , the server was connected without any issue.
It seems to me that the dockerfile from the source code is building an older version of parse-server. For the project, I need to build the parse-server service from the dockerfile in source code rather than pulling the image from DockerHub.
I’m using GitHub actions, which checks-out the repo and builds/pushes the image. Any suggestions/help on how I could build the image with the most recent version of parse-platform through GitHub actions would be so appreciated.
Please refer to the link below
opened 03:51AM - 06 Feb 23 UTC
bounty:$5
type:docs
### New Issue Checklist
<!--
Check every following box [x] before submitti… ng your issue.
Click the "Preview" tab for better readability.
Thanks for contributing to Parse Platform!
-->
- [x] I am not disclosing a [vulnerability](https://github.com/parse-community/parse-server/blob/master/SECURITY.md).
- [x] I am not just asking a [question](https://github.com/parse-community/.github/blob/master/SUPPORT.md).
- [x] I have searched through [existing issues](https://github.com/parse-community/parse-dashboard/issues?q=is%3Aissue).
- [x] I can reproduce the issue with the latest versions of [Parse Server](https://github.com/parse-community/parse-server/releases) and [Parse Dashboard](https://github.com/parse-community/parse-dashboard/releases).
### Issue Description
Parse Dashboard not connecting Parse Server (err: master key is required)
### Steps to reproduce
```
docker run --name parse-mongo-db -e MONGO_INITDB_ROOT_USERNAME=admin -e MONGO_INITDB_ROOT_PASSWORD=password -p 27017:27017 -d mongo
docker run --name parse-server -e PARSE_SERVER_APPLICATION_ID=myapp -e PARSE_SERVER_MASTER_KEY=master_key -e PARSE_SERVER_DATABASE_URI=mongodb://admin:password@mongo/parse_server?authSource=admin --link parse-mongo-db:mongo -p 1337:1337 -d parseplatform/parse-server
cat > /tmp/config.json << EOF
{
"apps": [
{
"serverURL": "http://localhost:1337/parse",
"appId": "myapp",
"masterKey": "master_key",
"appName": "myapp",
"masterKeyIps": ["127.0.0.1"]
}
],
"users": [
{
"user":"admin",
"pass":"password",
"apps": [{"appId": "myapp", "readOnly": false}]
}
]
}
EOF
docker run --name parse-dashboard -e PARSE_DASHBOARD_ALLOW_INSECURE_HTTP=true --link parse-server:parse-server -p 4040:4040 -v /tmp/config.json:/src/Parse-Dashboard/parse-dashboard-config.json -d parseplatform/parse-dashboard
```
### Actual Outcome
<img width="1033" alt="Screen Shot 2023-02-05 at 7 45 02 PM" src="https://user-images.githubusercontent.com/5901104/216879288-a3bd1541-8fe0-42ed-aafc-d8406bb9141d.png">
### Expected Outcome
Successful Login
### Environment
```
$ docker images
parseplatform/parse-server latest 7c5539478f9a 6 days ago 262MB
parseplatform/parse-dashboard latest ba8bd5083493 3 months ago 361MB
mongo latest a440572ac3c1 3 days ago 639MB
```
Dashboard
- Parse Dashboard version: ba8bd5083493
- Browser (Safari, Chrome, Firefox, Edge, etc.): All
- Browser version: NA
Server
- Parse Server version: 7c5539478f9a
- Operating system: MacOS
- Local or remote host (AWS, Azure, Google Cloud, Heroku, Digital Ocean, etc): Local
Database
- System (MongoDB or Postgres): Mongo
- Database version: a440572ac3c1
- Local or remote host (MongoDB Atlas, mLab, AWS, Azure, Google Cloud, etc): Local
### Logs
```
Failed to load resource: the server responded with a status of 403 (Forbidden)
```
on browser ^