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

mod_tile unable to read from Tirex socket #14

Open
alexandervlpl opened this issue Apr 28, 2020 · 6 comments
Open

mod_tile unable to read from Tirex socket #14

alexandervlpl opened this issue Apr 28, 2020 · 6 comments

Comments

@alexandervlpl
Copy link

alexandervlpl commented Apr 28, 2020

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.

@alexandervlpl alexandervlpl changed the title mod_tile unable to read from socket mod_tile unable to read from Tirex socket Apr 28, 2020
@alexandervlpl
Copy link
Author

Added warning about this on the Quick Start page.

@stephankn
Copy link
Contributor

@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

@woodpeck
Copy link
Collaborator

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.

@stephankn
Copy link
Contributor

@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.

@Dexolite
Copy link

Dexolite commented Feb 1, 2021

@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

@stephankn
Copy link
Contributor

@Dexolite @alexandervlpl The maximum zoom for checkerboard is here:

in a similar way you configure for example the much more useful mapnik backend.

stephankn added a commit to stephankn/tirex that referenced this issue Feb 2, 2021
Some people missed this configuration and wondered why zoom 11 and greater returned no tiles. See openstreetmap#14. Providing checkerboard on full zoom scale sounds more helpful.
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

4 participants