Hi All!
Just installed TG and started to go through the tutorial and I'm
already stuck! :-(
When I start the server I get:
2006/01/11 19:29:49 CONFIG INFO Server parameters:
2006/01/11 19:29:49 CONFIG INFO server.environment: development
2006/01/11 19:29:49 CONFIG INFO server.logToScreen: True
2006/01/11 19:29:49 CONFIG INFO server.logFile:
2006/01/11 19:29:49 CONFIG INFO server.protocolVersion: HTTP/1.0
2006/01/11 19:29:49 CONFIG INFO server.socketHost:
2006/01/11 19:29:49 CONFIG INFO server.socketPort: 8080
2006/01/11 19:29:49 CONFIG INFO server.socketFile:
2006/01/11 19:29:49 CONFIG INFO server.reverseDNS: False
2006/01/11 19:29:49 CONFIG INFO server.socketQueueSize: 5
2006/01/11 19:29:49 CONFIG INFO server.threadPool: 0
2006/01/11 19:30:20 HTTP INFO Port 8080 not bound on 'localhost'
Unhandled exception in thread started by <bound method Server._start of
<cherrypy._cpserver.Server object at 0xb7c2a60c>>
Traceback (most recent call last):
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.1-py2.4.egg/cherrypy/_cpserver.py",
line 123, in _start
self.start_http_server()
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.1-py2.4.egg/cherrypy/_cpserver.py",
line 177, in start_http_server
self.wait_for_http_ready()
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.1-py2.4.egg/cherrypy/_cpserver.py",
line 190, in wait_for_http_ready
wait_for_occupied_port(host, port)
File
"/usr/lib/python2.4/site-packages/CherryPy-2.1.1-py2.4.egg/cherrypy/_cpserver.py",
line 368, in wait_for_occupied_port
raise cherrypy.NotReady("Port not bound.")
cherrypy._cperror.NotReady: Port not bound.
However, netstat gives me the following:
$ netstat -ln | egrep "LISTEN\s*$"
tcp 0 0 0.0.0.0:8200 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:8080 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:5555 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:8021 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:8280 0.0.0.0:*
LISTEN
tcp 0 0 0.0.0.0:8282 0.0.0.0:*
LISTEN
tcp6 0 0 :::22 :::*
LISTEN
The port is being bound and no, it's not something else - I already
tried another port number and besides, it doesn't show anything bound
when I break the server script.
System information (Ubuntu Dapper):
Python 2.4.2 (#2, Nov 20 2005, 17:20:22)
[GCC 4.0.3 20051023 (prerelease) (Ubuntu 4.0.2-3ubuntu1)] on linux2
Can somebody please help?
Many thanks,
Jason.