hello, i am trying to setup parse server and i am getting this issue:
docker run --name sync-server -v cloud-code-vol:/sync-config/cloud -v config-vol:/sync-config/config -p 1337:1337 -d sync-server --appId appid --masterKey ***REDACTED*** --databaseURI postgres://sync:123456@localhost/sync-serve
r
cacheMaxSize: 10000
cacheTTL: 5000
customPages: {}
databaseURI: postgres://sync:123456@localhost/sync-server
enableAnonymousUsers: true
expireInactiveSessions: true
graphQLPath: /graphql
host: localhost
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
verifyUserEmails: false
jsonLogs: false
verbose: false
level: undefined
serverURL: http://localhost:1337/parse
[1] parse-server running on http://localhost:1337/parse
Error: connect ECONNREFUSED 127.0.0.1:5432
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5432
}
WARNING, Unable to connect to 'http://localhost:1337/parse'. Cloud code and push notifications may be unavailable!
warn: Unable to ensure uniqueness for usernames: connect ECONNREFUSED 127.0.0.1:5432 {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5432,"stack":"Error: connect ECONNREFUSED 127.0.0.1:5432\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)"}
warn: Unable to create case insensitive username index: connect ECONNREFUSED 127.0.0.1:5432 {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5432,"stack":"Error: connect ECONNREFUSED 127.0.0.1:5432\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)"}
warn: Unable to ensure uniqueness for user email addresses: connect ECONNREFUSED 127.0.0.1:5432 {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5432,"stack":"Error: connect ECONNREFUSED 127.0.0.1:5432\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)"}
warn: Unable to create case insensitive email index: connect ECONNREFUSED 127.0.0.1:5432 {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5432,"stack":"Error: connect ECONNREFUSED 127.0.0.1:5432\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)"}
warn: Unable to ensure uniqueness for role name: connect ECONNREFUSED 127.0.0.1:5432 {"errno":"ECONNREFUSED","code":"ECONNREFUSED","syscall":"connect","address":"127.0.0.1","port":5432,"stack":"Error: connect ECONNREFUSED 127.0.0.1:5432\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16)"}
Error: connect ECONNREFUSED 127.0.0.1:5432
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1141:16) {
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 5432
}
i can do psql postgres://sync:123456@localhost/sync-server and will connect to the DB.
if someone can give me some tips thank you.