Socket Error: Address already in use
Hello all,
I'm trying to get the Trac bug tracking system installed on my system(running snow leopard). After quite a bit of tinkering I've managed to install Trac, but as of now, its a standalone entity. I am trying to get this linked to the apache webserver, but having no success. Has anybody done this before? I haven't used unix to this level before and so am struggling with that as well... any info on this is much appreciated.
One of the instructions to test run Trac as a standalone component was using this command tracd --port 8000 /path/to/myfolder (according to installation instructions at http://trac.edgewall.org/wiki/TracInstall). I stopped it using Ctrl-Z and now when I try to run it again, get the following message and error:
Traceback (most recent call last):
File "/usr/local/bin/tracd", line 8, in <module>
load entrypoint('Trac==0.12', 'console_scripts', 'tracd')()
File "build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py", line 290, in main
File "build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py", line 257, in serve
File "build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py", line 109, in _init_
File "build/bdist.macosx-10.6-universal/egg/trac/web/wsgi.py", line 231, in _init_
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketS erver.py", line 400, in _init_
self.server_bind()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/BaseHTT PServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketS erver.py", line 411, in server_bind
self.socket.bind(self.server_address)
File "<string>", line 1, in bind
socket.error: [Errno 48] Address already in use
Can somebody please guide me to fix this?
Message was edited by: capemacuser
I realize that closing the terminal window "frees" the socket. But, is there something else that I can do while stopping the running application to ensure that the socket also gets "freed"?
I'm trying to get the Trac bug tracking system installed on my system(running snow leopard). After quite a bit of tinkering I've managed to install Trac, but as of now, its a standalone entity. I am trying to get this linked to the apache webserver, but having no success. Has anybody done this before? I haven't used unix to this level before and so am struggling with that as well... any info on this is much appreciated.
One of the instructions to test run Trac as a standalone component was using this command tracd --port 8000 /path/to/myfolder (according to installation instructions at http://trac.edgewall.org/wiki/TracInstall). I stopped it using Ctrl-Z and now when I try to run it again, get the following message and error:
Traceback (most recent call last):
File "/usr/local/bin/tracd", line 8, in <module>
load entrypoint('Trac==0.12', 'console_scripts', 'tracd')()
File "build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py", line 290, in main
File "build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py", line 257, in serve
File "build/bdist.macosx-10.6-universal/egg/trac/web/standalone.py", line 109, in _init_
File "build/bdist.macosx-10.6-universal/egg/trac/web/wsgi.py", line 231, in _init_
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketS erver.py", line 400, in _init_
self.server_bind()
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/BaseHTT PServer.py", line 108, in server_bind
SocketServer.TCPServer.server_bind(self)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/SocketS erver.py", line 411, in server_bind
self.socket.bind(self.server_address)
File "<string>", line 1, in bind
socket.error: [Errno 48] Address already in use
Can somebody please guide me to fix this?
Message was edited by: capemacuser
I realize that closing the terminal window "frees" the socket. But, is there something else that I can do while stopping the running application to ensure that the socket also gets "freed"?
imac 10.1, Mac OS X (10.6.4), Trac bug tracker