Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.

Ticket #364 (closed defect: worksforme)

Opened 13 years ago

Last modified 12 years ago

CherryPy unnable to bind port

Reported by: nospam@… Owned by: anonymous
Priority: normal Milestone:
Component: CherryPy Version: 0.8
Severity: blocker Keywords:
Cc:

Description

When running project-start.py script I get the following error with CherryPy?:

2006/01/07 01:36:21 CONFIG INFO Server parameters: 2006/01/07 01:36:21 CONFIG INFO server.environment: development 2006/01/07 01:36:21 CONFIG INFO server.logToScreen: True 2006/01/07 01:36:21 CONFIG INFO server.logFile: 2006/01/07 01:36:21 CONFIG INFO server.protocolVersion: HTTP/1.0 2006/01/07 01:36:21 CONFIG INFO server.socketHost: 2006/01/07 01:36:21 CONFIG INFO server.socketPort: 5141 2006/01/07 01:36:21 CONFIG INFO server.socketFile: 2006/01/07 01:36:21 CONFIG INFO server.reverseDNS: False 2006/01/07 01:36:21 CONFIG INFO server.socketQueueSize: 5 2006/01/07 01:36:21 CONFIG INFO server.threadPool: 0 2006/01/07 01:36:26 HTTP INFO Port 5141 not bound on 'localhost' Unhandled exception in thread started by <bound method Server._start of <cherrypy._cpserver.Server object at 0xb7b4e4cc>> Traceback (most recent call last):

File "/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cpserver.py", line 123, in _start

self.start_http_server()

File "/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cpserver.py", line 177, in start_http_server

self.wait_for_http_ready()

File "/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0-py2.4.egg/cherrypy/_cpserver.py", line 190, in wait_for_http_ready

wait_for_occupied_port(host, port)

File "/usr/local/lib/python2.4/site-packages/CherryPy-2.1.0-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.

Changin the port or defining server.socketHost="localhost" does not help. The machnine is running Debian sarge, and has a iptables masqueradin set up with 3 NICs.

I have looked all over the net in search of a solution.

Change History

comment:1 Changed 13 years ago by bbockelm@…

From glancing at the traceback and CherryPy? source, this means that the port you are trying to connect to is currently being used. Check 'netstat' to see what ports are open.

comment:2 Changed 13 years ago by anonymous

  • Status changed from new to closed
  • Resolution set to worksforme

Looks like either TG is running twice, or the port is in use by another application. Resolving 'Works for me'.

Note: See TracTickets for help on using tickets.