ConnectionError: getaddrinfo ENOTFOUND postgres
at Object.createConnection (/usr/odk/node_modules/slonik/dist/src/factories/createConnection.js:54:23)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
2. What app or server are you using and on what device and operating system? Include version numbers.
Ubuntu 20
Hi @sowe1! I'm not sure that ODK Central is currently compatible with what you're trying to achieve, but I wanted to ask more questions about your setup.
What version of ODK Central are you running? Based on your default.json, it looks like you're running one of the v1.3 versions. I ask because we made some improvements from v1.2 to v1.3 related to configuring custom database servers. See the forum topic about the v1.3 release for more information. (Note that we still need to document some of those changes.)
It's possible that your database configuration doesn't match what Central is expecting. It sounds like you stubbed out host in the default.json you uploaded here. Did you stub out other values? If so, what format do they follow? Do they contain non-alphanumeric characters?
Are you specifying a port? If so, that should be done by adding a separate port configuration.
Hi @Matthew_White !,
I'm use the last version ( master branch the last Friday the tag version is v1.3.3 ) and the docker-compose version is version: "3" . Maybe i'm worng but is the last version.
About the database configuration i'm guss is correct
"database": {
"host": "postgresqldb", # this is an alias, but in my / etc / hosts there is the name of the map's IP address and I also put the ip address directly in the file.
"user": "odkuser",
"password": "odkpass",
"database": "odkpass"
}
...
When you said
"Are you specifying a port? If so, that should be done by adding a separate port configuration." ,you are referring to add another tag with the port or add the port in the host key
"database": {
"host": "postgresqldb", # this is an alias, but in my / etc / hosts there is the name of the map's IP address and I also put the ip address directly in the file.
"user": "odkuser",
"password": "odkpass",
"database": "odkpass",
"port":5432
}
...
or
"database": {
"host": "postgresqldb:5432", # this is an alias, but in my / etc / hosts there is the name of the map's IP address and I also put the ip address directly in the file.
"user": "odkuser",
"password": "odkpass",
"database": "odkpass"
}
...