Page 1 of 1

No images in WebTiles

PostPosted: Thursday, 13th September 2018, 18:45
by 8bittheologian
I am trying to run my own WebTiles server. Currently, I have the server up and running. However, there are no tile images. The UI loads properly. I can navigate to the URL for the images and access them properly. I am using an Ubuntu 16.04 LTS 64-bit server. Python version is 2.7 and Tornado version is 4.5.3.

Here is the relevant log dump:
  Code:
2018-09-13 14:23:51,161 ERROR: Uncaught exception GET /gamedata/c1aad586e7d0e6e06c43856daf9dfdc7a23ca33d/wall.png (195.21.139.177)
HTTPServerRequest(protocol='https', host='URL:port', method='GET', uri='/gamedata/c1aad586e7d0e6e06c43856daf9dfdc7a23ca33d/wall.png', version='HTTP/1.1', remote_ip='X.X.X.X', headers={'Accept-Language': 'en-US$
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1514, in _execute
    self.finish()
  File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 993, in finish
    self.request.finish()
  File "/usr/local/lib/python2.7/dist-packages/tornado/httputil.py", line 419, in finish
    self.connection.finish()
  File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py", line 449, in finish
    self._expected_content_remaining)
HTTPOutputError: Tried to write 1439777 bytes less than Content-Length
2018-09-13 14:23:51,164 ERROR: Cannot send error response after headers written

Re: No images in WebTiles

PostPosted: Thursday, 13th September 2018, 23:52
by advil
I don't know anything about this particular error, but webtiles doesn't work with tornado 4. You'll need to manually install tornado 3, I think any instance of 3 will do (I have 3.2.1 installed for testing), this is documented in the README in the webserver folder.

Re: No images in WebTiles

PostPosted: Friday, 14th September 2018, 00:39
by 8bittheologian
I have no idea how I missed that in the documentation. Going back to look at it now, it's obvious. Thank you for your help. I downgraded Tornado, and now everything works properly. For the benefit of anyone else having this problem, the latest version of Tornado 3.X is Tornado 3.2.2 and can be installed by issuing
  Code:
sudo pip install tornado==3.2.2