OpenTopoMap icon indicating copy to clipboard operation
OpenTopoMap copied to clipboard

Beginner's guides for a tile server - does not work any more

Open gsontheimer opened this issue 2 years ago • 5 comments

I would be really happy, if someone could look into this issue and fix the Beginner's Guide to work again. I have spent several days trying to get the installation running. But as a Ubuntu Novice I always failed.

I followed the script, I updated CMake to Version 3.20.5 and I updated gcc and g++ to version 6.5.0. But the script still fails when trying to make osm2pgsql_lib.

---------------------------------------------------------------------------------------output gis@MapServer:~/src/osm2pgsql/build$ make [ 2%] Building CXX object src/CMakeFiles/osm2pgsql_lib.dir/db-check.cpp.o [ 4%] Building CXX object src/CMakeFiles/osm2pgsql_lib.dir/db-copy.cpp.o [ 6%] Building CXX object src/CMakeFiles/osm2pgsql_lib.dir/dependency-manager.cpp.o [ 8%] Building CXX object src/CMakeFiles/osm2pgsql_lib.dir/expire-tiles.cpp.o In file included from /home/gis/src/osm2pgsql/src/expire-tiles.hpp:16:0, from /home/gis/src/osm2pgsql/src/expire-tiles.cpp:24: /home/gis/src/osm2pgsql/src/geom.hpp:25:19: fatal error: variant: No such file or directory #include ^ compilation terminated. src/CMakeFiles/osm2pgsql_lib.dir/build.make:117: recipe for target 'src/CMakeFiles/osm2pgsql_lib.dir/expire-tiles.cpp.o' failed make[2]: *** [src/CMakeFiles/osm2pgsql_lib.dir/expire-tiles.cpp.o] Error 1 CMakeFiles/Makefile2:143: recipe for target 'src/CMakeFiles/osm2pgsql_lib.dir/all' failed make[1]: *** [src/CMakeFiles/osm2pgsql_lib.dir/all] Error 2 Makefile:135: recipe for target 'all' failed make: *** [all] Error 2

gsontheimer avatar Jun 12 '22 07:06 gsontheimer

Hi you can try with tag version 1.2.0

git clone https://github.com/openstreetmap/osm2pgsql.git --branch '1.2.0'

It is working for me

qsavoye avatar Jun 17 '22 16:06 qsavoye

Thank you so much for this hint! In effect, it allowed me to comple the entire instructions. But, alas, the Apache server running does not show anything. It reports “The requested URL was not found on this server” when using http://172.25.95.45/hot/16/34343/23014.png (the IP is the IP of the Apache server: “Apache/2.4.18 (Ubuntu) Server at 172.25.95.45 Port 80”).

Anything else I could check?

From: qsavoye @.> Sent: Freitag, 17. Juni 2022 18:24 To: der-stefan/OpenTopoMap @.> Cc: Gerhard M. Sontheimer @.>; Author @.> Subject: Re: [der-stefan/OpenTopoMap] Beginner's guides for a tile server - does not work any more (Issue #321)

Hi you can try with tag version 1.2.0

git clone https://github.com/openstreetmap/osm2pgsql.git --branch '1.2.0'

It is working for me

— Reply to this email directly, view it on GitHubhttps://github.com/der-stefan/OpenTopoMap/issues/321#issuecomment-1159037298, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AY3X5E2C4N6UMYREQLGSU63VPSRBLANCNFSM5YRKQRNQ. You are receiving this because you authored the thread.Message ID: @.@.>>

gsontheimer avatar Jun 18 '22 22:06 gsontheimer

Hint: This is what the Terminal shows, when trying to access http://172.25.95.45/hot/{z}/{x}/{y}.png

() renderd[3744]: Received request for map layer 'ajt' which failed to load renderd[3744]: DEBUG: Sending render cmd(4 ajt 16/34343/23014) with protocol version 2 to fd 36 renderd[3744]: DEBUG: Connection 0, fd 36 closed, now 0 left renderd[3744]: DEBUG: Got incoming connection, fd 36, number 1 renderd[3744]: DEBUG: Got incoming request with protocol version 2 renderd[3744]: DEBUG: Got command RenderPrio fd(36) xml(ajt), z(16), x(34343), y(23014), mime(image/png), options () renderd[3744]: Received request for map layer 'ajt' which failed to load renderd[3744]: DEBUG: Sending render cmd(4 ajt 16/34343/23014) with protocol version 2 to fd 36 renderd[3744]: DEBUG: Connection 0, fd 36 closed, now 0 left renderd[3744]: DEBUG: Got incoming connection, fd 36, number 1 renderd[3744]: DEBUG: Got incoming request with protocol version 2 renderd[3744]: DEBUG: Got command RenderPrio fd(36) xml(ajt), z(16), x(34343), y(23014), mime(image/png), options()

gsontheimer avatar Jun 18 '22 22:06 gsontheimer

Maybe related to #323: HTTP 404 when reaching zoom level 16 on the public tile server.

Juergeen avatar Jul 14 '22 13:07 Juergeen

Problem mentioned in #323 has gone away. If these two are related, it might be that this problem has gone, too.

Juergeen avatar Nov 25 '22 15:11 Juergeen