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

With my tile server up and running, I went to experiment with updating the data.

My original data covered the US state California (2018-05-28T20:00:02Z). In openstreetmap-tiles-update-expire my changes included -b -124.0 30.0 -113.0 42.0 which, unless I goofed something, should encompass the geographic mass desired.

Here was my command: sudo ~/src/mod_tile/openstreetmap-tiles-update-expire 2018-05-28T20:00:02Z

alt text

And the content of state.txt:

#Mon May 28 19:59:04 UTC 2018

Please help me understand how to interpret these results. The run.log only stated that the Osmosis replication system was initializing, and so I'm assuming nothing was imported or update. Does this mean there were no updates found? Or, is something not configured right so the process failed silently?



asked 30 May '18, 18:46

tim_rohrer's gravatar image

accept rate: 100%

edited 30 May '18, 18:48


sudo ~/src/mod_tile/openstreetmap-tiles-update-expire 2018-05-28T20:00:02Z has initialised the replication system to that date; run it without the date to update.

Actually I wouldn't tend to do it through sudo but through a normal user account, but the principle is the same.

(30 May '18, 18:55) SomeoneElse ♦

Running without the date gave me: rm: cannot remove '/var/lib/mod_tile/changes.osc.gz': No such file or directory rm: cannot remove '/var/lib/mod_tile/dirty_tiles.29567': No such file or directory

Now I'm researching that.

The reason for sudo is that I did most of my compiling with my regular account but had created a tileserver user for running things. I'm now learning it would have been easier to create the tileserver user first, then install/build everything under that. Or, maybe there is a better way?

(30 May '18, 19:11) tim_rohrer

I'd pick one user and use that throughout.

The "cannot remove" error might mean it failed to dowbload it in the first place - edit the script to not remove the temporary files that it creates (or rename them to "something.$$" so that you can look at the files afterwards). Check you're using https, not http, throughout. If you're using openstreetmap's version of openstreetmap-tiles-update-expire rather than the switch2osm version, you'll need to change it for https.

(30 May '18, 19:19) SomeoneElse ♦

I'm using switch2osm, but I'll double check the https when I go through the file.

To be clear, the script should do the download, right?

(30 May '18, 19:36) tim_rohrer

Yes, the script should download and import the file.

(30 May '18, 19:38) SomeoneElse ♦

Turns out my tail had died and froze the terminal. Not sure why but the additional notices I now see in the log indicate Osmosis isn't happy about something. I think I've address the permissions issues; my tileserver account owns everything other /var/lib/mod_tile.

I had installed osmosis from Ubuntu repo, and it is failing for what appear to be java errors.

I'm off to troubleshoot that now. I might be back soon with a new post :-)

(30 May '18, 20:09) tim_rohrer
showing 5 of 6 show 1 more comments

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: 30 May '18, 18:46

question was seen: 1,336 times

last updated: 30 May '18, 20:09

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