rustprooflabs / pgosm-flex

PgOSM Flex provides high quality OpenStreetMap datasets in PostGIS (Postgres) using the osm2pgsql Flex output.
MIT License
100 stars 20 forks source link

Error: [Errno -2] Name or service not known #382

Closed jmealo closed 4 months ago

jmealo commented 4 months ago

latest

Docker image

What operating system, osm2pgsql, and PostgreSQL/PostGIS versions are you using?

Using Docker.

What did you do exactly?

Followed the quick start guide.

What did you expect to happen?

Expect it to work

What did happen instead?

2024-05-14 07:39:04,396:INFO:pgosm-flex:pgosm_flex:PgOSM Flex starting...
2024-05-14 07:39:04,396:INFO:pgosm-flex:helpers:SRID set: 4326
2024-05-14 07:39:04,396:INFO:pgosm-flex:db:Checking for Postgres service to be available
2024-05-14 07:39:04,396:INFO:pgosm-flex:db:Connecting to Postgres using role "pgosm_flex" on host  "localhost:5432"  in database "pgosm"
2024-05-14 07:39:07,405:ERROR:pgosm-flex:db:Database connection error. Error: [Errno -2] Name or service not known
2024-05-14 07:39:07,406:WARNING:pgosm-flex:db:Error checking version, likely waiting for Postgres to start. Only an error if it does not go away after a few attempts.
2024-05-14 07:39:10,409:ERROR:pgosm-flex:db:Database connection error. Error: [Errno -2] Name or service not known
2024-05-14 07:39:10,409:WARNING:pgosm-flex:db:Error checking version, likely waiting for Postgres to start. Only an error if it does not go away after a few attempts.

What did you do to try analyzing the problem?

Possibly related to #381

jmealo commented 4 months ago

I tried with 0.6.1 and I get a different error (for both localhost and 192.168.1.93): 2024-05-14 07:49:05,004:ERROR:pgosm-flex:db:Database connection error. Error: connection is bad: Name or service not known

jmealo commented 4 months ago

@rustprooflabs This is actually due to having special characters in the postgres password, so I'm guessing this is actually an issue building out the connection string.

jmealo commented 4 months ago

Replaced with #383