Closed RobinKamps closed 4 years ago
Frankly I have no Idea what you are trying to do.
I tried to run the tile server via docker on win10.
Following the docker installation doc
the above errors occurred on docker-compose up import
Where did you get the Information from that this is running on Windows at all? Despite running this fork which has never even been tested on Windows? I consider this issue of-topic here.
Thank you for your very fast response - it will run in production on Linux anyways. However - i found a solution.
The main issue was that postgres db had a timeout:
import_1 | Waiting for PostgreSQL to be running
import_1 | Timeout while waiting for PostgreSQL to be running
import_1 | psql: could not translate host name "db" to address: No address associated with hostname
import_1 | createdb: could not connect to database template1: could not translate host name "db" to address: No address associated with hostname
import_1 | osm2pgsql version 1.2.2 (64 bit id space)
import_1 |
import_1 | Osm2pgsql failed due to ERROR: Usage error. For further information see:
import_1 | osm2pgsql -h|--help
import_1 |
import_1 | /usr/bin/env: 'python3\r': No such file or directory
Adding - POSTGRES_HOST_AUTH_METHOD=trust
to the environment for service db
and adding
restart: always
to service import
in docker-compose fixed this issue for me on win10.
Links and screenshots illustrating the problem
PostgreSQL / python3 error on win10 machine full docker output for executing
docker-compose up import