← Back to team overview

ius-coredev team mailing list archive

[Bug 790060] Re: Critical apache/mod_wsgi failure on upgrade to python 3.1.3

 

Hey Jason,

Thanks for the feedback as always.  Unfortunately this slipped through
testing which was my fault.  Ideally, any package compiled against
another should be rebuilt when the other is recompiled for a newer
source or for source changes.  Generally we re-compile everything when
we update the source of python or similar packages.  As this was a minor
compile time change I didn't realize it would affect other packages
relying on that compile time feature.

I've added a feature request to our build system software (MonkeyFarm)
that should help us organize these associations:

https://github.com/rackspace/monkeyfarm/issues/58


The idea of the above being, preventing packages from being pushed to stable without its dependencies also being rebuilt.

-- 
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:
  Fix Released

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


References