Closed silgon closed 5 years ago
It looks like container was not able to use external shapes. Did you run https://github.com/gravitystorm/openstreetmap-carto/blob/master/scripts/get-shapefiles.py first?
Did you run https://github.com/gravitystorm/openstreetmap-carto/blob/master/scripts/get-shapefiles.py first?
This should be invoked automatically by docker-compose up kosmtik
, right?
The missing font files and the missing localconfig.js are normal and not part of the issue.
Sorry for the delay guys, and thanks for the fast responses. get-shapefiles.py
seems to be run by `kosmtik':
kosmtik_1 | Starting get-shapefiles.py...
OK, so please check if there are any data in /data subfolder (there should be 8 zip files and 8 directories made by unzipping them)? Maybe you have some problems with connection to servers? If it does not help, try to run the script I mentioned and see what happens.
I see the problem. The first time I ran docker-compose up kosmtik
, it threw an error. That's what I figure because you told me there should be 8 zip files and there is not in my case. I deleted the contents of the data
folder and I reran docker-compose up kosmtik
and I get the following error:
kosmtik_1 | Starting get-shapefiles.py...
kosmtik_1 | 1-1. Downloading 'world_boundaries'...
kosmtik_1 | % Total % Received % Xferd Average Speed Time Time Time Current
kosmtik_1 | Dload Upload Total Spent Left Speed
100 50.4M 100 50.4M 0 0 905k 0 0:00:56 0:00:56 --:--:-- 989k
kosmtik_1 | curl: (16) Error in the HTTP2 framing layer
kosmtik_1 |
kosmtik_1 |
kosmtik_1 | 'curl' error: download failed.
And when I do ls
in the directory I only see the file world_boundaries-spherical.tgz
.
You can try to do a manual download then:
https://github.com/gravitystorm/openstreetmap-carto/blob/master/INSTALL.md#manual-download
It seems like it's not a problem with our code, so I will close it now. However you can still write here if there will be some more problems with downloading data.
Ok, I'm getting the map rendered. For reference, I did:
# enter container
docker exec -it openstreetmap-carto_kosmtik_1 bash
# inside container
python scripts/get-shapefiles.py -n
However, every time the server renders, it throws me a warning:
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-0' [7/1838]
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-0'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-1'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-1'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-2'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-2'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-0'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-0'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-1'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-1'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-2'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:52: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-2'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-0'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-0'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-1'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-1'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-2'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-2'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-0'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-0'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-1'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-1'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'Noto Emoji Regular' in FontSet 'fontset-2'
kosmtik_1 | Mapnik LOG> 2018-10-23 11:26:55: warning: unable to find face-name 'unifont Medium' in FontSet 'fontset-2'
Should I do something about it? I though you already had everything in the containers.
Thanks in advance.
These warnings are harmless, you should get the proper rendering. :smile:
Ok, thanks for the help. I would really had never guessed it myself. =)
For reference, I did:
It should not be necessary to do this manually. For now let's consider it a one-time glitch, if anybody else runs into the same issue please let us know.
I get the same issue running on Windows 10. Also resolved by jumping into container, deleting the data
folder and rerunning get-shapefiles.py
.
Error was
3-2. Expanding 'water-polygons-split-3857'... Failed (try with -u option).
I guess the downloaded archive was invalid?
have the same problem, during kosmtik startup i get:
kosmtik_1 | File "scripts/get-shapefiles.py", line 155
kosmtik_1 | print(" No newer file to download.", end="")
kosmtik_1 | ^
kosmtik_1 | SyntaxError: invalid syntax
apparently print('', end='') is python 3 syntax and invalid for python 2
This can be solved by python->python3 and add python3-distutils to be installed in the Dockerfile
apparently print('', end='') is python 3 syntax and invalid for python 2
This can be solved by python->python3 and add python3-distutils to be installed in the Dockerfile
Thank you. I think this could be a new issue, since it is not the same problem as the original poster found above.
Would you be able to submit a PR to fix this syntax for us, @raphael-sch?
This can be solved by python->python3 and add python3-distutils to be installed in the Dockerfile
How to do this? Sorry if this is a stupid question
just replace "python" in line 5 with "python3 python3-distutils" in the docker file. Do not know if there are side effects. I didn't experience any.
Struggled with this one. Thank you all for the tips here. I believe that this (collected from comments by @silgon and @raphael-sch) helped in the end.
docker exec -it -u root openstreetmap-carto_kosmtik_1 bash
apt-get install python3 python3-distutils
exit
docker exec -it openstreetmap-carto_kosmtik_1 bash
python3 scripts/get-shapefiles.py -n
exit
I'm following the steps in DOCKER.md . However, the map is not displaying.
My pbf file is the one for Ile de France, therefore, I try to access with the following link (http://192.168.0.11:6789/openstreetmap-carto/#12/48.8590/2.3470) which are the coordinates for Paris. The file itself seems to be imported correctly with
docker-compose up import
. However, later when runningdocker-compose up kosmtik
the logs give me the following problems (I separated the logs by chunks in order to show you what I consider to be important):