valhalla icon indicating copy to clipboard operation
valhalla copied to clipboard

configure_valhalla.sh references --report flag not recognized by valhalla_build_config

Open takatea opened this issue 9 months ago • 1 comments

Summary

configure_valhalla.sh uses --report flag when calling valhalla_build_config, but the binary in valhalla-scripted:latest does not recognize it. This causes the container to crash on restart when an existing valhalla.json is present.

It seems like the Docker image may need to be rebuilt so the binary includes the changes from #5857, or the script should be updated to use an existing flag (e.g. -d / --dry-run).

Details

The issue is in configure_valhalla.sh L124 (introduced in #5857):

valhalla_build_config --output "$CONFIG_FILE" --merge-config "$CONFIG_FILE" --report

This code path is reached when both conditions are met:

  1. An existing valhalla.json is present in /custom_files/
  2. update_existing_config=True (the default in Dockerfile-scripted)

When starting fresh (no existing valhalla.json), the container starts normally because the else branch doesn't use --report.

Steps to reproduce

services:
  valhalla:
    image: ghcr.io/valhalla/valhalla-scripted:latest
    volumes:
      - ./data:/custom_files
    environment:
      - serve_tiles=True
      - use_tiles_ignore_pbf=True
  1. Place pre-built tiles and an existing valhalla.json in ./data/
  2. docker compose up valhalla
  3. Container fails with:
valhalla_build_config: error: unrecognized arguments: --report

Environment

  • Image: ghcr.io/valhalla/valhalla-scripted:latest
  • Platform: macOS (Apple Silicon, linux/amd64 emulation)

takatea avatar Feb 24 '26 03:02 takatea

Sorry for the insufficient verification before filing this issue.

I was using ghcr.io/valhalla/valhalla-scripted:latest at the time of reporting, which was likely 3.6.2. After rebuilding with docker compose up (which pulled the newer latest), the issue no longer reproduces.

It appears that 3.6.3 (released after my report) includes a valhalla_build_config binary that recognizes the --report flag, resolving the mismatch with configure_valhalla.sh.

I've confirmed that both 3.6.3 and the current latest (3.6.3-8bbc4288c) work correctly with update_existing_config=True.

Closing as resolved. Sorry for the noise.

takatea avatar Feb 24 '26 05:02 takatea