Closed
Description
hello, I have mongoDB installed on AWS EC2 instance from where I am trying to connect Parse Server installed on my local pc. when I try to connect parse server to parse.com apps using their appid and masterkey it just works fine. but when I try to connect to my mongoDB instance on EC2 then it says "Server not reachable: unable to connect to server".
I already started the server using mongod command on the terminal.
I checked the securityGroup it is open to all requests.
I checked the database it exist with data in it.
I have the following code in configuration file to connect
{
"apps": [
{
"serverURL": "https://api.parse.com/1",
"appId": "TWxCk7***************************JZ32k3",
"masterKey": "S*********t3234*******************i",
"appName": "ParseServer"
},
{
"serverURL": "https://api.parse.com/1",
"appId": "x544******************4343************SPtRO",
"masterKey": "8B4******************Y32fkiiU782IL",
"appName": "ParseServer 2"
},
{
"serverURL": "http://dbuser:Password@ec2-**4-2**-**4-1*9.compute-1.amazonaws.com:27017/db",
"appId": "x544******************4343************SPtRO",
"masterKey": "8B4******************Y32fkiiU782IL",
"appName": "AWS"
}
]
}
Note: ParseServer2 and AWS apps have same key because the db on EC2 is migrated from it.
Help me please. thanks in advance