I followed exactly the following tutorial, and everything worked without problems. http://switch2osm.org/serving-tiles/manually-building-a-tile-server/ In the end, at the end of the sequence:
I am receiving a segmentation fault message:
Running dmesg, the following error appears:
or
Trying to restart manually the httpd server, another error appears:
Looking in dmesg (the segfault with libc appears twice):
So, where is the problem ? I can't figure out. Should I downgrade some packages ? asked 05 Aug '12, 13:02 aes693 SomeoneElse ♦
showing 5 of 11
show 6 more comments
|
The segmentation fault in renderd appears to be triggered by a long standing bug in libxml[1,2] and therefore outside of the control of mod_tile/renderd One can also trigger the segmentation fault with "xmllint --noent /etc/mapnik-osm-data/osm.xml" (or whereever the path of your osm style sheet) The problem seems to be a missing external entity in your osm style sheet. Try running "xmllint /etc/mapnik-osm-data/osm.xml" and see if it tells you which entity is missing, or not correctly configured. Once the style sheet is correctly configured, renderd should no longer segfault. The segmentation fault in apache / mod_tile should be fixed in the latest code. So recompiling and re-installing mod_tile after an svn update should fix the problem. [1] https://github.com/mapnik/mapnik/issues/566 [2] https://bugs.launchpad.net/lxml/+bug/502959 answered 27 Aug '12, 04:48 apmon Sorry for delay and thank you for answer. I'm looking forward to find a solution to display the country's tiles. Btw: is it possible to put all of these to work under CentOS ? Thanks.
(19 Sep '12, 23:05)
aes693
|
Try using the ready-made packages from http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/ instead of compiling your own. Segmentation faults in Apache (likely from mod_tile) and in renderd are unlikely to have the same root cause; both components access the tile directories and the renderd.conf file but that's about all they have in common. answered 14 Aug '12, 09:55 Frederik Ramm ♦ Thank you for your response. Well, I tried to eliminate the possible causes, one by one. I commented the following lines from the file /etc/apache2/sites-available/default LoadTileConfigFile /usr/local/etc/renderd.confModTileRenderdSocketName /var/run/renderd/renderd.sockModTileRequestTimeout 0ModTileMissingRequestTimeout 30Then, I restarted the Apache: myuser@gis:~$ sudo /etc/init.d/apache2 restart
apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName [...etc..] [ OK ]
(14 Aug '12, 11:28)
aes693
Then, I wanted to see if the modules (also mod_tile) were loaded: myuser@gis:/var/log/apache2$ apachectl -t -D DUMP_MODULES /usr/sbin/apachectl: 87: ulimit: error setting limit (Operation not permitted) apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName Loaded Modules: core_module (static) [...other 23 modules...] tile_module (shared) Syntax OK So, the next question: if the module [tile_module] was corrupted, shouldn't appeared at the startup at least a warning ? Thank you very much for your hint. I will dig deeper in parallel.
(14 Aug '12, 11:29)
aes693
Ok, following ready-made packages from http://switch2osm.org/serving-tiles/building-a-tile-server-from-packages/ I have a new situation: and I compiled. Then I unmarked those 4 lines above. I restarted the apache2 service. Restarting web server apache2 [...] [Fri Aug 17 22:15:23 2012] [notice] Loading tile config default at /osm_tiles2/ for zooms 0 - 18 from tile directory /var/lib/mod_tile with extension .png and mime type image/png [ OK ]
(17 Aug '12, 20:21)
aes693
1
Then I typed as in the guide: sudo mkdir /var/run/renderd sudo chown myuser /var/run/renderd renderd -f -c /usr/local/etc/renderd.conf but the result it's the same: renderd[10342]: Rendering daemon started [...etc...] Running in foreground mode... renderd[10342]: Starting stats thread Segmentation fault (core dumped) myuser@gis:~$ dmesg ... [ 1702.604071] renderd[9561]: segfault at 1b ip 00007f0fcc8cb600 sp 00007f0fbe1723b0 error 4 in libxml2.so.2.7.8[7f0fcc874000+151000]
(17 Aug '12, 20:25)
aes693
by the way: I used also the .deb packages, but without success: libapache2-mod-tile_0.4-11~precise2_amd64.deb and renderd_0.4-11~precise2_amd64.deb from http://ppa.launchpad.net/kakrueger/openstreetmap/ubuntu/pool/main/liba/libapache2-mod-tile/
(18 Aug '12, 07:13)
aes693
1
So far I haven't been able to reproduce this segfault. I just followed the instructions in a fresh (fully up-to-date) Ubuntu 12.04 (64bit) VM and did not have any issues. It is correctly rendering and I can view the tiles in the browser via mod_tile. Can you give any additional information that might help track these issues down?
(18 Aug '12, 09:19)
apmon
@apmon: sure. Please, give me details how can I provide a fully accurate report.
(18 Aug '12, 18:11)
aes693
Ok, I installed the old 10.04.4 LTS onto an old 32bit single core AMD 2ghz machine
(21 Aug '12, 22:35)
aes693
1
Partially solved, some questions remains.
(22 Aug '12, 22:42)
aes693
showing 5 of 9
show 4 more comments
|
@SomeoneElse, Frederik Ramm, apmon: I solved finally. answered 22 Sep '12, 19:06 aes693 |
@apmon: answered 21 Sep '12, 16:30 aes693 |
Are you using the original OSM map styles or have you made any changes to the XML file?
I downloaded a map for one country. I didn't change anything.
I just installed this morning Ubuntu 12.04 LTS (x86_64). The machine has 4GB ram and 3Ghz cpu (AMD). Following the tutorial, I installed the packages (some updated). At the end I am confronted with the same issue. It's not the mod_tile.so. It's renderd that what gaves me errors. Now the segfault errors are related to: libxml2.so.2.7.8 and libc-2.15.so. So, could be a compiling problem ?
I am newbie using gdb, but if I'll find the issue (hopefully), I'll report it.
Same problem here. Have you found a solution? I have tried the same instructions on three Ubuntu 12.04. Can anyone help?
The segfault in apache might be solved after you do an svn update.
Not sure about the issue in renderd yet though. A more informative stack trace would hopefully be helpful tracking this down.
Just another data point, but when I ran through the more recent version http://switch2osm.org/serving-tiles/manually-building-a-tile-server-12-04/ a couple of days ago there were no segfault issues.
@SomeoneElse: thanks for information; I will double check asap if there are changes and if it's working here too.
@SomeoneElse: thank you very much, now I see, that how-to web page was modified on the top, in the software installation section: now, there are 29 packages to be installed (18 previous). Postgresql server is 9.1 (I added myself manually before this modification anyway; previous was 8.4 @ Ubuntu 10.04). At "Install Mapnik library" section, that downloading and compiling the source of ... 'sudo apt-get install libltdl3-dev libpng12-dev libtiff4-dev libicu-dev [...]' disappeared. I hope it will work now; I will install it from zero again.
I will repeat another question now, so please, be patient with me: my problem can be related to my wish of using a map for only one country instead the whole planet ? Do I have to open a new topic / search (more) for an answer ? Sorry for bothering with newbie questions and thank you all who answered for your effort & help.
Generally you'd ask one question per question, because it gets confusing otherwise, but no - the fact that you've imported only one country rather than the whole planet wouldn't cause the issue that you're seeing; the only difference it would make would be that the data import would happen faster and require less memory.
I know and I'm sorry. I should write in the title of the topic from the beggining/or in the body of the question: '(working with only a country map)' and express my worry because I didn't follow 100% the tutorial (because of the hardware and also the uselessness of using the map of the whole planet). Thank you for your answer !