Trying to install Parse Server on a VPS with Ubuntu, but it fails

Hello,

I am new to server administration/development, and have access to a VPS running Ubuntu 22.04, which is just installed from scratch. Let’s say its IP is 82.165.123.218 (random value btw).

I am following the Parse Server Installation Guide, and more specifically the Deploying on AWS EC2 Ubuntu using PostgreSQL section, trying to run Parse server on it.

I have successfully installed node, npm, yarn, postgreSQL, and after installing parse-server and starting it, I am trying to access the server from outside, typing http://82.165.123.218:1337 in a web browser, but the request doesn’t succeed. Here is what I get in the terminal after the npm start command.

root@localhost:~/parse-server# npm start

> start
> parse-server config.json

Configuration loaded from /root/parse-server/config.json
(node:8913) Warning: Accessing non-existent property 'count' of module exports inside circular dependency
(Use `node --trace-warnings ...` to show where the warning was created)
(node:8913) Warning: Accessing non-existent property 'findOne' of module exports inside circular dependency
(node:8913) Warning: Accessing non-existent property 'remove' of module exports inside circular dependency
(node:8913) Warning: Accessing non-existent property 'updateOne' of module exports inside circular dependency
allowClientClassCreation: true
appId: myAppId
appName: MyParseApp
cacheMaxSize: 10000
cacheTTL: 5000
clientKey: myClientKey
cloud: ./cloud/main
customPages: {}
databaseURI: postgres://postgres:myPostgresPassword@localhost:5432/postgres
enableAnonymousUsers: true
expireInactiveSessions: true
graphQLPath: /graphql
host: 0.0.0.0
logsFolder: ./logs
masterKey: ***REDACTED***
masterKeyIps: []
maxUploadSize: 20mb
mountPath: /parse
objectIdSize: 10
playgroundPath: /playground
port: 1337
protectedFields: {"_User":{"*":["email"]}}
revokeSessionOnPasswordReset: true
schemaCacheTTL: 5000
sessionLength: 31536000
allowCustomObjectId: false
collectionPrefix: 
directAccess: false
enableExpressErrorHandler: false
enableSingleSchemaCache: false
mountGraphQL: false
mountPlayground: false
preserveFileName: false
preventLoginWithUnverifiedEmail: false
scheduledPush: false
skipMongoDBServer13732Workaround: false
verifyUserEmails: false
jsonLogs: false
verbose: false
level: undefined
serverURL: http://localhost:1337/parse

[8913] parse-server running on http://localhost:1337/parse

WARNING, Unable to connect to 'http://localhost:1337/parse'. Cloud code and push notifications may be unavailable!

Thank you for your help…

1 Like

Check your AWS Instance Inbound Settings and give permission to all IPs