Code Monkey home page Code Monkey logo

Comments (6)

sfranchois avatar sfranchois commented on August 18, 2024 1

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.

toregua avatar toregua commented on August 18, 2024 1

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.

EricsonK avatar EricsonK commented on August 18, 2024

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.

devendrasr avatar devendrasr commented on August 18, 2024

Do we have any fix for this? What's wrong here?

from nominatim-docker.

hbruch avatar hbruch commented on August 18, 2024

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.

philipkozeny avatar philipkozeny commented on August 18, 2024

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)

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.