{"action":"created","issue":{"url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/1680","labels_url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/1680/labels{/name}","comments_url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/1680/comments","events_url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/1680/events","html_url":"https://github.com/geoadmin/mf-chsdi3/issues/1680","id":108259299,"number":1680,"title":"MapProxy 50x","user":{"login":"cedricmoullet","id":319676,"avatar_url":"https://avatars.githubusercontent.com/u/319676?v=3","gravatar_id":"","url":"https://api.github.com/users/cedricmoullet","html_url":"https://github.com/cedricmoullet","followers_url":"https://api.github.com/users/cedricmoullet/followers","following_url":"https://api.github.com/users/cedricmoullet/following{/other_user}","gists_url":"https://api.github.com/users/cedricmoullet/gists{/gist_id}","starred_url":"https://api.github.com/users/cedricmoullet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cedricmoullet/subscriptions","organizations_url":"https://api.github.com/users/cedricmoullet/orgs","repos_url":"https://api.github.com/users/cedricmoullet/repos","events_url":"https://api.github.com/users/cedricmoullet/events{/privacy}","received_events_url":"https://api.github.com/users/cedricmoullet/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/geoadmin/mf-chsdi3/labels/1st%20prio","name":"1st prio","color":"e11d21"}],"state":"open","locked":false,"assignee":{"login":"procrastinatio","id":1236739,"avatar_url":"https://avatars.githubusercontent.com/u/1236739?v=3","gravatar_id":"","url":"https://api.github.com/users/procrastinatio","html_url":"https://github.com/procrastinatio","followers_url":"https://api.github.com/users/procrastinatio/followers","following_url":"https://api.github.com/users/procrastinatio/following{/other_user}","gists_url":"https://api.github.com/users/procrastinatio/gists{/gist_id}","starred_url":"https://api.github.com/users/procrastinatio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/procrastinatio/subscriptions","organizations_url":"https://api.github.com/users/procrastinatio/orgs","repos_url":"https://api.github.com/users/procrastinatio/repos","events_url":"https://api.github.com/users/procrastinatio/events{/privacy}","received_events_url":"https://api.github.com/users/procrastinatio/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2015-09-25T04:13:06Z","updated_at":"2015-09-25T13:27:18Z","closed_at":null,"body":"Request to  http://wmts12.geo.admin.ch/1.0.0/ch.swisstopo.vec25-eisenbahnnetz/default/20090401/2056/17/5/6.png produces this issue: https://logs.bgdi.ch/kibana/#/dashboard/elasticsearch/20150925_Issue50x \r\n\r\nis produced by:\r\n\r\n[Fri Sep 25 03:35:51 2015] [error] No handlers could be found for logger \"mapproxy.wsgiapp\"\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245] Traceback (most recent call last):\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/MapProxy-1.7.0-py2.7.egg/mapproxy/wsgiapp.py\", line 181, in __call__\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     resp = self.handlers[handler_name].handle(req)\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/MapProxy-1.7.0-py2.7.egg/mapproxy/service/base.py\", line 30, in handle\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     return handler(parsed_req)\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/MapProxy-1.7.0-py2.7.egg/mapproxy/service/wmts.py\", line 90, in tile\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     tile = tile_layer.render(request, coverage=limited_to, decorate_img=decorate_img)\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/MapProxy-1.7.0-py2.7.egg/mapproxy/service/tile.py\", line 307, in render\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     dimensions=dimensions, with_metadata=True)\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/MapProxy-1.7.0-py2.7.egg/mapproxy/cache/tile.py\", line 106, in load_tile_coord\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     created_tiles = creator.create_tiles([tile])\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/MapProxy-1.7.0-py2.7.egg/mapproxy/cache/tile.py\", line 215, in create_tiles\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     created_tiles = self._create_single_tiles(tiles)\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/MapProxy-1.7.0-py2.7.egg/mapproxy/cache/tile.py\", line 239, in _create_single_tiles\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     created_tiles.extend(self._create_single_tile(tile))\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/MapProxy-1.7.0-py2.7.egg/mapproxy/cache/tile.py\", line 258, in _create_single_tile\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     source.as_buffer(self.tile_mgr.image_opts)\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/MapProxy-1.7.0-py2.7.egg/mapproxy/image/__init__.py\", line 150, in as_buffer\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     self._buf = img_to_buf(self._img, image_opts=image_opts)\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/MapProxy-1.7.0-py2.7.egg/mapproxy/image/__init__.py\", line 289, in img_to_buf\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     defaults=defaults, quantizer=quantizer)\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/MapProxy-1.7.0-py2.7.egg/mapproxy/image/__init__.py\", line 311, in quantize\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     img = img.quantize(colors, Image.FASTOCTREE)\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]   File \"/var/www/vhosts/mf-chsdi3/private/chsdi/buildout/eggs/Pillow-2.8.1-py2.7-linux-x86_64.egg/PIL/Image.py\", line 992, in quantize\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245]     im = self.im.quantize(colors, method, kmeans)\r\n[Fri Sep 25 03:35:51 2015] [error] [client 10.220.6.245] ValueError: image has wrong mode"},"comment":{"url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/comments/143222194","html_url":"https://github.com/geoadmin/mf-chsdi3/issues/1680#issuecomment-143222194","issue_url":"https://api.github.com/repos/geoadmin/mf-chsdi3/issues/1680","id":143222194,"user":{"login":"procrastinatio","id":1236739,"avatar_url":"https://avatars.githubusercontent.com/u/1236739?v=3","gravatar_id":"","url":"https://api.github.com/users/procrastinatio","html_url":"https://github.com/procrastinatio","followers_url":"https://api.github.com/users/procrastinatio/followers","following_url":"https://api.github.com/users/procrastinatio/following{/other_user}","gists_url":"https://api.github.com/users/procrastinatio/gists{/gist_id}","starred_url":"https://api.github.com/users/procrastinatio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/procrastinatio/subscriptions","organizations_url":"https://api.github.com/users/procrastinatio/orgs","repos_url":"https://api.github.com/users/procrastinatio/repos","events_url":"https://api.github.com/users/procrastinatio/events{/privacy}","received_events_url":"https://api.github.com/users/procrastinatio/received_events","type":"User","site_admin":false},"created_at":"2015-09-25T13:27:17Z","updated_at":"2015-09-25T13:27:17Z","body":"This is described in https://github.com/geoadmin/mf-chsdi3/issues/1669\r\n\r\nThese three layers are mixing image type (problems arise when a tile is converted to greyscale):\r\n\r\n`ch.swisstopo.vec25-eisenbahnnetz`\r\n`ch.swisstopo.swissbuildings3d`\r\n`ch.astra.ivs-nat-verlaeufe`\r\n\r\n\r\n\r\n\r\n\r\n"}}