From: Randall S. <ra...@tn...> - 2006-11-14 22:40:27
|
I'm trying to get webware going on VServer, but I'm getting the error below. Listening on ('127.0.0.1', 8086) Ready (0.36 seconds after launch) Listening on ('127.0.0.1', 8080) ('192.168.1.203', 8080) Traceback (most recent call last): File "/usr/local/lib/python2.4/site-packages/webware/WebKit/NewThreadedAppServer.py", line 530, in run server.mainloop() File "/usr/local/lib/python2.4/site-packages/webware/WebKit/NewThreadedAppServer.py", line 140, in mainloop handler = self._handlerCache[serverAddress].pop() KeyError: ('192.168.1.203', 8080) I'm accessing it from 192.168.1.102. I'm sure it's a VServer routing thing, but I haven't had trouble with Apache, Postgres, SSH, etc. Looking at the code, socket.getsockname() is returning 192.168.1.203. If I put this in: except KeyError: handler = self._handlerCache[(127.0.0.1, serverAddress[1])].pop() It then says that I'm trying to pop from an empty list. Ideas? Randall |
From: Randall S. <ra...@tn...> - 2006-11-14 22:45:35
|
Randall Smith wrote: > I'm trying to get webware going on VServer, but I'm getting the error below. > > Listening on ('127.0.0.1', 8086) > Ready (0.36 seconds after launch) > > Listening on ('127.0.0.1', 8080) > ('192.168.1.203', 8080) > Traceback (most recent call last): > File > "/usr/local/lib/python2.4/site-packages/webware/WebKit/NewThreadedAppServer.py", > line 530, in run > server.mainloop() > File > "/usr/local/lib/python2.4/site-packages/webware/WebKit/NewThreadedAppServer.py", > line 140, in mainloop > handler = self._handlerCache[serverAddress].pop() > KeyError: ('192.168.1.203', 8080) > > I'm accessing it from 192.168.1.102. I'm sure it's a VServer routing > thing, but I haven't had trouble with Apache, Postgres, SSH, etc. > Looking at the code, socket.getsockname() is returning 192.168.1.203. > If I put this in: > > except KeyError: > handler = self._handlerCache[(127.0.0.1, serverAddress[1])].pop() > > It then says that I'm trying to pop from an empty list. Ideas? > > Randall > self._handlerCache looks like this: {('127.0.0.1', 8080): [], ('127.0.0.1', 8086): []} Randall |
From: Randall S. <ra...@tn...> - 2006-11-14 22:56:46
|
Randall Smith wrote: > I'm trying to get webware going on VServer, but I'm getting the error below. > > Listening on ('127.0.0.1', 8086) > Ready (0.36 seconds after launch) > > Listening on ('127.0.0.1', 8080) > ('192.168.1.203', 8080) > Traceback (most recent call last): > File > "/usr/local/lib/python2.4/site-packages/webware/WebKit/NewThreadedAppServer.py", > line 530, in run > server.mainloop() > File > "/usr/local/lib/python2.4/site-packages/webware/WebKit/NewThreadedAppServer.py", > line 140, in mainloop > handler = self._handlerCache[serverAddress].pop() > KeyError: ('192.168.1.203', 8080) > > I'm accessing it from 192.168.1.102. I'm sure it's a VServer routing > thing, but I haven't had trouble with Apache, Postgres, SSH, etc. > Looking at the code, socket.getsockname() is returning 192.168.1.203. > If I put this in: > > except KeyError: > handler = self._handlerCache[(127.0.0.1, serverAddress[1])].pop() > > It then says that I'm trying to pop from an empty list. Ideas? > > Randall > NewThreadedAppServer.py:140 This works, but obviously isn't proper: if serverAddress not in self._handlerCache: serverAddress = ('127.0.0.1', serverAddress[1]) Randall |
From: Christoph Z. <ci...@on...> - 2006-11-15 20:57:33
|
Randall Smith wrote: > I'm trying to get webware going on VServer, but I'm getting the error below. > ... > "/usr/local/lib/python2.4/site-packages/webware/WebKit/NewThreadedAppServer.py", > ... That looks like a very old Webware. Did you try with Webware 0.9.2? -- Chris |