Giter VIP home page Giter VIP logo

Comments (6)

michaelkirk avatar michaelkirk commented on May 27, 2024

I get the following error in the docker-compose log:

headwaymaps-valhalla_init-1 | http://: Invalid host name.
headwaymaps-valhalla_init-1 | xz: (stdin): File format not recognized

The container named headwaymaps-valhalla_init corresponds to services/valhalla/init.sh

Looking at that file, it seems likely that you're trying to download $VALHALLA_ARTIFACT_URL. But that shouldn't happen if you've built all the artifacts as the instructions describe.

I do have Earthly installed and running, but when I try to run the docker-compose,

Did you run the build? Something like:

earthly -P +build --area=Amsterdam

Did it succeed?

from headway.

michaelkirk avatar michaelkirk commented on May 27, 2024

For context, broadly speaking, there are two parts to this project.

  1. The part that compiles all the mapping data (e.g. earthly +build)
  2. The services that hosts the compiled mapping data. (e.g. docker compose up)

We cant expect the second part to work without the first part being completed. Your original report was an error with starting docker compose, but first you'll have to figure out why building the data failed.

+pelias-import failed | Elasticsearch did not come up, check configuration

Any thoughts why elasticsearch didn't come up?

For very large builds (planet scale) I've had issues with what I suspect might actually be a timeout:
pelias/docker#217 (comment)

I haven't run into that issue on smaller builds, but I suppose that could depend on your machine setup. Adjusting your esclient timeout for the build portion as I did in the link could be one thing you try.

from headway.

ellenhp avatar ellenhp commented on May 27, 2024

NY+PA is a big extract, so I'd suspect memory pressure as a potential reason elasticsearch might not come up during import. Try setting your buildkit parallelism to 1 according to FULL_PLANET.md. Just a hunch :)

from headway.

ellenhp avatar ellenhp commented on May 27, 2024

Looks like I may not have documented buildkit parallelism, but you can follow this documentation to set up an earthly config file. Glancing through the docs it looks like running earthly config global.buildkit_max_parallelism 1 might also work.

from headway.

ellenhp avatar ellenhp commented on May 27, 2024

It's pretty easy to OOM while working with large extracts or planet builds if you allow earthly to run many tasks in parallel. I've done it even with 128gb of RAM. I don't think it's a timeout issue but that's certainly possible too. Super curious to see if the buildkit parallelism tweak fixes it. Failing that, another good data point would be building a small area like Amsterdam.

from headway.

ellenhp avatar ellenhp commented on May 27, 2024

It's impossible to diagnose this without build logs.

from headway.

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.