Giter Site home page Giter Site logo

nominatim-docker's People

Contributors

chatelao avatar helvalius avatar mayankchutani avatar nisaacson avatar pennersr avatar winsento avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

nominatim-docker's Issues

Building error: psql: FATAL: the database system is starting up

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

Extract PBF to Volume instead of hardcoded wget

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.

www is missing

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

  • Starting web server apache2
    AH00558: apache2: Could not reliably determine the server's fully qualified domain name, using 172.17.0.2. Set the 'ServerName' directive globally to suppress this message
  • Enabling site 400-nominatim.
    To activate the new configuration, you need to run:
    service apache2 reload
  • Reloading web server apache2
  • ---> c8f83c67a231
    Removing intermediate container 8deadba22701`

Hopefully you know what is going on,
Frank

Nominatim has moved from automake to cmake

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!

Failing with large datasets

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...

Build fails

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!

Make the baseURL configurable

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.

Build failure

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

Wikipedia Data

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

After installing, search.php throws HTTP 500 response

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

Code Improvements

  • Use Alpine instead of Ubuntu as a base image. This reduces the Base image size
  • Read the osm.pbf from a volume! Then not everyone needs to forks.
  • Make baseURL configurable

Postgis: 2.1 installed, 2.2 required

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

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.