Description
Describe the bug...
python moin.py produces following: MoinMoin - 1.5.5a [97bf3d768af3 tip; DesktopEdition Release 1.5.5a-1]
Traceback (most recent call last):
- File "moin.py", line 54, in ?
- run(Config)
File "/home/toms/moin-desktop/MoinMoin/server/standalone.py", line 510, in run
- httpd = makeServer(config)
- return serverClass(config)
File "/home/toms/moin-desktop/MoinMoin/server/standalone.py", line 176, in init
SimpleServer.init(self, config)
File "/home/toms/moin-desktop/MoinMoin/server/standalone.py", line 63, in init
BaseHTTPServer.HTTPServer.init(self, address, MoinRequestHandler)
File "/usr/lib/python2.4/SocketServer.py", line 330, in init
- self.server_bind()
SocketServer.TCPServer.server_bind(self)
- self.socket.bind(self.server_address)
File "<string>", line 1, in bind
socket.gaierror: (-2, 'Name or service not known')
Steps to reproduce
- do this...
python moin.py
Example
Component selection
- general
Details
MoinMoin Version Release 1.5.5a-1 |
|
OS and Version Fedora Core 6 |
|
Python Version 2.4 |
|
Server Setup |
|
Server Details |
|
Language you are using the wiki in (set in the browser/UserPreferences) |
|
Workaround
Discussion
Please check what you have configured as your server address and port. Post that config line here.
I get exactly the same thing using MoinMoin DesktopEdition - 1.5.4 [release] in my Fedora Core 6. And there is default configuration for MoinMoin, nothing has been changed:
# Port (default 8080) # To serve privileged port under 1024 you will have to run as root port = 8080 # Interface (default 'localhost') # '' - will listen to any interface interface = 'localhost'
(PS: It worked properly in FC5)
Please do a ifconfig lo as root and post the result here (the interface should be up and 127.0.0.1), then do a ping localhost also. Can you start moin as root?
ping localhost didn't work and I finally got cause of the problem. I forgot that name 'localhost' has been changed to the another one in my computer settings. Use of real $HOST value instead of 'localhost' in moin.py solved the problem. Thanks and sorry for trouble. Hmm, I guess localhost should always resolve to 127.0.0.1 (and lo interface being up and running). If this is not the case, I guess you will run into lots of trouble, not only with moinmoin.
Googling helped me. It is the solved Fedora Core 6` bug dealing with network services. fedorasolved.org
Plan
- Priority:
- Assigned to:
- Status: