A few days ago, I have mounted my own Tile server and I have used it for one week without problems, now I get the message 404 (Not Found) when Im navigating to parts of the world I did not navigate for the past week. Meaning, all Tiles that I had seen when everything was working OK, I can see them now allright, (seems like they are somehow cached?), but the parts of the map I did not navigate or Zoomed in when everything was working allright, throws that error and does not return any Tile. Is there a way to know that my server is working OK?
showing 5 of 10
show 5 more comments
|
According to @someoneElse comment, I can see how was renderd working via "$ cat /var/log/syslog". To make the service work again I did a "sudo /etc/init.d/renderd reload", and then a sudo /etc/init.d/renderd. Everything is working fine now. answered 05 Feb '19, 19:18 Leo_1991 |
What software are you using to render the tiles?
According to this guide: https://switch2osm.org/manually-building-a-tile-server-18-04-lts/
Its called "Renderd"
When you try and request tiles, what is written to "/var/log/syslog"?
Got this when panning a little to the left in the map. Not sure what it really means tough :/
Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Got incoming request with protocol version 2 Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Sending render cmd(4 ajt 13/2710/4968) with protocol version 2 to fd 9 Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Sending render cmd(4 ajt 13/2710/4967) with protocol version 2 to fd 10 Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Got command RenderPrio fd(7) xml(ajt), z(13), x(2712), y(4969), mime(image/png), options() Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Connection 0, fd 8 closed, now 3 left Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Connection 0, fd 9 closed, now 2 left Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Connection 0, fd 10 closed, now 1 left
Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Got incoming connection, fd 7, number 1 Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Got incoming connection, fd 8, number 2 Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Got incoming request with protocol version 2 Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Got command RenderPrio fd(7) xml(ajt), z(13), x(2710), y(4969), mime(image/png), options() Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Got incoming connection, fd 9, number 3 Feb 5 14:46:23 UBUNTU-PC renderd[1891]: Received request for map layer 'ajt' which failed to load Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Got incoming request with protocol version 2 Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Sending render cmd(4 ajt 13/2710/4969) with protocol version 2 to fd 7 Feb 5 14:46:23 UBUNTU-PC renderd[1891]: DEBUG: Got command RenderPrio fd(8) xml(ajt), z(13), x(2711), y(4969), mime(image/png), options()
I can see a " Received request for map layer 'ajt' which failed to load", Is that ok? :s
"Received request for map layer 'ajt' which failed to load" is not OK. If you do a "sudo /etc/init.d/renderd reload" it'll write why that map layer failed to load to "/var/log/syslog".
Allright! I did a sudo /etc/init.d/renderd reload Then what was being written to syslog did not show any error, it started as normal.. Then I did sudo /etc/init.d/renderd reload but said service was not initiated... And then I did a sudo /etc/init.d/renderd start Then I went to my map and now everything renders perfectly! SomeoneElse you are the Boss! :D :D
Tough I dont know why it has stopped in the first place, I can keep working now :), Thank you very much!!
... well that will be in "syslog" somewhere - just search from somewhere where tiles were loading for the first "failed to load" and see what else was happening then. It could be one of a number of things, such as out of memory.
Allright, I will look into it!