Ircama / osm-carto-tutorials

OpenStreetMap Carto Tutorials - Unofficial guides for openstreetmap-carto
https://ircama.github.io/osm-carto-tutorials/
GNU General Public License v3.0
28 stars 9 forks source link

Socket bind failed for /var/run/renderd/renderd.sock #8

Closed glen442 closed 7 years ago

glen442 commented 7 years ago

From a clean installation of Ubuntu 16.04.1, the /var/run/renderd/ directory does not exist, and isn't created by renderd, causing the error:

socket bind failed for: /var/run/renderd/renderd.sock

Fix found courtesy of this Stack Overflow Question. It would be good if this could be included in the tutorial.

Ircama commented 7 years ago

Thanks for notifying. There should be a permission problem. Never happened to me in all past tests. I'll do again a clean install to verify why this happens.

glen442 commented 7 years ago

I also had the same syntax errors that are shown in that stack overflow question. I wasn't sure whether to raise this as a separate issue...

Solution copied from the same stack overflow thread:

All the tips I've found here are correct. But I needed also to replace in /usr/local/etc/renderd.conf this: ;** config options used by mod_tile, but not renderd **

into this: ;xxx=** config options used by mod_tile, but not renderd **

Looks like semicolon is treated as a comment, but the string that is after it still needs to apply to key=value formula, otherwise you get: iniparser: syntax error in /usr/local/etc/renderd.conf

Or you may also remove that entire line (actually two lines, since it occurs there twice), since it is a comment anyway.

In my version of the file, it occurs more than twice, but the solution is the same anyway.

Ircama commented 7 years ago

@glen442 thanks, next commit will include all useful infos mentioned here