openstreetmap / mod_tile

Renders map tiles with mapnik and serves them using apache
http://wiki.openstreetmap.org/wiki/Mod_tile
GNU General Public License v2.0
289 stars 190 forks source link

Debian Packages for version 0.5 #217

Closed pantierra closed 3 years ago

pantierra commented 4 years ago

The packages for Debian (and Ubuntu) are in Debian's NEW queue and waiting for review, which may take a few months.

In the meantime it would be very nice if people could test them already thoroughly. For your convenience I set up a personal repository, which contain the following software:

To use this repository, add a corresponding line to your /etc/apt/sources.list:

Then import the key that I used to sign the packages:

After that you can install the available software as any other package:

For example a simple

Please test and find as many errors as possible (!), use any complex setup you are running! Now we can fix things easily and it would be good to get the maturest possible packages into Debian and Ubuntu for the next releases. Let me know if you find any problem, either here or reach me on IRC as xamanu.

Thank you!

pantierra commented 4 years ago

Packages have been accepted in the NEW queue and are available in experimental now:

Next step: Let's bring them into sid (unstable).

Has anybody have had a chance to test them already with the provided test repository?

pantierra commented 3 years ago

Quick heads-up: the packages are in Debian unstable and have passed successfully the piuparts QA. Thus they are expected to appear soon in testing and then prepared to be included into the next versions of Debian and Ubuntu.

pantierra commented 3 years ago

The packages reached Debian Testing, which means, as long as there are no critical bugs we can expect them to go into the next stable versions of Debian and Ubuntu. Please help testing, so we can make sure it works for everybody when they are being published. Thanks.

schaechtelchen commented 3 years ago

For example a simple

* $ `apt install renderd-example-map` should install all dependendies and give you a simple test map unter http://localhost/renderd-example-map (should look like [this temporary link](https://example.openbuildingmap.org/renderd-example-map/)).

worked as expected on debian buster Linux v7 4.19.0-10-amd64 #1 SMP Debian 4.19.132-1 (2020-07-24) x86_64 GNU/Linux

What can I do more?

pantierra commented 3 years ago

You could install a full OSM stack, or if you have a special setup with custom tile styles it would be nice to know it all works.

SomeoneElseOSM commented 3 years ago

Thanks for this. I've created https://switch2osm.org/serving-tiles/manually-building-a-tile-server-debian-11/ based on it. Integrating it in this way makes the setup much easier. Currently the "switch2osm" page is a standalone one not linked to the menus - I'll link it in when people have had a chance to test it.

Edit: Also see https://www.openstreetmap.org/user/SomeoneElse/diary/394799 . I've now linked it it to the menus as well.

SomeoneElseOSM commented 3 years ago

One question (and this may be me not understanding how logging on Debian normally works) is that if I do:

sudo tail -f /var/log/syslog | grep " TILE "

I get

Nov 15 21:52:44 debianvm65 renderd[17845]: renderd[17845]: DEBUG: START TILE s2o 13 4072-4079 2632-2639, new metatile
Nov 15 21:52:44 debianvm65 renderd[17845]: DEBUG: START TILE s2o 13 4072-4079 2632-2639, new metatile
Nov 15 21:53:06 debianvm65 renderd[17845]: renderd[17845]: DEBUG: DONE TILE s2o 13 4072-4079 2632-2639 in 22.003 seconds
Nov 15 21:53:06 debianvm65 renderd[17845]: DEBUG: DONE TILE s2o 13 4072-4079 2632-2639 in 22.003 seconds

(every message appears twice). This is after following https://switch2osm.org/serving-tiles/manually-building-a-tile-server-debian-11/ exactly, apart from loading a different .pbf, and no other changes.

pantierra commented 3 years ago

Thanks, @SomeoneElseOSM, it looks like Systemd is forwarding the log entries (a second time) to the syslog.

On newer systems with systemd, syslog is more a legacy thing and journalctl is the preferred way to dig into logs. But it should not cause duplicated entries in syslog in any case.

pantierra commented 3 years ago

@SomeoneElseOSM, I created an issue to fix this in mod_tile (https://github.com/openstreetmap/mod_tile/issues/219), in the meantime the duplicated error can hopefully be avoided by setting ForwardToSyslog=no in the /etc/systemd/journald.conf.

SomeoneElseOSM commented 3 years ago

Thanks - more generally, "having more control over how mod_tile writes messages" has got to be a good thing, and it is something that other people have asked for elsewhere.

pantierra commented 3 years ago

Closing here, as the packages are included in Debian.