[OSM-talk] Tile Server manual build 15.10 troubleshooting

Graham Jones grahamjones139 at gmail.com
Sun Jan 3 23:33:23 UTC 2016


You will find generate_tiles.py etc. in the subversion folder referenced
here: http://wiki.openstreetmap.org/wiki/OnDemandTileServer#Mapnik

the instructions in that wiki page are:

 svn co http://svn.openstreetmap.org/applications/rendering/mapnik

I don't think subversion is installed by default on ubuntu so you will
probably have to do 'sudo apt-get install subversion' for 'svn' to
work.


On 3 January 2016 at 23:27, Graham Jones <grahamjones139 at gmail.com> wrote:

> I'm a bit out of practice - haven't done much OSM stuff lately, but when
> you download the OSM mapnik things (to make the mapnik style file), it
> comes with a program called generate_tiles.py.  You give it the bounding
> box of the area you are interested in, and the mapnik style file, and it
> creates the set of tiles - you can put these in a location where your web
> server can get to them and they will be served by apache.
>
> I drew a picture of how it all fitted together in a presentation a while
> ago, because it is quite complicated as you have discovered!
> http://www.slideshare.net/jones139/rendering-openstreetmap-data-using-mapnik
>
> I started a wiki page to describe the different methods of making tiles
> once http://wiki.openstreetmap.org/wiki/Creating_your_own_tiles
>
> To get going I'd recommend just having a go with the generate_image.py and
> generate_tiles.py scripts to get something if you are not too interested in
> updating everything in real time etc.
>
> One thing to bear in mind though is that the method of creating the mapnik
> style file has changed since I used it - the default style is now once
> called 'carto', but once you have made the xml style file,
> generate_tiles.py and generate_image.py will work with it.
>
> I hope that helps.   I'm afraid it is rather late in the uk so I have to
> go to bed, but if you need anything else drop me a line and I'll reply
> tomorrow.
>
> Regards
>
>
> Graham.
>
> On 3 January 2016 at 23:14, Skyler F <electricity440 at gmail.com> wrote:
>
>> How do you use generate_tiles.py, maybe that would work better. All I
>> want to do is be able to request tiles in the Colorado area from an
>> application that needs tiles.
>>
>> On Sun, Jan 3, 2016 at 4:10 PM, Graham Jones <grahamjones139 at gmail.com>
>> wrote:
>>
>>> I'm afraid I am out of my depth now - I never used renderd - I just
>>> generated a set of tiles manually using generate_tiles.py once I had got
>>> the database and mapnik working - hopefully one of the folks that are more
>>> familiar with renderd will be able to help with that bit.
>>> Sorry!
>>>
>>> Graham.
>>>
>>> On 3 January 2016 at 23:02, Skyler F <electricity440 at gmail.com> wrote:
>>>
>>>> I am getting pretty frustrated. I have been working all day on this,
>>>> and just can't get it to work.
>>>>
>>>> So I type service apache2 reload, and I get Job for apache2.service
>>>> invalid?! Apache was working fine earlier but now, It won't even open up
>>>> the apache test page when I type localhost on my system.
>>>>
>>>> When I run sudo -u kd0whb renderd -f -c /usr/local/etc/renderd.conf
>>>> I get a bunch of syntax errors:
>>>>
>>>> renderd[5845]: Rendering daemon started
>>>> renderd[5845]: Initiating reqyest_queue
>>>> iniparser: syntax error in /usr/local/etc/renderd.conf (7):
>>>> -> ;[renderd01]
>>>> iniparser: syntax error in /usr/local/etc/renderd.conf (14):
>>>> -> ;[renderd02]
>>>> iniparser: syntax error in /usr/local/etc/renderd.conf (33):
>>>> -> ;** config options used by mod_tile, but not renderd **
>>>> iniparser: syntax error in /usr/local/etc/renderd.conf (45):
>>>> -> ;[style2]
>>>> iniparser: syntax error in /usr/local/etc/renderd.conf (52):
>>>> -> ;** config options used by mod_tile, but not renderd **
>>>>
>>>> Isn't this symbol a comment "  ;   "  ?
>>>> Why is it telling me syntax errors for the commented out lines?
>>>>
>>>> On Sun, Jan 3, 2016 at 3:17 PM, Skyler F <electricity440 at gmail.com>
>>>> wrote:
>>>>
>>>>> Well here is the error log:
>>>>>
>>>>> [Sun Jan 03 10:17:11.032835 2016] [mpm_event:notice] [pid 17637:tid
>>>>> 140426070529920] AH00489: Apache/2.4.12 (Ubuntu) configured -- resuming
>>>>> normal operations
>>>>> [Sun Jan 03 10:17:11.032907 2016] [core:notice] [pid 17637:tid
>>>>> 140426070529920] AH00094: Command line: '/usr/sbin/apache2'
>>>>> [Sun Jan 03 10:17:16.002678 2016] [mpm_event:notice] [pid 17637:tid
>>>>> 140426070529920] AH00493: SIGUSR1 received.  Doing graceful restart
>>>>> AH00558: apache2: Could not reliably determine the server's fully
>>>>> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
>>>>> globally to suppress this message
>>>>> [Sun Jan 03 10:17:16.005685 2016] [mpm_event:notice] [pid 17637:tid
>>>>> 140426070529920] AH00489: Apache/2.4.12 (Ubuntu) configured -- resuming
>>>>> normal operations
>>>>> [Sun Jan 03 10:17:16.005693 2016] [core:notice] [pid 17637:tid
>>>>> 140426070529920] AH00094: Command line: '/usr/sbin/apache2'
>>>>> [Sun Jan 03 10:17:33.559173 2016] [mpm_event:notice] [pid 17637:tid
>>>>> 140426070529920] AH00493: SIGUSR1 received.  Doing graceful restart
>>>>> AH00558: apache2: Could not reliably determine the server's fully
>>>>> qualified domain name, using 127.0.1.1. Set the 'ServerName' directive
>>>>> globally to suppress this message
>>>>> [Sun Jan 03 10:17:33.562223 2016] [mpm_event:notice] [pid 17637:tid
>>>>> 140426070529920] AH00489: Apache/2.4.12 (Ubuntu) configured -- resuming
>>>>> normal operations
>>>>> [Sun Jan 03 10:17:33.562231 2016] [core:notice] [pid 17637:tid
>>>>> 140426070529920] AH00094: Command line: '/usr/sbin/apache2'
>>>>> [Sun Jan 03 15:15:05.934508 2016] [mpm_event:notice] [pid 17637:tid
>>>>> 140426070529920] AH00491: caught SIGTERM, shutting down
>>>>>
>>>>>
>>>>> On Sun, Jan 3, 2016 at 3:11 PM, Graham Jones <grahamjones139 at gmail.com
>>>>> > wrote:
>>>>>
>>>>>> I haven't seen that before - I always use "/etc/init.d/apache2
>>>>>> restart", but i think that is just the old fashioned way of doing what you
>>>>>> are doing.
>>>>>> I'd look at the bottom of  /var/log/apache2/error.log - the messages
>>>>>> are often helpful.
>>>>>>
>>>>>> Graham.
>>>>>>
>>>>>> On 3 January 2016 at 22:05, Skyler F <electricity440 at gmail.com>
>>>>>> wrote:
>>>>>>
>>>>>>> Ok. I finished the apache configuration and am almost done, but when
>>>>>>> I typed
>>>>>>> service apache2 reload, I got an error
>>>>>>>
>>>>>>> Job for apache2.service failed because the control process exited
>>>>>>> with error code. See "systemctl status apache2.service" and "journalctl
>>>>>>> -xe" for details.
>>>>>>>
>>>>>>> Anything I can try to see what wen't wrong. I have been updating
>>>>>>> that google drive file with everything I have done so far.
>>>>>>>
>>>>>>> On Sun, Jan 3, 2016 at 1:42 PM, Skyler F <electricity440 at gmail.com>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Nevermind, I found the link, part of it was on the next line.
>>>>>>>>
>>>>>>>> On Sun, Jan 3, 2016 at 1:36 PM, Skyler F <electricity440 at gmail.com>
>>>>>>>> wrote:
>>>>>>>>
>>>>>>>>> Ok, I am on the download OSM bright, but there is a 404 error when
>>>>>>>>> I get here
>>>>>>>>>
>>>>>>>>> wget http//www.naturalearthdata.com/download/10m/cultural
>>>>>>>>>
>>>>>>>>> On Sun, Jan 3, 2016 at 12:45 PM, Sebastiaan Couwenberg <
>>>>>>>>> sebastic at xs4all.nl> wrote:
>>>>>>>>>
>>>>>>>>>> On 03-01-16 19:58, Skyler F wrote:
>>>>>>>>>> > Notice: dependencies not met for plugin 'occi', not building...
>>>>>>>>>> > Notice: dependencies not met for plugin 'rasterlite', not
>>>>>>>>>> building
>>>>>>>>>>
>>>>>>>>>> librasterlite has been deprecated by its author [0], consequently
>>>>>>>>>> rasterlite support has been removed [1] from Mapnik core in
>>>>>>>>>> 3.0.1. The
>>>>>>>>>> osm & occi support were moved out of core in the same release. [2]
>>>>>>>>>>
>>>>>>>>>> [0] http://www.gaia-gis.it/gaia-sins/
>>>>>>>>>> [1] https://github.com/mapnik/mapnik/issues/2977
>>>>>>>>>> [2] https://github.com/mapnik/mapnik/blob/v3.0.2/CHANGELOG.md#301
>>>>>>>>>>
>>>>>>>>>> Kind Regards,
>>>>>>>>>>
>>>>>>>>>> Bas
>>>>>>>>>>
>>>>>>>>>> --
>>>>>>>>>>  GPG Key ID: 4096R/6750F10AE88D4AF1
>>>>>>>>>> Fingerprint: 8182 DE41 7056 408D 6146  50D1 6750 F10A E88D 4AF1
>>>>>>>>>>
>>>>>>>>>> _______________________________________________
>>>>>>>>>> talk mailing list
>>>>>>>>>> talk at openstreetmap.org
>>>>>>>>>> https://lists.openstreetmap.org/listinfo/talk
>>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>>
>>>>>>>>> --
>>>>>>>>> Skyler Fennell
>>>>>>>>> amsatnet.info
>>>>>>>>> KDØWHB
>>>>>>>>> electricity440 at gmail.com
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> --
>>>>>>>> Skyler Fennell
>>>>>>>> amsatnet.info
>>>>>>>> KDØWHB
>>>>>>>> electricity440 at gmail.com
>>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Skyler Fennell
>>>>>>> amsatnet.info
>>>>>>> KDØWHB
>>>>>>> electricity440 at gmail.com
>>>>>>>
>>>>>>> _______________________________________________
>>>>>>> talk mailing list
>>>>>>> talk at openstreetmap.org
>>>>>>> https://lists.openstreetmap.org/listinfo/talk
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> --
>>>>>> Graham Jones <http://google.com/+GrahamJones>
>>>>>> Hartlepool, UK.
>>>>>>
>>>>>
>>>>>
>>>>>
>>>>> --
>>>>> Skyler Fennell
>>>>> amsatnet.info
>>>>> KDØWHB
>>>>> electricity440 at gmail.com
>>>>>
>>>>
>>>>
>>>>
>>>> --
>>>> Skyler Fennell
>>>> amsatnet.info
>>>> KDØWHB
>>>> electricity440 at gmail.com
>>>>
>>>> _______________________________________________
>>>> talk mailing list
>>>> talk at openstreetmap.org
>>>> https://lists.openstreetmap.org/listinfo/talk
>>>>
>>>>
>>>
>>>
>>> --
>>> Graham Jones <http://google.com/+GrahamJones>
>>> Hartlepool, UK.
>>>
>>
>>
>>
>> --
>> Skyler Fennell
>> amsatnet.info
>> KDØWHB
>> electricity440 at gmail.com
>>
>> _______________________________________________
>> talk mailing list
>> talk at openstreetmap.org
>> https://lists.openstreetmap.org/listinfo/talk
>>
>>
>
>
> --
> Graham Jones <http://google.com/+GrahamJones>
> Hartlepool, UK.
>



-- 
Graham Jones <http://google.com/+GrahamJones>
Hartlepool, UK.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/talk/attachments/20160103/bf6b8b51/attachment-0001.html>


More information about the talk mailing list