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

Renderd : no valid fonts could be loaded

0

Hi everyone, I am installing a OSM tile server under Strech and I am in trouble : when I run service renderd status I have :

renderd.service - LSB: Mapnik rendering daemon Loaded: loaded (/etc/init.d/renderd; generated; vendor preset: enabled) Active: active (running) since Sat 2018-11-10 15:46:41 +11; 34min ago Docs: man:systemd-sysv-generator(8)
Process: 1799 ExecStart=/etc/init.d/renderd start (code=exited, status=0/SUCCESS) Tasks: 4 (limit: 4915) CGroup: /system.slice/renderd.service └─1806 /usr/local/bin/renderd -c /usr/local/etc/renderd.conf

nov. 10 15:46:41 carto renderd[1805]: config mapnik: font_dir_recurse=1 nov. 10 15:46:41 carto renderd[1805]: config renderd(0): Active nov. 10 15:46:41 carto renderd[1805]: config renderd(0): unix socketname=/var/run/renderd/renderd.sock nov. 10 15:46:41 carto renderd[1799]: Starting Mapnik rendering daemon: renderd. nov. 10 15:46:41 carto systemd[1]: Started LSB: Mapnik rendering daemon. nov. 10 15:46:41 carto renderd[1806]: Loading parameterization function for nov. 10 15:46:41 carto renderd[1806]: Loading parameterization function for nov. 10 15:46:41 carto renderd[1806]: Starting stats thread nov. 10 15:46:42 carto renderd[1806]: An error occurred while loading the map layer 'default': no valid fonts could be loaded in FontSet 'fontset-1' in FontSet at line 90 of '/home/data/osm/styles/openstreetmap-carto/style.xml' nov. 10 15:46:42 carto renderd[1806]: An error occurred while loading the map layer 'default': no valid fonts could be loaded in FontSet 'fontset-1' in FontSet at line 90 of '/home/data/osm/styles/openstreetmap-carto/style.xml'

Does anyone have an idea to fix it ? Thank you

asked 10 Nov '18, 05:34

brunogee's gravatar image

brunogee
16223
accept rate: 0%


One Answer:

2

The font directory is set in /etc/renderd.conf

In this directory you should have the fonts used in your style (home/data/osm/styles/openstreetmap-carto/style.xml)

answered 11 Nov '18, 17:15

yvecai's gravatar image

yvecai
1.5k1226
accept rate: 9%

Thank you yvecai,

You were very helpful ;-)

I have found a solution : sudo apt-get install fonts-noto-cjk fonts-noto-hinted fonts-noto-unhinted fonts-hanazono ttf-unifont

Now, I have a new message :(

So it's close ;-)

(12 Nov '18, 00:43) brunogee

Source code available on GitHub .