openstreetmap-tile-server icon indicating copy to clipboard operation
openstreetmap-tile-server copied to clipboard

initdb: error: could not access directory "/data/database/postgres": Permission denied

Open Maypul opened this issue 3 years ago • 1 comments

Hello! I have been trying to set up OpenStreetMap in docker but I have encountered issue with permissions. Using the latest docker image: https://prnt.sc/MyjjSfqaBrjH No matter what I do, it always fails at creating postgres database. I have tried setting volume permissions, chowning root etc, the image creates postgres directory at specified location (Data) with unix user 100 and unix group 103 and then errors out. Running docker on synology DSM 7

Example commands I have tried to run: docker run -v /volume1/Docker/OpenStreetMap/PBF/antarctica-latest.osm.pbf:/data/region.osm.pbf -v /volume1/Docker/openstreetmap/data:/data/database/ overv/openstreetmap-tile-server import

docker run -e DOWNLOAD_PBF=https://download.geofabrik.de/europe/luxembourg-latest.osm.pbf -e DOWNLOAD_POLY=https://download.geofabrik.de/europe/luxembourg.poly -v /volume1/Docker/openstreetmap/data:/data/database/ overv/openstreetmap-tile-server import

Maypul avatar Nov 27 '22 13:11 Maypul

+1

navidkhalilian avatar Dec 10 '22 13:12 navidkhalilian