Re: [OSM-dev] Wiki Pageview Stats

2014-07-06 Thread Rob Nickerson
I would like the same as it would help me to focus my attention on the most
read part of the wiki. Previous requests have unfortunately fallen on deaf
ears. Fingers crossed that with two people asking for it we may actually
get somewhere. Perhaps if Harry was also interested.

Rob
___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


[OSM-dev] strange error message from mod_tile

2014-07-06 Thread Stephan Knauss

Hi,

I've set up a new machine with a mod_tile / Tirex rendering stack.

I see some strange errors in the log file which I don't understand. Any 
help would be appreciated.


I can reproduce it when requesting a tile image considered dirty.
The rendering itself looks fine. For example loading the tile as /dirty 
will trigger a rendering which is visible in tirex-status.


Requesting the image as image will not trigger a rendering. It produces 
strange log lines.


Here are the log lines (shortened for readability):

[tile:debug] ./src/mod_tile.c(1381): tile_translate: op(tile_serve) 
xml(osm) mime(image/png) z(14) x(12612) y(7238)
[tile:info] tile_storage_hook: handler(tile_serve), 
uri(/osm/14/12612/7238.png)
[tile:debug] ./src/mod_tile.c(365): tile_state: determined state of osm 
12612 7238 14 on store 7fbe01e40a60: Tile size: 7124, expired: 1 
created: 1404246259
[tile:debug] ./src/mod_tile.c(166): Connecting to renderd on Unix socket 
/var/lib/tirex/modtile.sock
22:03:21.814464 [tile:info] Requesting style(osm) z(14) x(12612) y(7238) 
from renderer with priority 7
22:03:21.815113 [tile:warn] request_tile: Failed to read response from 
rendering socket No such file or directory


So mod_tile was able to open the socket.
The select() call returned immediately.

But then an error is reported.

Can I trust errno in this situation? I only know that recv() did not 
return the expected number of bytes.



Having tirex-master running in debug mode also gives no clue what's 
happening. I see the request being received.
tirex-master[32229]: Listening for commands on socket 
/var/run/tirex/master.sock
tirex-master[32229]: Listening for mod_tile connections on 
/var/lib/tirex/modtile.sock (UNIX)

tirex-master[32229]: Listening for backend responses
tirex-master[32229]: connection from mod_tile accepted
tirex-master[32229]: read request from mod_tile: ver=2 cmd=7 x=12612 
y=7238 z=14 map=osm


Stephan

___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


Re: [OSM-dev] strange error message from mod_tile

2014-07-06 Thread Stephan Knauss

Hi,

answering myself in case others run into the same problem and find it in 
the archive.


On 06.07.2014 23:15, Stephan Knauss wrote:

I see some strange errors in the log file which I don't understand. Any
help would be appreciated.

22:03:21.814464 [tile:info] Requesting style(osm) z(14) x(12612) y(7238)
from renderer with priority 7
22:03:21.815113 [tile:warn] request_tile: Failed to read response from
rendering socket No such file or directory


Issue was caused by mod_tile sending the unknown command id 7 
(cmdRenderLow) to tirex.


This was added by Kai in August 2013
Add another priority level (RenderLow) to accommodate rerenders after 
style changes


In addition to Render and RenderPrio, add another priority level of 
RenderLow.

https://github.com/openstreetmap/mod_tile/commit/1b4c56d8eda631179b5d03e8472e981425eb1a5f


As this command was unknown to tirex it failed to create a job and 
returned an error.


My perl is quite limited. I have no idea why I did not see any message 
of this line:
Carp::croak(need prio for new job)unless (defined 
$self-{'prio'});


Still issue was clearly the missing priority due to the command being 
out of bounds.


This command is now given a priority (25) below bulk as a completely 
expired planet is one of the worst things that can happen from a 
renderer perspective. Default tirex puts these in the background queue.



Fix tested and submitted.
https://trac.openstreetmap.org/changeset/30510/subversion/applications/utils/tirex

Stephan


___
dev mailing list
dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/dev


[josm-dev] JOSM wants to add a certificate?

2014-07-06 Thread Maarten Deen
I opened JOSM (webstart) and it came with a question to install a 
certification authority for localhost with a sha1 thumbprint
I have no knowledge of having generated a sha1 thumbprint on my windows 
computer, so I am interested to know how JOSM can ask this.
I also don't know why JOSM needs this. Is this something from JOSM or 
has some worm crawled in? (yes, this was the first thing that entered my 
mind).


Lets make it clear that, not having created this thumbprint myself, I 
can not verify this thumbprint and that this seems a very strange way of 
operating.


Regards,
Maarten


___
josm-dev mailing list
josm-dev@openstreetmap.org
https://lists.openstreetmap.org/listinfo/josm-dev