Closed mesmeric-fiend closed 3 years ago
Same here.
I got same error too
Same. Was anyone able to fix or get around this? Thanks.
The same with v3.4
Same error when running on ubuntu. But it works fine on mac os x.
I was able to get rid of the error by building the image (3.4) manually instead of pulling the image from docker hub
I was able to get rid of the error by building the image (3.4) manually instead of pulling the image from docker hub
The v3.4 uses postgres v11 The v3.5 uses postgres v12
Notice the : /var/lib/postgresql/VERSION/main
use : /var/lib/postgresql/11/main for nominatim 3.4
& /var/lib/postgresql/12/main for nominatim 3.5
docker run --restart=always -p 6432:5432 -p 7070:8080 -d --name nominatim -v /opt/osrm/src/map/postgresdata:/var/lib/postgresql/11/main nominatim bash /app/start.sh
We've changed quite a lot with the latest releases (3.6 & 3.7). You can check the latest version out and give us feedback, the problem should be fixed.
in ubuntu24 the same problem
原因是输入本机的路径,脚本却读取容器内的路径.即在Ubuntu的docker上存在file.pbf没有被正确挂载的问题
使用
sudo docker run -it \
-v $(pwd)/shanghai-latest.osm.pbf:/data/shanghai-latest.osm.pbf \
-e PBF_PATH=/data/shanghai-latest.osm.pbf \
-p 8080:8080 \
--name nominatim \
mediagis/nominatim:4.4
Failed to establish database connection:SQLSTATE[08006] [7] could not connect to server: No such file or directory Is the server running locally and accepting connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?
Full log of DB installation: