Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mjolnir.traffic_extract configuration ignored and even rewritten when set to directory which is different from tile dir #125

Open
Ashen-Cz opened this issue Nov 3, 2023 · 1 comment

Comments

@Ashen-Cz
Copy link

Ashen-Cz commented Nov 3, 2023

Reopening from valhalla/valhalla#4380 as @nilsnolde suggested:

Due to some infrastructure issues, I need to keep traffic and tile files separated. So my config looks something like this:

"tile_dir": "/custom_files/valhalla_tiles",
"tile_extract": "/custom_files/valhalla_tiles.tar",
"traffic_extract": "/valhalla/traffic.tar",

Interestingly, upon firing up Valhalla, I've noticed this on log: '(stat): /custom_files/traffic.tar No such file or directory'. I've double checked, modified traffic_extract to /valhalla/traffic.tar again, but it seems that every time I start Valhalla, the "traffic_extract" is rewritten back to /custom_files/traffic.tar . Is this by design and traffic must be in the same dir as tiles or is it bug?

@nilsnolde
Copy link
Member

I wouldn’t call it a bug, but it’s also not really necessary.. you can try removing this line:

jq --arg d "${TRAFFIC_TAR}" '.mjolnir.traffic_extract = $d' "${CONFIG_FILE}"| sponge "${CONFIG_FILE}"
, should work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants