-
Notifications
You must be signed in to change notification settings - Fork 67
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deploying new Mapnik version (3.0.19) #155
Comments
You have a strange definition of "available" which apparently encompasses things which are not, in fact, available. We already have the latest available version (3.0.9) as listed on that page installed:
I can only assume you are looking at what is available for Ubuntu 18.04, which isn't even released yet. We are running Ubuntu 16.04 which is the current LTS release and if you want us to upgrade mapnik before the next LTS release then we will need a backport. |
Sorry, you have not even mentioned what kind of new released Ubuntu package is enough for you.
|
We have our own PPA at https://launchpad.net/~osmadmins/+archive/ubuntu/ppa so just building packages in a PPA that we can copy into that is fine. That said as 18.04 is close I doubt it's worth the effort - we would normally wait for 18.04.1 before starting upgrades but we can probably make an exception if it's urgent and 18.04 is only a month away. |
Thanks, that's much more helpful. I would try to backport then and it's good to be ready for future upgrades if needed:
backportpackage -b -w . -s bionic -d xenial mapnik and of course test if the rendering is OK - or there are some other requirements you have? |
The easiest way, rather than us trying to give you permissions to that PPA, is for you to build in your own and then I can copy the packages across. As far as building it - do whatever works for you. I know next to nothing about building Ubuntu packages so can't really offer much advice. Using All that said, as I said, this seems like it might be overkill given that Bionic is due out shortly. |
I think it's about time to solve it. 18.04.1 might be well ahead - we don't know when, but it doesn't look to me that it's worth waiting for:
Also these bugs are haunting us for a long time already and people do care about it - they still keep asking us about them. |
Did you miss the part where I said we could upgrade before the .1 release if it was important? |
I missed what upgrade do you mean. From my POV Mapnik upgrade is very important and long overdue (unfortunately up to 3.0.18 there were still some bugs), but I'm not aware of distro upgrade influence on osm-carto rendering, so it can occur at any time server admins decide to. |
The best way to get it would be to get it backported directly in Ubuntu. Then everyone can use it, which will help osm-carto development. If not solving this upstream, then
Yes we do, it'll be approximately concurrent with 18.10. When backporting, you always need to pay attention to the rdepends of a package, but in this case, pay special attention to the mod_tile packages. Best case, they work without a rebuild. Worst case, source changes are needed which need to be done upstream. The middle case is they need a rebuild, in which case, their debian_revision needs changing.
Does this give us enough to increment the (debian/ubuntu) revision and rebuild when it's necessary? |
It all means that I need to look closer at the Ubuntu development. I have already talked with Bas (Debian package maintainer) and he's willing to help me with packaging, but he won't prepare Ubuntu packages. It looks like they are just automatically re-built using Debian sources, so it's hard to know whom could I ask there and who decides when to rebuild Debian packages (and for which exact Ubuntu version). So I need to start with my PPA anyway. I was just sending package description, not binary packages, and it was compiled and built on the site for different architectures, so the package source should be always available. |
I was able to upload test1 version to my PPA with something like (shortened version):
I started with simply ln -s mapnik_3.0.19+ds.orig.tar.gz mapnik_3.0.19+ds-1~ubuntu16.04.1.orig.tar.gz and after that it was able to upload the sources ( https://launchpad.net/~kocio/+archive/ubuntu/mapnik ), then the remote compilation for i386 and amd64 went smooth. Now I look the way to test if it works - I had the problems with making node-mapnik for Kosmtik, but that's something with compilation options I had before. What would be the easiest way to test it with |
I managed somehow to install mod_tile from OSMF PPA package inside xenial instance. If I understand properly, this is a mentioned problem with packages compatibility:
I'll try to rebuild |
libapache2-mod-tile doesn't build, unfortunately:
|
I have contacted Frederik Ramm about this problem, as he is described as the maintainer of |
For completeness, "mapnik-config -v" now returns "3.0.19" on an 18.04 installation. |
Did you try building libapache2-mod-tile package and running rendering stack? |
No, I just followed https://switch2osm.org/manually-building-a-tile-server-18-04-lts/ , which has as little "build from scratch" in it as possible. I didn't try and build it in 16.04 (which I suspect is what you're asking about here).
Yes, and it's happily rendered tiles since "mapnik-config -v" has been returning "3.0.19". |
I've met @talaj (Mapnik developer I've been trying to fix the original issue with) at the SotM PL this weekend and it turned out that he is also able to do some packaging stuff. Here is his PPA with untested packages for xenial built by Ubuntu packaging infrastructure: https://launchpad.net/~talaj/+archive/ubuntu/osm-mapnik/+packages Could somebody test them? |
I guess that python-mapnik should be needed too, built with the same Mapnik version. It might not be included in that package. |
Thanks. I have made a copy of @talaj repository: https://launchpad.net/~kocio/+archive/ubuntu/mapnik-talaj and sent a backport of mapnik-python package data to the Ubuntu build farm, unfortunately rebuilding process has failed: Does anybody know what to do with it? |
A backport of python-mapnik from Bionic, built against the version 3.0.19 of Mapnik, is also in https://launchpad.net/~talaj/+archive/ubuntu/osm-mapnik/+packages now. |
The problem with
|
Did you rebuild the renderd package? |
I took all these packages from PPA. But there's something strange - when I run renderd by hand to debug it, it shows the old Mapnik version:
But it looks like the Mapnik library is in proper version:
and renderd is really using it, since when I hide it, it does not start:
|
You need to rebuild renderd because you've changed its dependencies, its version should be
Since that's what it was built against. |
Well, on talaj PPA it's |
I checked the build log and it looks okay, so my guess is you're not running what you installed. Check that you're running the renderd from the package. Use full paths for everything. Do |
Thanks, you're right. I've made a copy of this PPA at https://launchpad.net/~kocio/+archive/ubuntu/mapnik-talaj with rebuild request, just to be sure that it's building fine. Then I was using my copy instead of his one. The problem was probably the order in which it has been copied and built. When new mapnik package was not available and libapache2-mod-tile started to build, Ubuntu farm took the old package:
So the bug was stupid, but it was good to make it, since now I'm aware that if OSMF admins will copy these packages, they need to be careful and do it one by one. @tomhughes I can confirm now that new packages directly from talaj PPA are working good on xenial with the current osm-carto release v4.10.0 (see the castle icon): |
I had time now to test talaj PPA and it works. |
@tomhughes Are there any plans about deploying these packages on OSMF servers? We have tests confirming that they're OK, but I lack any feedback now. I'm not even sure what else might be needed (and what could it be?) or if the path is clear and it just needs some time to be installed by admins. |
Well 18.04 is out now so we can probably just upgrade. |
Ubuntu 18.04.1 is expected at 26.07. I'm not sure what is better from your point of view, but do you have all the packages for Bionic? I mean mapnik and python-mapnik are in the universe, but what about mod_tile/renderd? |
As I told you before while we would normally wait for 18.04.1 I'm sure we can make an exception if there's a good reason. As to other packages, well we already have packages for anything we need that isn't in Ubuntu so we should just be able to rebuild them or use yours. What we want to avoid is using more custom packages than necessary, especially very complicated ones like mapnik. |
I see. For me making exception for 18.04 is legitimate option for such a visible bug. Do you need some help with that? Any general time frame for deployment you can think of? |
Hi, Tom, are there any plans regarding this upgrade? |
The upgrade of the render servers is now complete and the configuration now looks like this:
The database has been reimported using the new osm2pgsql and all auxiliary indexes from the index.sql file in the style repository have been created. |
Thanks. I wrote a diary entry on the practical impact of this for mappers. |
Related to #132.
Due to the common problems with label rendering for areas (see gravitystorm/openstreetmap-carto#1465 and gravitystorm/openstreetmap-carto#2457) there's a need to upgrade Mapnik to a version which is tested as bug free - at the moment this means 3.0.19. The package is available for Ubuntu now:
https://launchpad.net/ubuntu/+source/mapnik
Please give a feedback what's the plan for OSMF servers, because I'd like it to be synchronized with our testing environment.
The text was updated successfully, but these errors were encountered: