[Tile-serving] [openstreetmap/mod_tile] "Failed to read cmd on fd" errors since mod_tile update on 2nd June (#77)
cglacet
notifications at github.com
Mon Jun 12 16:50:40 UTC 2017
I finally found who was guilty ! I tried to remove all hooks except the tile_handler_serve from mod_tile.c, then a bunch of things happened:
```
mod_hfs_apple2.c(145): [client ::1:65478] mod_hfs_apple: / is case-insensitive
mod_hfs_apple2.c(145): [client ::1:65478] mod_hfs_apple: /var/ is case-insensitive
d_hfs_apple2.c(145): [client ::1:65478] mod_hfs_apple: /Library/WebServer/Documents/ is case-insensitive
mod_hfs_apple2.c(145): [client ::1:65478] mod_hfs_apple: /Library/WebServer/CGI-Executables/ is case-insensitive
mod_hfs_apple2.c(145): [client ::1:65478] mod_hfs_apple: /usr/share/httpd/icons/ is case-insensitive
mod_hfs_apple2.c(145): [client ::1:65478] mod_hfs_apple: .*\\.\\.namedfork/ is case-sensitive
mod_hfs_apple2.c(363): [client ::1:65478] mod_hfs_apple: compare_paths / vs /Library/WebServer/Documents/osm_tiles/, related=1
mod_hfs_apple2.c(363): [client ::1:65478] mod_hfs_apple: compare_paths /var/ vs /Library/WebServer/Documents/osm_tiles/, related=0
mod_hfs_apple2.c(363): [client ::1:65478] mod_hfs_apple: compare_paths /Library/WebServer/Documents/ vs /Library/WebServer/Documents/osm_tiles/, related=1
mod_hfs_apple2.c(363): [client ::1:65478] mod_hfs_apple: compare_paths /Library/WebServer/CGI-Executables/ vs /Library/WebServer/Documents/osm_tiles/, related=0
mod_hfs_apple2.c(363): [client ::1:65478] mod_hfs_apple: compare_paths /usr/share/httpd/icons/ vs /Library/WebServer/Documents/osm_tiles/, related=0
mod_hfs_apple2.c(363): [client ::1:65478] mod_hfs_apple: compare_paths .*\\.\\.namedfork/ vs /Library/WebServer/Documents/osm_tiles/, related=0
mod_hfs_apple2.c(384): [client ::1:65478] mod_hfs_apple: Final check compares: /Library/WebServer/Documents/osm_tiles vs /Library/WebServer/Documents/, length 28
mod_hfs_apple2.c(397): [client ::1:65478] mod_hfs_apple: Allowing access with matching directory. filename = /Library/WebServer/Documents/osm_tiles
```
---------
To fix this problem simply go in /etc/apache2/httpd.conf and comment the following line:
`LoadModule hfs_apple_module libexec/apache2/mod_hfs_apple.so`
This hack is not very satisfactory to me, the goal would be to correct mod_tile. The part that looks to need a fix lies in mod_tile.c:1643:
```
static void register_hooks(__attribute__((unused)) apr_pool_t *p)
{
...
ap_hook_translate_name(tile_translate, NULL, NULL, APR_HOOK_MIDDLE);
...
}
```
For now I don't have the courage to find a real solution, just having a quick look I found this strange line that may cause a problem to anyone (eg., mod_hfs_apple) trying to read the request. In mod_tile.c:1278:
```
static int tile_translate(request_rec *r)
{
...
r->filename = NULL;
...
}
```
----------
Thanks for your help @SomeoneElseOSM !!
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/mod_tile/issues/77#issuecomment-307848763
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170612/4c53322c/attachment.html>
More information about the Tile-serving
mailing list