Troubleshooting¶
This page contains some advice about errors and problems commonly encountered during the development of Mapnik Tile Server.
Can’t install Docker on Windows¶
To use Docker on Windows you need a PRO version.
Can’t start docker container on Windows¶
When downloading the source code via GitHub Desktop it can happen, that every file is refactored for windows usage, but when try to run the code on a docker container (linux) it will crash!
So to solve the issue, try to download via the CLI
or via VS Code.
bash: fork: retry¶
When developing on a Remote Server, it can happen that you get the error:
bash: fork: retry: Die Ressource ist zur Zeit nicht verfügbar
bash: fork: retry: Die Ressource ist zur Zeit nicht verfügbar
bash: fork: retry: Die Ressource ist zur Zeit nicht verfügbar
bash: fork: retry: Die Ressource ist zur Zeit nicht verfügbar
To solve this error, expand the process limits of your target user. For all users the command is:
$ echo '* soft nofile 65000' | sudo tee --append /etc/security/limits.conf
$ echo '* hard nofile 65000' | sudo tee --append /etc/security/limits.conf
$ sudo reboot
After the reboot, it shouldn’t shown the error message again. If this message isn’t gone after restart, you may need to use an another hoster. On Tested server hoster you can watch out for a new working hoster.
Please make sure, that the hoster is not overwrite the file on each restart!
unable to find face-name ‘unifont Medium’ in FontSet ‘fontset-0’¶
If the error unable to find face-name 'unifont Medium' in FontSet
occurs, it
means that the old version of unifont``is missing. The team of
``openstreetmap-carto
added as requirements the new and old version of unifont
to load one of the two versions. So if you get an error like below, just
ignore it :)
celeryworker_1 | Mapnik LOG> 2020-02-10 12:17:53: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-0'
celeryworker_1 | Mapnik LOG> 2020-02-10 12:17:53: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-1'
celeryworker_1 | Mapnik LOG> 2020-02-10 12:17:53: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-2'
How to delte just all django ohdm tables¶
To just delete django OHDM
tables and not the other django tables like users
use.:
$ docker-compose -f local.yml run --rm django python manage.py migrate ohdm zero
Cannot start service¶
When you try to start the containers and you get an error like:
ERROR: for postgres Cannot start service postgres: Ports are not available: listen tcp 127.0.0.1:5432: bind: Der Zugriff auf einen Socket war aufgrund der Zugriffsrechte des Sockets unzulässig.
ERROR: Encountered errors while bringing up the project.
Then check if no other process is running on 5432
, 5555
and 8000
.
On linux & mac you can use:
$ netstat -vanp tcp | grep 5432
$ netstat -vanp tcp | grep 5555
$ netstat -vanp tcp | grep 8000
On Windows use CMD:
$ netstat -an
No such file or directory¶
When trying Docker on Windows on the first time, sometimes Windows will add \r
on each file, but linux don’t like it. If you get some errors like below, try to download
the repo on a different way!:
/usr/bin/env: 'python\r': No such file or directory