[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
Sun Jun 11 17:08:44 UTC 2017


1) Is already what I've done (the metatile is perfectly fine, I checked using meta2tile).
2) Is the output I pasted just before (it stops there). Or outputs nothing if I ask for the same tile again.
3) I'll try that now, thank you. 

Is that normal that mapnik doesn't output anything btw (renderd is just wrapping everything even the outputs)?

"_maybe there's a permissions issue somewhere_" yes maybe, is there anything in particular you have in mind? My metatiles are owned by my postgresql user (is that the correct way to do?). Here is how my rights are defined:

**$** ls -la /var/lib/mod_tile/default/8/0/0/0/250/128.meta /var/run/renderd/
```
-rw-r--r-- 1 postgres wheel  317572 Jun 11 17:31 /var/lib/mod_tile/default/8/0/0/0/250/128.meta
/var/run/renderd/:
    drwxr-xr-x  5 postgres daemon  170 Jun 11 18:31 .
    drwxrwxr-x 33 root     daemon 1122 Jun 11 17:13 ..
    -rw-r--r--  1 postgres daemon    6 Jun 10 06:07 renderd.pid
    srwxrwxrwx  1 postgres daemon    0 Jun 11 18:16 renderd.sock
    -rw-r--r--  1 postgres daemon 1143 Jun 11 18:31 renderd.stats
```
**$** ls -la /usr/libexec/apache2/mod_tile.so
```
-rw-r--r-- 1 root wheel 130596 Jun  7 20:27 /usr/libexec/apache2/mod_tile.so
```
**$** ls -la /usr/local/lib/mapnik /usr/local/Cellar/mapnik/3.0.13/lib/mapnik/
```
lrwxr-xr-x 1 cglacet admin  34 Jun  7 15:05 /usr/local/lib/mapnik -> ../Cellar/mapnik/3.0.13/lib/mapnik
```
**$** dscacheutil -q group | grep -E -A 3 'daemon|wheel'
```
name: daemon
password: *
gid: 1
users: root
--
name: wheel
password: *
gid: 0
users: root
```
The commands I run to get started are:
```
 $ sudo rm -rf /var/lib/mod_tile/default/*
 $ sudo bash -c 'echo -e "\c" > /var/log/apache2/error-mode_tile.log'
 $ sudo apachectl -k restart
```
and
```
 $ sudo -u postgres renderd -f -c /usr/local/etc/renderd.conf
```

Thank you again for helping me 👍 

--------------------
ps, Apache says this: 
```
[Sun Jun 11 18:46:33.398094 2017] [tile:debug] [pid 25867] ./src/mod_tile.c(1289): [client ::1:58386] tile_translate: uri(/osm_tiles/8/251/160.png)
[Sun Jun 11 18:46:33.398104 2017] [tile:debug] [pid 25867] ./src/mod_tile.c(1306): [client ::1:58386] tile_translate: testing baseuri(/osm_tiles/) name(default) extension(png)
[Sun Jun 11 18:46:33.398123 2017] [tile:debug] [pid 25867] ./src/mod_tile.c(1352): [client ::1:58386] tile_translate: request for default was 251 160 256
[Sun Jun 11 18:46:33.398129 2017] [tile:debug] [pid 25867] ./src/mod_tile.c(324): [client ::1:58386] get_storage_backend: Retrieving storage back end for tile layer 0 in pool 7fb683827628 and thread -1075362880
[Sun Jun 11 18:46:33.398134 2017] [tile:debug] [pid 25867] ./src/mod_tile.c(338): [client ::1:58386] get_storage_backend: No storage backends for this lifecycle 7fb683827628, creating it in thread -1075362880
[Sun Jun 11 18:46:33.398138 2017] [tile:debug] [pid 25867] ./src/mod_tile.c(353): [client ::1:58386] get_storage_backend: No storage backend in current lifecycle 7fb683827628 in thread -1075362880 for current tile layer 0
[Sun Jun 11 18:46:33.398180 2017] [tile:debug] [pid 25867] ./src/mod_tile.c(1391): [client ::1:58386] tile_translate: op(tile_serve) xml(default) mime(image/png) z(8) x(251) y(160)
[Sun Jun 11 18:46:33.398188 2017] [tile:info] [pid 25867] [client ::1:58386] tile_storage_hook: handler(tile_serve), uri(/osm_tiles/8/251/160.png)
[Sun Jun 11 18:46:33.398213 2017] [tile:debug] [pid 25867] ./src/mod_tile.c(374): [client ::1:58386] tile_state: determined state of default 251 160 8 on store 7fb68340c000: Tile size: -1, expired: 1 created: 0
[Sun Jun 11 18:46:33.398220 2017] [tile:debug] [pid 25867] ./src/mod_tile.c(176): [client ::1:58386] Connecting to renderd on Unix socket /var/run/renderd/renderd.sock
[Sun Jun 11 18:46:33.398241 2017] [tile:info] [pid 25867] [client ::1:58386] Requesting style(default) z(8) x(251) y(160) from renderer with priority 5
[Sun Jun 11 18:46:39.541360 2017] [authz_core:debug] [pid 25867] mod_authz_core.c(834): [client ::1:58386] AH01628: authorization result: granted (no directives)
[Sun Jun 11 18:46:39.541421 2017] [core:trace3] [pid 25867] request.c(296): [client ::1:58386] request authorized without authentication by access_checker_ex hook: /osm_tiles/8/251/160.png
```
And for the second request (once the tile has been generated):
```
...
[Sun Jun 11 18:51:02.012422 2017] [tile:debug] [pid 25869] ./src/mod_tile.c(1391): [client ::1:59381] tile_translate: op(tile_serve) xml(default) mime(image/png) z(8) x(251) y(160)
[Sun Jun 11 18:51:02.012433 2017] [tile:info] [pid 25869] [client ::1:59381] tile_storage_hook: handler(tile_serve), uri(/osm_tiles/8/251/160.png)
[Sun Jun 11 18:51:02.012472 2017] [tile:debug] [pid 25869] ./src/mod_tile.c(374): [client ::1:59381] tile_state: determined state of default 251 160 8 on store 7fb68340bfc0: Tile size: 317572, expired: 0 created: 1497199599
[Sun Jun 11 18:51:02.012540 2017] [authz_core:debug] [pid 25869] mod_authz_core.c(834): [client ::1:59381] AH01628: authorization result: granted (no directives)
[Sun Jun 11 18:51:02.012555 2017] [core:trace3] [pid 25869] request.c(296): [client ::1:59381] request authorized without authentication by access_checker_ex hook: /osm_tiles/8/251/160.png
```

-- 
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-307642694
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20170611/72b94bb6/attachment-0001.html>


More information about the Tile-serving mailing list