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

I searched this forum but found nothing. Also documentation on render_list seems to be missing, where can I find that?

This is my output from render_list:

debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile
Rendering client
Starting 1 rendering threads
Rendering all tiles from zoom 0 to zoom 20
Rendering all tiles for zoom 0 from (0, 0) to (0, 0)
Rendering all tiles for zoom 1 from (0, 0) to (1, 1)
Rendering all tiles for zoom 2 from (0, 0) to (3, 3)
Rendering all tiles for zoom 3 from (0, 0) to (7, 7)
Rendering all tiles for zoom 4 from (0, 0) to (15, 15)
Rendering all tiles for zoom 5 from (0, 0) to (31, 31)
Rendering all tiles for zoom 6 from (0, 0) to (63, 63)

I tried lots of different ways to call render_list but always this result.

I also checked with htop, no cpu or memory activity.

Any help is welcome, thanks.

asked 21 Oct '21, 20:50

Gerb_1963's gravatar image

Gerb_1963
46114
accept rate: 0%

edited 21 Oct '21, 20:51

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866

1

tried lots of different ways to call render_list but always this result.

Could you give us a clue what you have actually tried?

(21 Oct '21, 20:52) SomeoneElse ♦

I tried various command lines:

  1. With or without socket;
  2. With or without database specification;
  3. Various zoom levels;
  4. Basically anything that the help of render_list tells me and what I found on stackoverflow and similar sites.
(22 Oct '21, 16:11) Gerb_1963
1

If it helps, every morning a server I look after runs

https://github.com/SomeoneElseOSM/mod_tile/blob/zoom/rerender_low.sh

which in turn calls "render_list":

https://github.com/alx77/render_list_geo.pl/blob/master/render_list_geo.pl#L52

You still haven't told us exactly what options you're trying and what the effect is (we know that no tiles are rendered, but does a request for a new tile appear in the log? Does an error occur there? You have not said), but hopefully an example of "one that does work" should help you to find out what the problem is.

(22 Oct '21, 16:27) SomeoneElse ♦

Although "render_list" isn't directly mentioned by the switch2osm documentation, I've just tested it on a Debian 11 server set up according to those instructions. When I run

sudo -u _renderd render_list -a -n 1  --map=s2o --tile-dir=/var/lib/mod_tile/s2o --min-zoom=0 --max-zoom=6

I get tiles at zoom levels 0-6 rendered as expected. The "s2o" in that command refers to the entry in "renderd.conf" that I want to render tiles for, and "s2o" is what you get by default on Debian (and if I remember correctly, Ubuntu 21.04). The following is written to stdout:

debug: init_storage_backend: initialising file storage backend at: /var/lib/mod_tile/s2o
Rendering client
Starting 1 rendering threads
Rendering all tiles from zoom 0 to zoom 6
Rendering all tiles for zoom 0 from (0, 0) to (0, 0)
Rendering all tiles for zoom 1 from (0, 0) to (1, 1)
Rendering all tiles for zoom 2 from (0, 0) to (3, 3)
Rendering all tiles for zoom 3 from (0, 0) to (7, 7)
Rendering all tiles for zoom 4 from (0, 0) to (15, 15)
Rendering all tiles for zoom 5 from (0, 0) to (31, 31)
Rendering all tiles for zoom 6 from (0, 0) to (63, 63)
Waiting for rendering threads to finish

*****************************************************
*****************************************************
Total for all tiles rendered
Meta tiles rendered: Rendered 88 tiles in 236.36 seconds (0.37 tiles/s)
Total tiles rendered: Rendered 5632 tiles in 236.36 seconds (23.83 tiles/s)
Total tiles handled: Rendered 88 tiles in 236.36 seconds (0.37 tiles/s)
*****************************************************
Zoom 00: min:  2.4    avg:  2.4     max:  2.4     over a total of      2.4s in 1 requests
Zoom 01: min:  2.6    avg:  2.6     max:  2.6     over a total of      2.6s in 1 requests
Zoom 02: min:  2.8    avg:  2.8     max:  2.8     over a total of      2.8s in 1 requests
Zoom 03: min:  3.4    avg:  3.4     max:  3.4     over a total of      3.4s in 1 requests
Zoom 04: min:  1.9    avg:  2.5     max:  3.2     over a total of     10.1s in 4 requests
Zoom 05: min:  2.1    avg:  3.0     max:  5.3     over a total of     48.0s in 16 requests
Zoom 06: min:  2.0    avg:  2.6     max:  5.3     over a total of    167.2s in 64 requests
*****************************************************
*****************************************************

in syslog, there's output as each tile is rendered:

Oct 31 11:16:11 debianvm65 renderd[19309]: renderd[19309]: DEBUG: START TILE s2o 6 56-63 56-63, new metatile
Oct 31 11:16:11 debianvm65 renderd[19309]: renderd[19309]: Rendering projected coordinates 6 56 56 -> 15028131.257100|-20037508.342800 20037508.342800|-15028131.257100 to a 8 x 8 tile
Oct 31 11:16:11 debianvm65 render_list: DEBUG: Sending render cmd(6 s2o 6/56/56) with protocol version 2 to fd 3
Oct 31 11:16:11 debianvm65 renderd[19309]: DEBUG: Got incoming request with protocol version 2
Oct 31 11:16:11 debianvm65 renderd[19309]: DEBUG: Got command RenderBulk fd(7) xml(s2o), z(6), x(56), y(56), mime(image/png), options()
Oct 31 11:16:11 debianvm65 renderd[19309]: DEBUG: START TILE s2o 6 56-63 56-63, new metatile
Oct 31 11:16:11 debianvm65 renderd[19309]: Rendering projected coordinates 6 56 56 -> 15028131.257100|-20037508.342800 20037508.342800|-15028131.257100 to a 8 x 8 tile
Oct 31 11:16:14 debianvm65 renderd[19309]: renderd[19309]: DEBUG: DONE TILE s2o 6 56-63 56-63 in 2.794 seconds
permanent link

answered 31 Oct '21, 11:28

SomeoneElse's gravatar image

SomeoneElse ♦
36.9k71370866
accept rate: 16%

If you omit the "--map" parameter you might see something like this in syslog:

Oct 31 11:01:13 debianvm65 renderd[19309]: No map for: default

and that can cause render_list to "just sit there" waiting for a message that never comes. However, if you tell it which tiles to render, it will work.

(31 Oct '21, 11:36) SomeoneElse ♦

Hi SomeoneElse,

That works like a charm. I wonder how you figured that out. Is it documented somewhere or does one need to be an experienced technician to be able to do this?

Thank you very much, I appreciate this.

Ciao, Gerben

(31 Oct '21, 15:09) Gerb_1963

The "sudo -u _renderd render_list -a -n 1 --map=s2o --tile-dir=/var/lib/mod_tile/s2o --min-zoom=0 --max-zoom=6" part was basically me putting together a minimum set of options, based on what "render_list --help" says.

I initially tried it without "--map" and got the "No map for: default" error (and to be fair "render_list --help" specifically says "--map defaults to 'default'", rather than "s2o").

(31 Oct '21, 22:28) SomeoneElse ♦

For completeness, --min-x, --min-y, --max-x and --max-y also all work as expected.

(31 Oct '21, 22:30) SomeoneElse ♦

I wasn't aware that the part "sudo -u _renderd " must be in the command line. I couldn't find any documentation on that.

(01 Nov '21, 15:50) Gerb_1963

The 21.04 guide does have "sudo -u _renderd" in it where it's describing commands that interact with the database. That guide says:

“_renderd” is used for the renderd daemon, and we’ll need to make sure lots of the commands below are run as that user.

It doesn't mention render_list at all, so doesn't explicitly say you need to run that via "sudo -u _renderd" too. Given that a few people have tripped up over render_list (see other help questions here) it might be worth mentioning, perhaps in a separate guide.

(01 Nov '21, 16:03) SomeoneElse ♦
showing 5 of 6 show 1 more comments

Conclusion: The solution to this question is that render list needs to be run in a command line with "sudo -u _renderd" in front of it. That is in an ubuntu 21.04 environment with the guide to build a tileserver from the switch2osm site.

permanent link

answered 01 Nov '21, 15:54

Gerb_1963's gravatar image

Gerb_1963
46114
accept rate: 0%

As I said, I tried all options that I can think of and nothing worked. The commands that you mention are not available for me. I followed the guide to install a server on ubuntu 2104.

How can I check for tile requests in a log?

permanent link

answered 25 Oct '21, 12:09

Gerb_1963's gravatar image

Gerb_1963
46114
accept rate: 0%

edited 25 Oct '21, 12:12

1

I followed the guide to install a server on ubuntu 2104.

Which one are you following?

(25 Oct '21, 12:23) SomeoneElse ♦

You're not reallly helping, forget it. This is a good reason not to switch to OSM. No documentation, no help.

(25 Oct '21, 12:26) Gerb_1963
2

We're trying to, but if you literally won't tell us the full command that you ran before an error occurred you're requiring psychic powers of anyone why tries to help you.

(25 Oct '21, 12:57) SomeoneElse ♦

Hi. I have a similarity problem. I would like to understand if render_list is working or not. I have run:

render_list  -a  -f  -m ajt  -z 0  -Z 10

and I get:

Rendering client
Starting 1 rendering threads
Rendering all tiles from zoom 0 to zoom 10
Rendering all tiles for zoom 0 from (0, 0) to (0, 0)
Rendering all tiles for zoom 1 from (0, 0) to (1, 1)
Rendering all tiles for zoom 2 from (0, 0) to (3, 3)
Rendering all tiles for zoom 3 from (0, 0) to (7, 7)
Rendering all tiles for zoom 4 from (0, 0) to (15, 15)
Rendering all tiles for zoom 5 from (0, 0) to (31, 31)
Rendering all tiles for zoom 6 from (0, 0) to (63, 63)

But it has been standing there for more than a day. I would like to be sure it's working! Thanks

permanent link

answered 04 Jul '22, 10:58

rmoggia's gravatar image

rmoggia
211
accept rate: 0%

I'd suggest that you look at the answer above that explains how it is supposed to work - do you get any errors in syslog?

(28 Sep '22, 13:02) SomeoneElse ♦

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×10

question asked: 21 Oct '21, 20:50

question was seen: 3,956 times

last updated: 28 Sep '22, 13:02

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