Webtiles Server Troubleshooting


Questions, Explanations, Howtos

Dungeon Dilettante

Posts: 3

Joined: Monday, 18th August 2014, 15:23

Post Monday, 18th August 2014, 15:52

Webtiles Server Troubleshooting

(Debian virtual machine, python 2.75, latest tornado via pip (speedups installed))
Hi, I was wondering if someone may have had any experience with this problem. I'm trying to get a webtiles server running on my pc, but the connection keeps closing. This is the log:

  Code:
2014-08-18 10:50:40,274 INFO: Webtiles server started! (PID: 3398)
2014-08-18 10:50:54,828 INFO: 200 GET / (192.168.1.4) 299.96ms
2014-08-18 10:50:54,976 INFO: 200 GET /static/style.css (192.168.1.4) 70.19ms
2014-08-18 10:50:54,993 INFO: 200 GET /static/stone_soup_icon-32x32.png (192.168.1.4) 15.54ms
2014-08-18 10:50:55,015 INFO: 200 GET /static/scripts/contrib/require.js (192.168.1.4) 21.98ms
2014-08-18 10:50:55,111 INFO: 200 GET /static/scripts/app.js (192.168.1.4) 21.62ms
2014-08-18 10:50:55,155 INFO: 200 GET /static/scripts/contrib/jquery.js (192.168.1.4) 15.82ms
2014-08-18 10:50:55,350 INFO: 200 GET /static/scripts/client.js (192.168.1.4) 8.83ms
2014-08-18 10:50:55,422 INFO: 200 GET /static/scripts/contrib/jquery.waitforimages.js (192.168.1.4) 10.46ms
2014-08-18 10:50:55,437 INFO: 200 GET /static/scripts/contrib/jquery.tablesorter.js (192.168.1.4) 12.83ms
2014-08-18 10:50:55,452 INFO: 200 GET /static/scripts/contrib/jquery.cookie.js (192.168.1.4) 14.65ms
2014-08-18 10:50:55,480 INFO: 200 GET /static/scripts/key_conversion.js (192.168.1.4) 27.28ms
2014-08-18 10:50:55,515 INFO: 200 GET /static/scripts/chat.js (192.168.1.4) 32.88ms
2014-08-18 10:50:55,520 INFO: 200 GET /static/scripts/comm.js (192.168.1.4) 4.71ms
2014-08-18 10:50:55,561 INFO: 200 GET /static/scripts/contrib/inflate.js (192.168.1.4) 36.79ms
2014-08-18 10:50:55,630 INFO: 200 GET /static/scripts/contrib/jquery.json.js (192.168.1.4) 1.59ms
2014-08-18 10:50:55,634 INFO: 200 GET /static/scripts/linkify.js (192.168.1.4) 1.86ms
2014-08-18 10:50:55,658 INFO: 200 GET /static/scripts/contrib/ba-linkify.min.js (192.168.1.4) 16.51ms
2014-08-18 10:50:55,676 ERROR: Uncaught exception in /socket
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/websocket.py", line 369, in _run_callback
    callback(*args, **kwargs)
  File "/home/david/crawl/crawl-ref/source/webserver/ws_handler.py", line 191, in open
    self.request.connection.stream.socket.fileno(),
AttributeError: 'NoneType' object has no attribute 'socket'
2014-08-18 10:50:55,692 INFO: #0     Socket closed. (0 bytes sent, compression ratio N/A%)
2014-08-18 10:51:01,762 INFO: 304 GET / (192.168.1.4) 0.95ms
2014-08-18 10:51:02,145 ERROR: Uncaught exception in /socket
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/websocket.py", line 369, in _run_callback
    callback(*args, **kwargs)
  File "/home/david/crawl/crawl-ref/source/webserver/ws_handler.py", line 191, in open
    self.request.connection.stream.socket.fileno(),
AttributeError: 'NoneType' object has no attribute 'socket'
2014-08-18 10:51:02,147 INFO: #1     Socket closed. (0 bytes sent, compression ratio N/A%)


The first time it serves up the files, the exception it sends causes the client to read connection failed. The rest fail right away and the client says it closed. I've been banging my head against my monitor trying to figure it out, figured I'd ask here before I get some rest. I'd be grateful if anyone knows anything.

Thanks

Dungeon Master

Posts: 125

Joined: Sunday, 8th May 2011, 21:54

Post Monday, 18th August 2014, 19:54

Re: Webtiles Server Troubleshooting

The problem is that your tornado version is too new. The good news is that the incompatibility is easily fixed, so I've done that and pushed the fix to master.

For this message the author edlothiol has received thanks:
oblivion4

Dungeon Dilettante

Posts: 3

Joined: Monday, 18th August 2014, 15:23

Post Tuesday, 19th August 2014, 06:02

Re: Webtiles Server Troubleshooting

Thanks!
I'm still having a problem getting into the game. I've tried compiling with WEBTILES=y, with and without DGAMELAUNCH=y. Going to try to dive into some of the code for a few hours.

EDIT: Oh, I went to the wrong location for the log.
  Code:
2014-08-19 02:35:29,259 INFO: 200 GET /gamedata/4d64462e2d509b35b0bdd781a4454d44afa3b4b7/tileinfo-wall.js (192.168.1.4) 7.55ms
2014-08-19 02:35:29,277 INFO: 200 GET /gamedata/4d64462e2d509b35b0bdd781a4454d44afa3b4b7/tileinfo-feat.js (192.168.1.4) 15.88ms
2014-08-19 02:35:29,280 INFO: 200 GET /gamedata/4d64462e2d509b35b0bdd781a4454d44afa3b4b7/tileinfo-icons.js (192.168.1.4) 2.05ms
2014-08-19 02:35:29,297 INFO: 200 GET /gamedata/4d64462e2d509b35b0bdd781a4454d44afa3b4b7/tileinfos.js (192.168.1.4) 16.33ms
2014-08-19 02:35:29,318 INFO: 200 GET /gamedata/4d64462e2d509b35b0bdd781a4454d44afa3b4b7/tileinfo-gui.js (192.168.1.4) 2.13ms
2014-08-19 02:35:38,627 INFO: #0     P1     Purging stale lock at ./rcs/running/Oblivion:2014-08-19.05:53:58.ttyrec, pid 8116.
2014-08-19 02:35:38,639 INFO: #0     P1     Starting dcss-web-master.
2014-08-19 02:35:38,674 INFO: #0     P1     Crawl FDs: fd22, fd20.


It hangs quietly on the loading screen after a lot of this:

  Code:
Traceback (most recent call last):
  File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 1338, in _execute
    self.finish()
  File "/usr/local/lib/python2.7/dist-packages/tornado/web.py", line 896, in finish
    self.request.finish()
  File "/usr/local/lib/python2.7/dist-packages/tornado/httputil.py", line 392, in finish
    self.connection.finish()
  File "/usr/local/lib/python2.7/dist-packages/tornado/http1connection.py", line 430, in finish
    self._expected_content_remaining)
HTTPOutputError: Tried to write 10730 bytes less than Content-Length
2014-08-19 02:35:29,259 ERROR: Cannot send error response after headers written

For your information and if you have any tips ;-P
I probably should just roll back tornado, but I think I'll check that out for a bit first.

Dungeon Dilettante

Posts: 3

Joined: Monday, 18th August 2014, 15:23

Post Tuesday, 19th August 2014, 13:40

Re: Webtiles Server Troubleshooting

I learned quite a bit about tornado and tcp but I couldn't figure out why it would be setting the packet size in the header incorrectly or whatever it seemed to be doing. I did end up rolling back tornado to 3.2.2 which i found to work, while 4.0 did not. It seems to be working perfectly, and the log is error free. Thanks for your help and for WebTiles itself. If you do end up getting the other bit working, I would be interested to know.

Thanks again

EDIT: I did get black textures once upon loading a saved game.

Return to Coding

Who is online

Users browsing this forum: No registered users and 4 guests

cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software for PTF.