Code Monkey home page Code Monkey logo

Comments (7)

abandin-stratio avatar abandin-stratio commented on August 18, 2024 2

Ok, got it. The you should change the file to run inside the container:

docker run -t -v ~/nominatim-data:/data nominatim sh /app/init.sh /data/spain-latest.osm.pbf postgresdata 2

from nominatim-docker.

mbrucher avatar mbrucher commented on August 18, 2024 1

Yes, the pbf name is not the destination file name, but the data you want to read.

Got caught by this several time as well!

from nominatim-docker.

mbrucher avatar mbrucher commented on August 18, 2024

/data/merged.osm.pbf -> /data/poland-latest.osm.pbf
Except if you merged the file before?

from nominatim-docker.

abandin-stratio avatar abandin-stratio commented on August 18, 2024

Same here. Guide is not very clear at this point. I place my pbf file from spain, in ~/nominatim-data/spain-latest.osm.pbf and i get the same error after the first initialization.
BR!

from nominatim-docker.

macieg avatar macieg commented on August 18, 2024

Perfect! Works now. Thanks @abandin-stratio and @mbrucher .

I'll create a pull request to make the guide clearer.

from nominatim-docker.

ArmyGuy62 avatar ArmyGuy62 commented on August 18, 2024

So I have read the thread down to this point but I am still having the same problem as macieg was originally. This is my print out....what am I missing??
john@ubuntu:/data/dump/nominatim$ docker run -t -v ~/nominatimdata:/data mediagis/nominatim sh /app/init.sh /data/dump/nominatim/on.osm.pbf postgresdata 2
The files belonging to this database system will be owned by user "postgres".
This user must also own the server process.

The database cluster will be initialized with locale "C.UTF-8".
The default database encoding has accordingly been set to "UTF8".
The default text search configuration will be set to "english".

Data page checksums are disabled.

fixing permissions on existing directory /data/postgresdata ... ok
creating subdirectories ... ok
selecting default max_connections ... 100
selecting default shared_buffers ... 128MB
selecting default timezone ... Etc/UTC
selecting dynamic shared memory implementation ... posix
creating configuration files ... ok
running bootstrap script ... ok
performing post-bootstrap initialization ... ok
syncing data to disk ... ok

WARNING: enabling "trust" authentication for local connections
You can change this by editing pg_hba.conf or using the option -A, or
--auth-local and --auth-host, the next time you run initdb.

Success. You can now start the database server using:

/usr/lib/postgresql/11/bin/pg_ctl -D /data/postgresdata -l logfile start

waiting for server to start....2020-04-15 17:05:41.263 UTC [29] LOG: listening on IPv4 address "127.0.0.1", port 5432
2020-04-15 17:05:41.263 UTC [29] LOG: could not bind IPv6 address "::1": Cannot assign requested address
2020-04-15 17:05:41.263 UTC [29] HINT: Is another postmaster already running on port 5432? If not, wait a few seconds and retry.
2020-04-15 17:05:41.281 UTC [29] LOG: listening on Unix socket "/var/run/postgresql/.s.PGSQL.5432"
2020-04-15 17:05:41.312 UTC [30] LOG: database system was shut down at 2020-04-15 17:05:41 UTC
2020-04-15 17:05:41.331 UTC [29] LOG: database system is ready to accept connections
done
server started
NOTICE: database "nominatim" does not exist, skipping
DROP DATABASE
ERROR: the path supplied to --osm-file does not exist
string(46) "the path supplied to --osm-file does not exist"

from nominatim-docker.

gsi-luis avatar gsi-luis commented on August 18, 2024

Solved defined other volumen binding file *.pbf into container before execute sh /app/init.sh, example:

docker run -t -v ~/nominatimdata:/data mediagis/nominatim -v ~/pbf/on.osm.pbf:/home/nominatim/on.osm.pbf sh /app/init.sh /home/nominatim/on.osm.pbf postgresdata 2

from nominatim-docker.

Related Issues (20)

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.