mod_tile unable to read from Tirex socket
The Installation and QuickStart guides currently don't result in a working configuration with mod_tile. I have tirex-master and tirex-backend-manager running, tirex-batch creates the test meta tiles as expected.
Somehow requesting a tile through mod_tile fails immediately though:
[Tue Apr 28 13:54:26.453319 2020] [tile:debug] [pid 12126:tid 139942147245824] ./src/mod_tile.c(176): [client 46.138.238.96:57374] Connecting to renderd on Unix socket /var/lib/tirex/modtile.sock
[Tue Apr 28 13:54:26.453345 2020] [tile:info] [pid 12126:tid 139942147245824] [client 46.138.238.96:57374] Requesting style(test) z(11) x(1100) y(671) from renderer with priority 5
[Tue Apr 28 13:54:26.454143 2020] [tile:warn] [pid 12126:tid 139942147245824] [client 46.138.238.96:57374] request_tile: Failed to read response from rendering socket No such file or directory
[Tue Apr 28 13:54:26.454172 2020] [tile:debug] [pid 12126:tid 139942147245824] ./src/mod_tile.c(970): [client 46.138.238.96:57374] tile_storage_hook: Missing tile was not rendered in time. Returning File Not Found
Tirex never queues the job (nothing in /var/log/tirex/jobs.log). The socket file does exist and I can't figure out what the problem is.
If mod_tile and tirex are no longer compatible out of the box, the wiki should document versions that do work together.
Added warning about this on the Quick Start page.
@alexandervlpl I am in the process of updating my Tirex setup and will look into this. Do you have meanwhile more details?
mod_tile looks quite stable. It did not have commits since January 2017: https://github.com/openstreetmap/mod_tile/commits/master/src
Tirex also has quite few updates. Nothing looks related. Maybe a configuration issue and something missing in the documentation? https://github.com/openstreetmap/tirex/commits/master
I have removed the big warning on the wiki page. Frankly I find it a bit of a bad move to basically discourage everyone from using the software just because you can't get it to work on your particular setup and nobody has helped you fix your issue within two days. Tirex works nicely for me and has for ages. I'm sorry that I overlooked this issue or else I would have helped debugging - but, again, just because you don't receive immediate help is no reason to bad-mouth the software. You haven't even specified what system you are attempting this on! One frequent cause for mod_tile not being able to talk to Tirex is SELinux. Are you on a system with SELinux enabled? If yes, temporarily disable it and see if the problem goes away.
@alexandervlpl I can reproduce the issue. Your mistake was to request tiles from zoom 11, while you have likely configured the test backend to serve only up to 10 (default setup). The error message is maybe a bit misleading, but how should mod_tile respond if you request for something not existing?
Everything works fine with a recent mod_tile and mapnik. I am able to use a rendering setup with all recent software.
@woodpeck Fine to remove the warning, as there is no problem.
@stephankn Thank you for your input. I'm also having issues exactly at layer #11 and deeper, so will look on how to configure that. If you can point me to the config file, will be greatly appreciated. I'll edit this comment with instruction when/if I find any.
Thank you
@Dexolite @alexandervlpl The maximum zoom for checkerboard is here: https://github.com/openstreetmap/tirex/blob/bc34acf401c669da53abbe159f4dfa5cc1f8a8f5/etc/renderer/test/checkerboard.conf.dist#L23
in a similar way you configure for example the much more useful mapnik backend.