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 ♦

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/

permanent link

answered 21 Nov '13, 15:36

iii's gravatar image

iii
4.8k53679
accept rate: 11%

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×9
×3
×2
×1
×1

question asked: 21 Nov '13, 12:34

question was seen: 4,480 times

last updated: 21 Nov '13, 18:50

powered by OSQA