ius-coredev team mailing list archive
-
ius-coredev team
-
Mailing list archive
-
Message #00874
[Bug 790060] [NEW] Critical apache/mod_wsgi failure on upgrade to python 3.1.3
Public bug reported:
Hello,
(Centos 5, x86_64)
Upon a code deployment this evening, apache failed to restart with this
message:
Starting httpd: httpd: Syntax error on line 55 of
/etc/httpd/conf/httpd.conf: Syntax error on line 1 of
/etc/httpd/conf.d/python31-mod_wsgi.conf: Cannot load
/etc/httpd/modules/python31-mod_wsgi.so into server:
/etc/httpd/modules/python31-mod_wsgi.so: undefined symbol:
PyUnicodeUCS2_DecodeLatin1
After some digging, I noticed that Python had been upgraded to 3.1.3
just a couple days ago (in my case, via yum-cron):
May 26 04:15:47 Updated: python31-3.1.3-2.ius.el5.x86_64
May 26 04:15:47 Updated: python31-libs-3.1.3-2.ius.el5.x86_64
I suspected that mod_wsgi was built against an outdated api/abi in
python, so using mock, I rebuilt against python 3.1.3, installed that
RPM, and everything works fine.
I've attached my SRPM which increments the release and provides a note about the error.
If anyone is in need of a temp hot-fix, the RPM can be found at: http://code.appcove.com/python31-mod_wsgi-3.3-2.ius.el5.x86_64.rpm
Thanks!
Jason Garber
** Affects: ius
Importance: Undecided
Status: New
--
You received this bug notification because you are a member of IUS Core
Development, which is subscribed to IUS Community Project.
https://bugs.launchpad.net/bugs/790060
Title:
Critical apache/mod_wsgi failure on upgrade to python 3.1.3
Status in IUS Community Project:
New
Bug description:
Hello,
(Centos 5, x86_64)
Upon a code deployment this evening, apache failed to restart with
this message:
Starting httpd: httpd: Syntax error on line 55 of
/etc/httpd/conf/httpd.conf: Syntax error on line 1 of
/etc/httpd/conf.d/python31-mod_wsgi.conf: Cannot load
/etc/httpd/modules/python31-mod_wsgi.so into server:
/etc/httpd/modules/python31-mod_wsgi.so: undefined symbol:
PyUnicodeUCS2_DecodeLatin1
After some digging, I noticed that Python had been upgraded to 3.1.3
just a couple days ago (in my case, via yum-cron):
May 26 04:15:47 Updated: python31-3.1.3-2.ius.el5.x86_64
May 26 04:15:47 Updated: python31-libs-3.1.3-2.ius.el5.x86_64
I suspected that mod_wsgi was built against an outdated api/abi in
python, so using mock, I rebuilt against python 3.1.3, installed that
RPM, and everything works fine.
I've attached my SRPM which increments the release and provides a note about the error.
If anyone is in need of a temp hot-fix, the RPM can be found at: http://code.appcove.com/python31-mod_wsgi-3.3-2.ius.el5.x86_64.rpm
Thanks!
Jason Garber
Follow ups
References