Description
Hello!
i install parse-dashboard and parse-server on ubuntu server according to Deploying on AWS EC2 Ubuntu using PostgreSQL.then, parse-dashboard works well.
Then i install parse-server from source code and run npm start -- --appId UE7SmtidKby874Q8l2Vaq0FWFu5k6lcUiPisAEnV --masterKey BOyE27IdB8GKT0Jw5nTUmqoSWDfBAdc6PCOwCwqM --databaseURI postgres://postgres:[email protected]:5432/postgres --serverURL http://192.168.101.5:1337/parse
on windows, parse-server startup without any error.
But when i restart parse-dashboard and login,the parse-server from source show one Error:
Error: unauthorized: master key is required
at promiseEnforceMasterKeyAccess (C:\...\parse-server\lib\middlewares.js:450:19)
at C:\...\parse-server\lib\PromiseRouter.js:85:20
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
and the page of parse-dashboard show: Server not reachable: unauthorized: master key is required
there are json files:
parse-dashboard-config.json on ubuntu server
{
"apps": [
{
"serverURL": "http://192.168.101.104:1337/parse",
"graphQLServerURL": "http://192.168.101.104:1337/graphql",
"appId": "01",
"masterKey": "12345678",
"appName": "parse-server-app",
"allowInsecureHTTP": "true",
"iconName": "",
"primaryBackgroundColor": "",
"secondaryBackgroundColor": ""
},
{
"serverURL": "http://192.168.101.5:1337/parse",
"graphQLServerURL": "http://192.168.101.5:1337/graphql",
"appId": "UE7SmtidKby874Q8l2Vaq0FWFu5k6lcUiPisAEnV",
"masterKey": "BOyE27IdB8GKT0Jw5nTUmqoSWDfBAdc6PCOwCwqM",
"appName": "parse-server-from-source",
"allowInsecureHTTP": "true",
"iconName": "",
"primaryBackgroundColor": "",
"secondaryBackgroundColor": ""
}
],
"users": [{
"user": "admin",
"pass": "123456",
"apps": [{"appId": "01"},{"appId": "UE7SmtidKby874Q8l2Vaq0FWFu5k6lcUiPisAEnV"}]
}],
"iconsFolder": "public",
"trustProxy": 1
}
config.json on ubuntu server
{
"serverURL": "http://192.168.101.104:1337/parse",
"appId": "01",
"masterKey": "12345678",
"appName": "parse-server-app",
"cloud": "./cloud/main",
"databaseURI": "postgres://postgres:123456@localhost:5432/postgres"
}
config.json from source on windows,(maybe it doesnt work)
{
"serverURL": "http://192.168.101.5:1337/parse",
"appId": "UE7SmtidKby874Q8l2Vaq0FWFu5k6lcUiPisAEnV",
"masterKey": "BOyE27IdB8GKT0Jw5nTUmqoSWDfBAdc6PCOwCwqM",
"appName": "parse-server-from-source",
"cloud": "./cloud/main",
"databaseURI": "postgres://postgres:[email protected]:5432/postgres"
}