Hullo List,
A few days ago it was noticed that the viewcvs on our server was showing a blank page. The apache logfile muttered something about not being able to find the SAPI module.
[Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] Traceback (most recent call last): [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] File "/home/aleph1/websites/aleph1.co.uk/cgi-bin/viewcvs.cgi", line 60, in ? [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] import sapi [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] ImportError: No module named sapi [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] Premature end of script headers: viewcvs.cgi
I compared various backup images, and found that overnight every .py file in /usr/share/python-support had been added again but as .pyc (see below).
I know nothing about the intricacies of python; it would seem this is the same time as it would have broken though. viewcvs and apache2 have upgraded in this time. Can anyone can give me a hint as to where to start foraging for incompatibilities? Presumably something didn't upgrade that should?
Here are the installed python-related packages (sorry to post loads of output)
ii libapache2-mod-python 3.2.10-4 ii python 2.4.4-2 ii python-apt 0.6.19 ii python-central 0.5.12 ii python-clearsilver 0.10.3-4.1 ii python-egenix-mxdatetime 2.0.6-4 ii python-egenix-mxtools 2.0.6-4 ii python-gdbm 2.4.4-1 ii python-imaging 1.1.5-11 ii python-libxml2 2.6.27.dfsg-2 ii python-minimal 2.4.4-2 ii python-moinmoin 1.5.3-1.2 ii python-mysqldb 1.2.1-p2-4 ii python-pysqlite2 2.3.2-2 ii python-setuptools 0.6c3-3 ii python-subversion 1.4.2dfsg1-2 ii python-support 0.5.6 ii python-xml 0.8.4-6 ii python2.4 2.4.4-3 ii python2.4-minimal 2.4.4-3
Many thanks,
Jenny
jenny@xios:/home/dirvish/stoneboat$ sudo diff -r 20080218/tree/usr/share/python-support/viewcvs/ 20080217/tree/usr/share/python-support/viewcvs/ Only in 20080218/tree/usr/share/python-support/viewcvs/: accept.pyc Only in 20080218/tree/usr/share/python-support/viewcvs/: apache_icons.pyc Only in 20080218/tree/usr/share/python-support/viewcvs/: apache.pyc Only in 20080218/tree/usr/share/python-support/viewcvs/: blame.pyc
etc etc
On 21 Feb 2008, at 6:51 pm, Jenny Hopkins wrote:
Hullo List,
A few days ago it was noticed that the viewcvs on our server was showing a blank page. The apache logfile muttered something about not being able to find the SAPI module.
[Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] Traceback (most recent call last): [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] File "/home/aleph1/websites/aleph1.co.uk/cgi-bin/viewcvs.cgi", line 60, in ? [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] import sapi [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] ImportError: No module named sapi [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] Premature end of script headers: viewcvs.cgi
I compared various backup images, and found that overnight every .py file in /usr/share/python-support had been added again but as .pyc (see below).
I know nothing about the intricacies of python; it would seem this is the same time as it would have broken though. viewcvs and apache2 have upgraded in this time. Can anyone can give me a hint as to where to start foraging for incompatibilities? Presumably something didn't upgrade that should?
Here are the installed python-related packages (sorry to post loads of output)
ii libapache2-mod-python 3.2.10-4 ii python 2.4.4-2 ii python-apt 0.6.19 ii python-central 0.5.12 ii python-clearsilver 0.10.3-4.1 ii python-egenix-mxdatetime 2.0.6-4 ii python-egenix-mxtools 2.0.6-4 ii python-gdbm 2.4.4-1 ii python-imaging 1.1.5-11 ii python-libxml2 2.6.27.dfsg-2 ii python-minimal 2.4.4-2 ii python-moinmoin 1.5.3-1.2 ii python-mysqldb 1.2.1-p2-4 ii python-pysqlite2 2.3.2-2 ii python-setuptools 0.6c3-3 ii python-subversion 1.4.2dfsg1-2 ii python-support 0.5.6 ii python-xml 0.8.4-6 ii python2.4 2.4.4-3 ii python2.4-minimal 2.4.4-3
Many thanks,
Jenny
jenny@xios:/home/dirvish/stoneboat$ sudo diff -r 20080218/tree/usr/share/python-support/viewcvs/ 20080217/tree/usr/share/python-support/viewcvs/ Only in 20080218/tree/usr/share/python-support/viewcvs/: accept.pyc Only in 20080218/tree/usr/share/python-support/viewcvs/: apache_icons.pyc Only in 20080218/tree/usr/share/python-support/viewcvs/: apache.pyc Only in 20080218/tree/usr/share/python-support/viewcvs/: blame.pyc
etc etc
Well sapi appears to be part of the viewcvs package
david@sid:/var/log/apache2$ dpkg -L viewcvs | grep sapi /usr/share/python-support/viewcvs/sapi.py
Do you have a PythonPath statement in the apache settings for viewcvs?
On 21/02/2008, David Reynolds david@reynoldsfamily.org.uk wrote:
On 21 Feb 2008, at 6:51 pm, Jenny Hopkins wrote:
Hullo List,
A few days ago it was noticed that the viewcvs on our server was showing a blank page. The apache logfile muttered something about not being able to find the SAPI module.
[Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] Traceback (most recent call last): [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] File "/home/aleph1/websites/aleph1.co.uk/cgi-bin/viewcvs.cgi", line 60, in ? [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] import sapi [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] ImportError: No module named sapi [Thu Feb 21 18:40:36 2008] [error] [client 74.6.29.42] Premature end of script headers: viewcvs.cgi
I compared various backup images, and found that overnight every .py file in /usr/share/python-support had been added again but as .pyc (see below).
I know nothing about the intricacies of python; it would seem this is the same time as it would have broken though. viewcvs and apache2 have upgraded in this time. Can anyone can give me a hint as to where to start foraging for incompatibilities? Presumably something didn't upgrade that should?
Here are the installed python-related packages (sorry to post loads of output)
ii libapache2-mod-python 3.2.10-4 ii python 2.4.4-2 ii python-apt 0.6.19 ii python-central 0.5.12 ii python-clearsilver 0.10.3-4.1 ii python-egenix-mxdatetime 2.0.6-4 ii python-egenix-mxtools 2.0.6-4 ii python-gdbm 2.4.4-1 ii python-imaging 1.1.5-11 ii python-libxml2 2.6.27.dfsg-2 ii python-minimal 2.4.4-2 ii python-moinmoin 1.5.3-1.2 ii python-mysqldb 1.2.1-p2-4 ii python-pysqlite2 2.3.2-2 ii python-setuptools 0.6c3-3 ii python-subversion 1.4.2dfsg1-2 ii python-support 0.5.6 ii python-xml 0.8.4-6 ii python2.4 2.4.4-3 ii python2.4-minimal 2.4.4-3
Many thanks,
Jenny
jenny@xios:/home/dirvish/stoneboat$ sudo diff -r 20080218/tree/usr/share/python-support/viewcvs/ 20080217/tree/usr/share/python-support/viewcvs/ Only in 20080218/tree/usr/share/python-support/viewcvs/: accept.pyc Only in 20080218/tree/usr/share/python-support/viewcvs/: apache_icons.pyc Only in 20080218/tree/usr/share/python-support/viewcvs/: apache.pyc Only in 20080218/tree/usr/share/python-support/viewcvs/: blame.pyc
etc etc
Well sapi appears to be part of the viewcvs package
david@sid:/var/log/apache2$ dpkg -L viewcvs | grep sapi /usr/share/python-support/viewcvs/sapi.py
Do you have a PythonPath statement in the apache settings for viewcvs?
David, thanks.
The problem was eventually fixed with an update-python-modules -f
Thanks, Brett, for irc help as well.
Jenny