helvalius / nominatim-docker Goto Github PK
View Code? Open in Web Editor NEWThis project forked from nisaacson/nominatim-docker
Standalone nominatim server in a docker container
This project forked from nisaacson/nominatim-docker
Standalone nominatim server in a docker container
Currently, the base OSM PBF file is hardcoded with a wget. One approach to make it more flexible would be to extract the downloading of the image and integrate a volume from the host system where the data.pbf should be located. Afterwards, one would need to download the pbf manually.
Trying to build fails on step 33 (RUN service postgresql start && sudo -u nominatim ./utils/setup.php --osm-file /app/data.pbf --all --threads 2) with the following error:
PHP Fatal error: Call to undefined method DB_Error::PEAR_Error() in /usr/share/php/DB.php on line 966
Hello,
I'm trying to get a local Nominatim instance with all France data. When I use your Dockerfile verbatim, all goes well: build is OK, I'm able to run the container, and so on.
But when I replace Monaco data With France ones; I got the following output:
CREATE INDEX
CREATE INDEX
Setup finished.
ApplyLayer exit status 1 stdout: stderr: write /var/lib/postgresql/9.3/main/base/24576/27371.7: read-only file system
The only thing that changes between those 2 tests is the URL used for the wget (http://download.geofabrik.de/europe/france-latest.osm.pbf). Do you have any idea what could be wrong?
Thank you!
Just a precision: the build runs for 36 hours before failing...
Nominatim needs a country grid file for initial install, else fails with
Error: you need to download the country_osm_grid first: wget -O /app/git/data/country_osm_grid.sql.gz http://www.nominatim.org/data/ The command '/bin/sh -c sudo -u postgres /usr/lib/postgresql/9.3/bin/pg_ctl star hreads 2' returned a non-zero code: 1
Fixed in PR #22.
Hi, thanks for your docker container. It makes nominatim's hosting very easy.
A small improvement to improve deployment would be using environment variables instead of hardcoded values in the local.php file. In case you are not running it on localhost for example.
Hi,
I'm completely new here. I installed the docker according to your documentation.
It looks everything went well until I try to run it with the browser. I get:
You don't have permission to access / on this server.
In the log file I see:
[Fri Jun 17 17:40:14.417065 2016] [autoindex:error] [pid 162] [client 172.17.0.1:36688] AH01276: Cannot serve directory /var/www/nominatim/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm) found, and server-generated directory index forbidden by Options directive
When I check the /var/www directory there is no nominatim directory whatsoever.
This is what I see at the installation (might be of interest):
`Step 38 : RUN service apache2 start && a2ensite 400-nominatim.conf && /etc/init.d/apache2 reload
---> Running in 8deadba22701
Hopefully you know what is going on,
Frank
Great project for getting things up and running quickly!
I got this error message when running docker build -t nomination .
Step 24 : RUN ./autogen.sh
---> Running in 8331e56df6ed
/bin/sh: 1: ./autogen.sh: not found
The command '/bin/sh -c ./autogen.sh' returned a non-zero code: 127
This is because Nominatim has moved from automake to cmake in their git repos.
I changed from git clone
and instead used wget to get the 2.5.0 tar release instead. Perhaps you wanna update your Dockerfile with either that, or change to cmake.
Thanks!
Thanx for it. Can I use this for RHEL 6? Or it is just useful for Ubuntu
There are two error, can I add wikipea data?
WARNING: wikipedia article dump file not found - places will have default importance
WARNING: wikipedia redirect dump file not found - some place importance values may be missing
I have this issue with both boot2docker and docker on ubuntu
puntonim/docker-postgresql93#2
After the container is built and started, going to search.php throws a 500 error. From the error log, I have found
PHP Fatal error: Uncaught Error: Class 'Transliterator' not found in /srv/nominatim/Nominatim/lib/Geocode.php:922\nStack trace:\n#0 /srv/nominatim/Nominatim/build/website/search.php(94): Nominatim\\Geocode->lookup()\n#1 {main}\n thrown in /srv/nominatim/Nominatim/lib/Geocode.php on line 922,
Apparently this was a known issue in Nominatim: osm-search/Nominatim#747
Fixed by PR #23
When I was building image in Step 25:
RUN sudo service postgresql start && sudo -u postgres psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='nominatim'" | grep -q 1 || sudo -u postgres createuser -s nominatim && sudo -u postgres psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='www-data'" | grep -q 1 || sudo -u postgres createuser -SDR www-data && sudo -u postgres psql postgres -c "DROP DATABASE IF EXISTS nominatim"
I got this error message:
---> Running in 0af981cb65f6
* Starting PostgreSQL 9.3 database server
...done.
psql: FATAL: the database system is starting up
createuser: could not connect to database postgres: FATAL: the database system is starting up
createuser: could not connect to database postgres: FATAL: the database system is starting up
The command '/bin/sh -c sudo service postgresql start && sudo -u postgres psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='nominatim'" | grep -q 1 || sudo -u postgres createuser -s nominatim && sudo -u postgres psql postgres -tAc "SELECT 1 FROM pg_roles WHERE rolname='www-data'" | grep -q 1 || sudo -u postgres createuser -SDR www-data && sudo -u postgres psql postgres -c "DROP DATABASE IF EXISTS nominatim"' returned a non-zero code: 1
2019-11-06 19:43:53 UTC FATAL: database "nominatim" does not exist
2019-11-06 19:43:53 == Setup DB
Postgres version found: 9.03
Postgis version found: 2.1
Minimum required Postgis version 2.2
The command '/bin/sh -c sudo -u postgres /usr/lib/postgresql/9.3/bin/pg_ctl start -w -D /etc/postgresql/9.3/main/ && sudo -u nominatim ./utils/setup.php --osm-file /app/data.pbf --all --threads 2' returned a non-zero code: 1
##[error]The command '/bin/sh -c sudo -u postgres /usr/lib/postgresql/9.3/bin/pg_ctl start -w -D /etc/postgresql/9.3/main/ && sudo -u nominatim ./utils/setup.php --osm-file /app/data.pbf --all --threads 2' returned a non-zero code: 1
##[error]/usr/bin/docker failed with return code: 1
Trying to build fails during Step 22 (RUN ./configure). I get the following:
debconf: delaying package configuration, since apt-utils is not installed
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
invoke-rc.d: policy-rc.d denied execution of restart.
checking for Expat XML Parser... no
configure: error: required library not found
configure: error: ./configure failed for osm2pgsql
The command '/bin/sh -c ./configure' returned a non-zero code: 1
(Quits out right here)
I get similar errors when trying to build other iterations of nominatim as well, however they are all slightly different, though all during the ./configure step.
Any thoughts on why this might be happening and how to resolve it?
Thanks!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.