This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Pink tiles in map

0

Hi, I have problem with OSM. When I browse http://localhost/osm/slippymap.html I have pink baground. renderd -f -c /etc/renderd.conf gave me:

renderd[2229]: An error occurred while loading the map layer 'default': :

FATAL: role "www-data" does not exist (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml')

renderd[2229]: An error occurred while loading the map layer 'default': : FATAL: role "www-data" does not exist (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml')

renderd[2229]: An error occurred while loading the map layer 'default': : FATAL: role "www-data" does not exist (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml')

renderd[2229]: An error occurred while loading the map layer 'default': : FATAL: role "www-data" does not exist (encountered during parsing of layer 'landcover' in map '/etc/mapnik-osm-data/osm.xml')

And apache gave errors:

[Thu Nov 21 13:16:08 2013] [notice] [client 127.0.0.1] Failed to connect to renderer, referer: http://localhost/osm/slippymap.html

[Thu Nov 21 13:16:08 2013] [info] [client 127.0.0.1] tile_storage_hook: handler(tile_serve), uri(/osm/10/528/360.png), filename(/var/lib/mod_tile/default/10/0/0/33/22/8.meta), path_info((null)), referer: http://localhost/osm/slippymap.html

[Thu Nov 21 13:16:08 2013] [info] [client 127.0.0.1] tile_storage_hook: handler(tile_serve), uri(/osm/10/538/354.png), filename(/var/lib/mod_tile/default/10/0/0/33/22/128.meta), path_info((null)), referer: http://localhost/osm/slippymap.html

[Thu Nov 21 13:16:08 2013] [warn] [client 127.0.0.1] socket connect failed for: /var/run/renderd/renderd.sock with reason: Connection refused, referer: http://localhost/osm/slippymap.html

[Thu Nov 21 13:16:08 2013] [warn] [client 127.0.0.1] socket connect failed for: /var/run/renderd/renderd.sock with reason: Connection refused, referer: http://localhost/osm/slippymap.html

[Thu Nov 21 13:16:08 2013] [notice] [client 127.0.0.1] Failed to connect to renderer, referer: http://localhost/osm/slippymap.html

[Thu Nov 21 13:16:08 2013] [notice] [client 127.0.0.1] Failed to connect to renderer, referer: http://localhost/osm/slippymap.html

[Thu Nov 21 13:16:08 2013] [info] [client 127.0.0.1] tile_storage_hook: handler(tile_serve), uri(/osm/10/538/360.png), filename(/var/lib/mod_tile/default/10/0/0/33/22/136.meta), path_info((null)), referer: http://localhost/osm/slippymap.html

[Thu Nov 21 13:16:08 2013] [warn] [client 127.0.0.1] socket connect failed for: /var/run/renderd/renderd.sock with reason: Connection refused, referer: http://localhost/osm/slippymap.html

[Thu Nov 21 13:16:08 2013] [notice] [client 127.0.0.1] Failed to connect to renderer, referer: http://localhost/osm/slippymap.html

Could somebody help me resolve problem?

asked 21 Nov '13, 12:34

jonny1998's gravatar image

jonny1998
1111
accept rate: 0%

Does the comment by Vincent to this answer resolve the problem?

(21 Nov '13, 13:17) scai ♦

One Answer:

0

This seems to be a priviliges problem as jonny1998 says.

You can alter it directly using psql shell or purge and update like the package installer does:
sudo /usr/bin/install-postgis-osm-user.sh gis www-data
see http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/

answered 21 Nov '13, 15:36

iii's gravatar image

iii
4.9k84082
accept rate: 10%

Source code available on GitHub .