<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi List,<br>
<br>
Im not sure if this is a bug with MapProxy, but i experience the
following problem a few times:<br>
<br>
I am running a seed on a debian system. While the seed is running,
the default logrotate of debian reloads the apache to change the
logfiles.<br>
And here comes the problem: If a seed is running and apache is
reloaded, i get the following error in MapProxy:<br>
<br>
[06:37:04] 21 91.47% 1400091.67882, 6134530.13841, 1413779.27218,
6141425.01693 (11331500 tiles) ETA: 2012-02-14-12:12:40<br>
Process TileSeedWorker-1:o0o0o ETA: 2012-02-14-12:12:4312:12:42<br>
Traceback (most recent call last):<br>
File "/usr/lib/python2.7/multiprocessing/process.py", line 258, in
_bootstrap<br>
self.run()<br>
File
"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/seed/seeder.py",
line 97, in run<br>
self.work_loop()<br>
File
"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/seed/seeder.py",
line 109, in work_loop<br>
exceptions=(SourceError, IOError))<br>
File
"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/seed/util.py",
line 107, in exp_backoff<br>
result = func(*args, **kw)<br>
File
"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/cache/tile.py",
line 126, in load_tile_coords<br>
created_tiles = creator.create_tiles(uncached_tiles)<br>
File
"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/cache/tile.py",
line 227, in create_tiles<br>
created_tiles = self._create_meta_tiles(meta_tiles)<br>
File
"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/cache/tile.py",
line 297, in _create_meta_tiles<br>
created_tiles.extend(self._create_meta_tile(meta_tile))<br>
File
"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/cache/tile.py",
line 309, in _create_meta_tile<br>
tile_size, self.tile_mgr.image_opts)<br>
File
"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/cache/tile.py",
line 436, in split_meta_tiles<br>
splitter = TileSplitter(meta_tile, image_opts)<br>
File
"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/image/tile.py",
line 93, in __init__<br>
self.meta_img = meta_tile.as_image()<br>
File
"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/image/__init__.py",
line 195, in as_image<br>
self._make_seekable_buf()<br>
File
"/opt/mapproxy/lib/python2.7/site-packages/mapproxy/image/__init__.py",
line 215, in _make_seekable_buf<br>
self._buf = StringIO(self._buf.read())<br>
File "/usr/lib/python2.7/socket.py", line 351, in read<br>
data = self._sock.recv(rbufsize)<br>
File "/usr/lib/python2.7/httplib.py", line 541, in read<br>
return self._read_chunked(amt)<br>
File "/usr/lib/python2.7/httplib.py", line 586, in _read_chunked<br>
raise IncompleteRead(''.join(value))<br>
IncompleteRead: IncompleteRead(7015 bytes read)<br>
<br>
<br>
MapProxy (1.2.1) stops and does not continue the seed. <br>
I tried this manually and could replicate the problem. Doing a
"apache reload" stops the seeding process, while a "apache restart"
is no problem (MapProxy continues its work).<br>
The quickfix i have done is to edit the /etc/logrotate.d/apache2<br>
and change the line with "reload" to "restart".<br>
<br>
If this is a bug in MapProxy, maybe it can be fixed in upcoming
MapProxy versions?<br>
<br>
Greetings,<br>
Johannes<br>
<br>
<br>
<br>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<style type="text/css">
#signature {
color: #333 !important;
font-family: monospace;
                        font-size: 12px;
padding: 10px;
line-height: 1.5em;
}
#highlight-container {
padding: 5px;
width: 450px;
margin: 30px 0;
border-width: 0px 0 0px 0;
border-right-width: 0;
border-left-width: 0;
border-style: dotted;
border-color: #333;
}
#signature a,
#signature a:link,
#signature a:visited,
#signature a:hover,
#signature a:active {
color: darkblue !important;
}
#signature address {
font-style: normal;
}
#col-container {
width: 550px;
}
#col-1 {
width: 180px; float: left;
}
#col-2 {
width: 320px; float: left;
}
#col-clear {
clear: both; padding-top: 30px;
}
#signature img {
margin-top:10px;
}
#col-container p,
#col-container address {
margin: 4px 0 0 0;
}
#signature .no-margin {
margin: 0;
}
#highlight {
font-weight: bold;
}
</style>
<div id="signature">
<div id="col-container">
<div id="col-1"> <br>
</div>
<div id="col-2">
<p class="no-margin"> Dipl.-Geogr. Johannes Weskamm<br>
— Anwendungsentwickler —<br>
</p>
<address> terrestris GmbH & Co. KG<br>
Pützchens Chaussee 56<br>
53227 Bonn </address>
<p> Tel: +49 (0)228 / 96 28 99 -555<br>
Fax: +49 (0)228 / 96 28 99 -57<br>
</p>
<p> Email: <a href="mailto:weskamm@terrestris.de">weskamm@terrestris.de</a><br>
Web: <a href="http://www.terrestris.de">http://www.terrestris.de</a>
</p>
</div>
<div id="col-clear">
<p> Amtsgericht Bonn, HRA 6835<br>
Komplementärin: terrestris Verwaltungsgesellschaft mbH<br>
vertreten durch: Hinrich Paulsen, Till Adams <br>
</p>
</div>
</div>
</div>
</div>
</body>
</html>