configure_valhalla.sh references --report flag not recognized by valhalla_build_config
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:
- An existing
valhalla.jsonis present in/custom_files/ update_existing_config=True(the default inDockerfile-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
- Place pre-built tiles and an existing
valhalla.jsonin./data/ docker compose up valhalla- 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)
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.