[Moin-user] Problems after Debian upgrade

Tasslehoff Burrfoot tasslehoff at burrfoot.it
Tue May 21 18:28:00 EDT 2013


Hi all, I got some problems on a MoinMoin 1.97 instance running on a Debian
box recently upgraded from sqeeze to wheezy.
I installed MoinMoin some weeks before the upgrade following the great
guide on the official website and everything worked like a charm, all
problems started since the upgrade.
MoinMoin runs on:
- Apache 2.2.22
- mod_wsgi/3.3
- mod_python/3.3.1
- Python/2.7.3
- webserver owner "apache:apache"

I found some references on this url (
http://moinmo.in/MoinMoinQuestions/Errors#Internal_Server_Error) but
checking permissions all seems ok.
Using python as webserver and test.wsgi results ok, same result running
python as root or apache user (
http://www.scribd.com/doc/142843621/WSGI-Test-Script-pdf)

--- apache error log
[Tue May 21 23:06:27 2013] [error] [client 192.168.1.200] mod_wsgi
(pid=15099): Target WSGI script '/usr/local/share/moin/moin.wsgi' cannot be
loaded as Python module.
[Tue May 21 23:06:27 2013] [error] [client 192.168.1.200] mod_wsgi
(pid=15099): Exception occurred processing WSGI script
'/usr/local/share/moin/moin.wsgi'.
[Tue May 21 23:06:27 2013] [error] [client 192.168.1.200] Traceback (most
recent call last):
[Tue May 21 23:06:27 2013] [error] [client 192.168.1.200]   File
"/usr/local/share/moin/moin.wsgi", line 43, in <module>
[Tue May 21 23:06:27 2013] [error] [client 192.168.1.200]     from
MoinMoin.web.serving import make_application
[Tue May 21 23:06:27 2013] [error] [client 192.168.1.200] ImportError: No
module named MoinMoin.web.serving

--- apache permissions on python directory
ritz:/usr/lib# ls -l /usr/lib/ | grep "python" | grep -v "lib"
drwxr-xr-x 20 root root        12264 nov 27  2011 python2.4
drwxr-xr-x 21 root root        13824 nov 29  2011 python2.5
drwxr-xr-x 23 root root        13120 mag  7 03:10 python2.6
drwxr-xr-x 26 root root        13592 mag  7 03:08 python2.7
drwxr-xr-x  3 root root           80 mag  7 01:54 python3
drwxr-xr-x  2 root root          112 mag  7 03:09 python-tz
apache at ritz:/usr/lib/python2.7/test$ which python
/usr/bin/python
apache at ritz:/usr/lib/python2.7/test$ python -V
Python 2.7.3
apache at ritz:/usr/lib/python2.7/test$ ./pystone.py
Pystone(1.1) time for 50000 passes = 6.32
This machine benchmarks at 7911.39 pystones/second

--- apache configuration
WSGIScriptAlias /wiki   /usr/local/share/moin/moin.wsgi
WSGIDaemonProcess moin user=apache group=apache processes=5 threads=10
maximum-requests=1000 umask=0007
WSGIProcessGroup moin

--- /usr/local/share/moin/moin.wsgi sys.path
sys.path.insert(0, '/usr/local/share/moin')

Any suggestion?

Thanks

Tasslehoff Burrfoot

---
Public PGP key block at
http://tasslehoff.burrfoot.it/url/pgp
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/moin-user/attachments/20130522/30cae31f/attachment.html>


More information about the Moin-user mailing list