[Tile-serving] renderd eroor

Josef Schugt josef.schugt at benndorf.de
Tue Jun 11 12:43:39 UTC 2019


Hi,

IIRC that occurs when renderd.sock is not found; I had this issue, too.
So maybe my installation notes help (renderman is the user that I use
for tile generation stuff, software is installed under /usr/local rather
than /usr as I built everything from source). Note that that for some
odd reason I didn't manage to find, /run/renderd (or /var/run/renderd if
you are on an old system) vanishes at reboot.

## Run `renderd` in the Background

Apply the following changes to `~/src/mod_tile/debian/renderd.init`

Firstly change

    RUNASUSER=www-data

to

    RUNASUSER=renderman

secondly

    DAEMON=/usr/bin/$NAME

to

    DAEMON=/usr/local/bin/$NAME

thirdly

    DAEMON_ARGS=""

to

    DAEMON_ARGS="-c /usr/local/etc/renderd.conf"

forthly

    PIDSOCKDIR=/var/run/$NAME

to

    PIDSOCKDIR=/run/$NAME

and finally

    [ -r /etc/default/$NAME ] && . /etc/default/$NAME

to

    [ -r /usr/local/etc/$NAME ] && . /usr/local/etc/$NAME

After the block in which variables are initialized add

*    [ -d "$PIDSOCKDIR" ] || mkdir -p $PIDSOCKDIR && chown $RUNASUSER
$PIDSOCKDIR*

then copy the file to `/etc/init.d/renderd` and make that copy executable:

    sudo cp ~/src/mod_tile/debian/renderd.init /etc/init.d/renderd
    sudo chmod u+x /etc/init.d/renderd


then create `/lib/systemd/system/renderd.service` containing

    [Unit]
    Description=renderd
    After=multi-user.target
    Requires=multi-user.target
    
    [Service]
    Type=simple
    User=root
    PIDFile=/run/renderd/renderd.pid
    ExecStart=/etc/init.d/renderd start

    
    [Install]
    WantedBy=multi-user.target



make sure that `/run/renderd` exists and (including its contents) is
owned by
**renderman**

    sudo test -d /run/renderd || sudo mkdir /run/renderd
    sudo chown -R renderman /run/renderd

and finally

    sudo systemctl start renderd
    sudo systemctl enable renderd
    sudo systemctl restart apache2

Annuntio vobis gaudium magnum: habemus tile server. Let's set up a small
testing page for it. First we find out the region covered by our data,
then we
use Leaflet to show the map.

HTH,

Josef Schugt
||

Am 11.06.19 um 14:21 schrieb Mariusz:
>
> Hello
>
> Renderd not render on hi zoom
>
> The test works fine:
> http://server/osm_tiles/0/0/0.png
> <http://yourserveraddress/osm_tiles/0/0/0.png>
>
> But when I use "leaflet" and it starts issuing commands like:
> http://server/osm_tiles/9/256/170.png
>
> renderd[9830]: Using web mercator projection settings
> renderd[9830]: Using web mercator projection settings
> renderd[9830]: Using web mercator projection settings
> renderd[9830]: Using web mercator projection settings
> renderd[9830]: DEBUG: Got incoming connection, fd 7, number 1
> renderd[9830]: DEBUG: Got incoming request with protocol version 2
> renderd[9830]: DEBUG: Got command RenderPrio fd(7) xml(ajt), z(18),
> x(8), y(8), mime(image/png), options()
> renderd[9830]: DEBUG: START TILE ajt 18 8-15 8-15, new metatile
> renderd[9830]: Rendering projected coordinates 18 8 8 ->
> -20036285.350347|20035062.357895 -20035062.357895|20036285.350347 to a
> 8 x 8 tile
> renderd[9830]: DEBUG: Connection 0, fd 7 closed, now 0 left
>
> next
>
> WARNING: Failed to send render cmd on fd 11 send error: Broken pipe
>
> Is this a known problem?
>
>
> _______________________________________________
> Tile-serving mailing list
> Tile-serving at openstreetmap.org
> https://lists.openstreetmap.org/listinfo/tile-serving
-- 
KLAUS BENNDORF
Josef Schugt
Kreuzbergallee 2
53115 Bonn
Tel: +49 228 229 211 <tel:49228229211>
Fax: +49 228 304 127 639
Mail: josef.schugt at benndorf.de <mailto:josef.schugt at benndorf.de>
Web:
- https://www.benndorf.de
- https://www.mobile-gis.de
geo:50.71473,7.08613 <https://osm.org/go/0GIEgu7if?m=>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20190611/8f3e4839/attachment.html>


More information about the Tile-serving mailing list