Comments (7)
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.
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.
/data/merged.osm.pbf -> /data/poland-latest.osm.pbf
Except if you merged the file before?
from nominatim-docker.
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.
Perfect! Works now. Thanks @abandin-stratio and @mbrucher .
I'll create a pull request to make the guide clearer.
from nominatim-docker.
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.
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)
- [TIP] Adding Wikipedia/Wikidata Rankings after Initial Import
- The configuration of "nominatim import" can not transfer to osm2pgsql.osm2pgsql execut slow. HOT 2
- Geometry Mismatch on World import in placex table HOT 5
- remote postgres host parse error HOT 3
- Import Style Customization HOT 4
- OSM import fails due to URL corruption HOT 2
- Replication logs not generating
- Error After Installation - How to troubleshoot HOT 11
- api request format HOT 1
- 漏洞 HOT 10
- External database gets recreated upon pod restart HOT 5
- nominatim reverse cli call with external database HOT 1
- Parallelize GitHub CI to cut down on overall timing HOT 1
- Cannot shutdown container if replication is not active
- Setup external PostgreSQL from dump and connect docker nominatim to it HOT 1
- Existing Full Planet GeoServer OSM HOT 4
- Replication is not updating
- psycopg2.OperationalError: server closed the connection unexpectedly HOT 2
- curl: (60) SSL certificate problem: self-signed certificate in certificate chain HOT 2
- Docker compose container permission errors HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nominatim-docker.