Comments (6)
Any follow-up on this? I get the same error as Ericson90. Not sure if this is the same issue as OP, Because there are many commands here in one line, it's hard to say which one is causing.
I get the 255 exit-code. PBF is Planet. Running on a 32GB RAM machine, 8 vcpus. 900GB disk space.
from nominatim-docker.
I have the same problem with the 3.1 and i fix this by adding :
service postgresql start
under chown postgres:postgres /data/$PGDIR && \
in the init.sh then rebuild etc
from nominatim-docker.
Me too having a similar issue at the PostgreSQL setup section.
Anyone know how to fix this ?
Step 18/22 : RUN 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" && useradd -m -p password1234 nominatim && chown -R nominatim:nominatim ./src && sudo -u nominatim ./src/utils/setup.php --osm-file /app/src/data.osm.pbf --all --threads 2 && service postgresql stop
---> Running in 3fa191b76163
- Starting PostgreSQL 9.3 database server
...done.
NOTICE: database "nominatim" does not exist, skipping
DROP DATABASE
Create DB
createdb: database creation failed: ERROR: could not stat file "base/1/pg_internal.init": No such file or directory
ERROR: Error executing external command: createdb -E UTF-8 -p 5432 nominatim
Error executing external command: createdb -E UTF-8 -p 5432 nominatim
The command '/bin/sh -c 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" && useradd -m -p password1234 nominatim && chown -R nominatim:nominatim ./src && sudo -u nominatim ./src/utils/setup.php --osm-file /app/src/data.osm.pbf --all --threads 2 && service postgresql stop' returned a non-zero code: 255
from nominatim-docker.
Do we have any fix for this? What's wrong here?
from nominatim-docker.
For me adding the "-w" flag to the "pg_ctl -D /data/$PGDIR start" command helps, as it advices pg_ctl to wait until the postgres service is started.
from nominatim-docker.
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.
from nominatim-docker.
Related Issues (20)
- Create container in a proxy based environment HOT 1
- Backup and restore HOT 1
- Segmentation fault installing full planet HOT 2
- Crash while importing europe data HOT 4
- Poor response time after loading the docker HOT 1
- [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
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.