Reputation: 476
I tried to import an .osm.pbf
file into a PostGIS database by using the kartoza/postgis dockerhub in windows. But I'm facing the error
opening database: opening db: ping Postgres DB: pq: unknown authentication response: 10
But the same credentials are working when I use the docker exec
command:
docker exec -it postgis psql postgres://docker:docker@<IP>/gis
Here is my config.json
file and located in app
directory
{
"cachedir": "./imposm_cache",
"diffdir": "./imposm_dif",
"connection": "postgres://docker:docker@<IP>:5432/gis",
"mapping": "app/mapping.yml",
"srid": 4326
}
Here is my shell script to run
imposm import -config app/config.json -read pbf-example/andorra-latest.osm.pbf -write -optimize
Please suggest to me how can I resolve this.
Upvotes: 4
Views: 12325
Reputation: 247515
You have to upgrade the PostgreSQL driver or library on the client side so that it supports the scram-sha-256
authentication method introduced in PostgreSQL v10.
Upvotes: 9