NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

hi someoneelse could you tell how can i use your modified mod_tile from

and edit the "openstreetmap-tiles-update-expire" file to fetch edits from so that i can update my tile server

i have tried to follow your page for installing tile server on ubuntu 1604, but whenever i try to update the tiles i get errors

asked 14 Jan '18, 23:01

engragy's gravatar image

accept rate: 0%

converted 14 Jan '18, 23:11

SomeoneElse's gravatar image

SomeoneElse ♦

This was originally a comment on but isn't really related to the original question there, so I created a new question from it.

(14 Jan '18, 23:12) SomeoneElse ♦

There are probably a couple of different reasons why you might want to apply updates from Geofabrik's Egypt updates rather than the whole planet - one is to minimise the size of the database as it grows, the other is to minimise the amount of data fetched from a remote server.

It's perhaps worth mentioning that if database size is the main concern, you don't need to worry since openstreetmap-tiles-update-expire trims the update being applied to just the boundaries you're interested in (you'll need to edit that line to match the latitude and longitude of Egypt).

Assuming you really do want to use Geofabrik's Egypt updates you'll need to edit the "baseurl" line in /var/lib/mod_tile/.osmosis/configuration.txt . That will normally look like this:


and that file is created like that by this line in the script, which calls "osmosis". You can either change osmosis to create the default differently (have a look at the parameters that osmosis supports, maybe there's an easy way of doing it) or manually change it - there's actually a line in the script that does just that in order to change the URL to use https (which is now required at, so you could modify it to use your desired location.

You'd then want to remove the trim_osc code as you no longer need to call it, and only call the resulting script once a day because that's the frequency of updates. You may also want to increase "maxinterval" in configuration.txt because you want to apply more than an hour's worth of changes at a time.

I haven't actually tested any of this, so I've left this answer editable to you can add in any missing steps.

permanent link
This answer is marked "community wiki".

answered 14 Jan '18, 23:33

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 16%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 14 Jan '18, 23:01

question was seen: 3,355 times

last updated: 14 Jan '18, 23:33

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum