Description

Under Windows the standalone server fail to start with the following message if port < 1024 was used.

  File "C:\Documents and Settings\darkstar\Application Data\Python\Python26\site-packages\MoinMoin\web\serving.py", line 140, in run_server
    if port < 1024 and os.getuid() != 0:
AttributeError: 'module' object has no attribute 'getuid'

Steps to reproduce

Run

moin --config-dir=your_wiki server standalone --port=80

Details

MoinMoin Version

1.9.1

OS and Version

Windows 2000 SP4

Python Version

2.6.4

Server Setup

Standalone

Server Details

Language you are using the wiki in (set in the browser/UserPreferences)

russian

Workaround

Replace

if port < 1024 and os.getuid() != 0:

with

if port < 1024 and os.name == 'posix' and os.getuid() != 0:

in !MoinMoin/web/serving.py (the fix is the same as suggested in MoinMoinBugs/GetuidErrorOnStartup)

Discussion

Plan


CategoryMoinMoinBugFixed

MoinMoin: MoinMoinBugs/StandaloneServerGetuidFail (last edited 2010-01-22 08:54:19 by ThomasWaldmann)