#483197 libapache2-mod-wsgi installing broken symlink

Package:
libapache2-mod-wsgi
Source:
mod-wsgi
Submitter:
Vitaliyi
Date:
2025-07-28 19:39:06 UTC
Severity:
minor
Tags:
#483197#5
Date:
2008-05-27 18:29:29 UTC
From:
To:
/usr/lib/apache2/modules/mod_wsgi.so pointing to "mod_wsgi.so-pyversions:"

and apache refuses to start because of that:

Starting web server: apache2apache2: Syntax error on line 185 of
/etc/apache2/apache2.conf: Syntax error on line 1 of
/etc/apache2/mods-enabled/wsgi.load: Cannot load
/usr/lib/apache2/modules/mod_wsgi.so into server:
/usr/lib/apache2/modules/mod_wsgi.so: cannot open shared object file:
No such file or directory
 failed!

#483197#10
Date:
2008-07-06 20:29:00 UTC
From:
To:
tags 483197 + moreinfo unreproducible
thanks


Hi,

unfortunately I can't see the problem here, so I need more informations
from you:

- when did you install mod-wsgi the first time?
- when and to which version >= 2.5 did you upgrade python-defaults to?
- which shell is /bin/sh linked to?

And last but not least - I'm missing the informations about installed
packages which are reported by reportbug usually, it would  be good if
you could attach them to this bug report, too.

Thanks,

Bernd

#483197#17
Date:
2008-07-06 22:16:20 UTC
From:
To:
tags 483197 - moreinfo unreproducible
thanks

Hi,

please ignore my last mail, it's obvious where the bug comes from.

Thanks for reporting,

Bernd

#483197#24
Date:
2008-07-06 23:02:03 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
mod-wsgi, which is due to be installed in the Debian FTP archive:

libapache2-mod-wsgi_2.1-1_amd64.deb
  to pool/main/m/mod-wsgi/libapache2-mod-wsgi_2.1-1_amd64.deb
mod-wsgi_2.1-1.diff.gz
  to pool/main/m/mod-wsgi/mod-wsgi_2.1-1.diff.gz
mod-wsgi_2.1-1.dsc
  to pool/main/m/mod-wsgi/mod-wsgi_2.1-1.dsc
mod-wsgi_2.1.orig.tar.gz
  to pool/main/m/mod-wsgi/mod-wsgi_2.1.orig.tar.gz



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 483197@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bernd Zeimetz <bzed@debian.org> (supplier of updated mod-wsgi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
Format: 1.8
Date: Mon, 07 Jul 2008 00:37:50 +0200
Source: mod-wsgi
Binary: libapache2-mod-wsgi
Architecture: source amd64
Version: 2.1-1
Distribution: unstable
Urgency: low
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Changed-By: Bernd Zeimetz <bzed@debian.org>
Description:
 libapache2-mod-wsgi - Python WSGI adapter module for Apache
Closes: 483197 488982
Changes:
 mod-wsgi (2.1-1) unstable; urgency=low
 .
   * New upstream release.
   * debian/libapache2-mod-wsgi.rtupdate:
     - Fixing bashism. Thanks to Vitaliyi (Closes: #483197)
   * debian/copyright:
     - Removing full text of the Apache License, linking to
       /usr/share/common-licenses/Apache-2.0 instead.
   * debian/wsgi.conf:
     - Removing WSGIPythonExecutable directive from the example configuration
       as it does not exist in 2.X versions of mod-wsgi. Thanks to Martin
       Tomasek for the report. (Closes: #488982)
Checksums-Sha1:
 e17e05862e27b160800072dfd29421d56eb44b4b 1299 mod-wsgi_2.1-1.dsc
 cbd19eb9c6603b99f0604e2cd2a993029cdb530d 96635 mod-wsgi_2.1.orig.tar.gz
 603608c1ec4b0012f1ee47ce3eac88be3819f35a 6535 mod-wsgi_2.1-1.diff.gz
 def13a21f992ea1eba494b8f35e5df1765c29a3f 112858 libapache2-mod-wsgi_2.1-1_amd64.deb
Checksums-Sha256:
 ca401e0e89aada0b4a8630d4d5056d0d3d5b846aaceb381406d272aafe4b854f 1299 mod-wsgi_2.1-1.dsc
 7f1c28f1fbc585de2a15770c990e45b46d184245183775dd31e3a63bd30fc3a0 96635 mod-wsgi_2.1.orig.tar.gz
 d860a93c83f1e2d53bb583fa74916fa9da2485e1f98fbd0d4823c84d6dd2539a 6535 mod-wsgi_2.1-1.diff.gz
 a3c55bb8ce4782ea31c606e8b218832be24f3b30bccbcfdc7ee98452a07f44af 112858 libapache2-mod-wsgi_2.1-1_amd64.deb
Files:
 23cff1b42d2a95a99ee6b3e836ca775b 1299 python optional mod-wsgi_2.1-1.dsc
 4e0e8b5a13e0be2fc5b038f1e3e826a2 96635 python optional mod-wsgi_2.1.orig.tar.gz
 c7b8d7c83b219b3b1abe5cbd4cb5b092 6535 python optional mod-wsgi_2.1-1.diff.gz
 34132991be788e602b56d1366e0c7e02 112858 python optional libapache2-mod-wsgi_2.1-1_amd64.deb
iEYEARECAAYFAkhxSd4ACgkQBnqtBMk7/3nXxwCgnPRBiN8DdH+wJpT1xrG2jPhb
TkIAn1pqDZzxParp8WnsuzMpRKUOcdzy
=oDvw
-----END PGP SIGNATURE-----

#483197#33
Date:
2008-07-20 23:47:15 UTC
From:
To:
We believe that the bug you reported is fixed in the latest version of
mod-wsgi, which is due to be installed in the Debian FTP archive:

libapache2-mod-wsgi_2.1-2_amd64.deb
  to pool/main/m/mod-wsgi/libapache2-mod-wsgi_2.1-2_amd64.deb
mod-wsgi_2.1-2.diff.gz
  to pool/main/m/mod-wsgi/mod-wsgi_2.1-2.diff.gz
mod-wsgi_2.1-2.dsc
  to pool/main/m/mod-wsgi/mod-wsgi_2.1-2.dsc



A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to 483197@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Bernd Zeimetz <bzed@debian.org> (supplier of updated mod-wsgi package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing ftpmaster@debian.org)
Format: 1.8
Date: Mon, 21 Jul 2008 01:20:43 +0200
Source: mod-wsgi
Binary: libapache2-mod-wsgi
Architecture: source amd64
Version: 2.1-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Modules Team <python-modules-team@lists.alioth.debian.org>
Changed-By: Bernd Zeimetz <bzed@debian.org>
Description:
 libapache2-mod-wsgi - Python WSGI adapter module for Apache
Closes: 483197 491478
Changes:
 mod-wsgi (2.1-2) unstable; urgency=medium
 .
   * Calling pyversions in postinst requires that 'python' is installed *and*
     configured, so it would need to be added to Pre-Depends. As this is kinda
     ugly, we ship the symlink to the module for the right Python version now
     in the package. I assume that this will really fix #483197 now, I'm quite
     sure that the broken link results from an error message of the
     unconfigured python/pyversions. Shipping the symlink also makes sure that
     it is available while Apache is configured (which may happen before
     mod-wsgi is configured). (Closes: #483197, #491478)
   * Drop the parts from the maintainer scripts which renamed the wsgi config
     files (see #456737 for details) - as mod-wsgi was not released with Etch
     and the fix was for a long enough time in testing, it should be safe to
     remove them before Lenny.
Checksums-Sha1:
 c37b36e25a61365bf6426fe811f48647224e1510 1299 mod-wsgi_2.1-2.dsc
 2a9bbae4ab05953f6b70d0a6f29ec0144f0ab945 6563 mod-wsgi_2.1-2.diff.gz
 5a9d19c7b67b29b4d6ca0614c475e86f36a20eed 112928 libapache2-mod-wsgi_2.1-2_amd64.deb
Checksums-Sha256:
 239cba45ec41289f0fe891ff4393e51fa1073dfed23a43b7b6f82b71560267b7 1299 mod-wsgi_2.1-2.dsc
 a27cd52e4359ea7d5efb81da940e5fa9fe90200535175dd4622f6e8c6d3af472 6563 mod-wsgi_2.1-2.diff.gz
 dd884f5a947b14d2cefbc82c0412406bbcdffeabc09cbfcb86fe8f8c5b950947 112928 libapache2-mod-wsgi_2.1-2_amd64.deb
Files:
 4a126c496da57f41181312c3f7b6b9f9 1299 python optional mod-wsgi_2.1-2.dsc
 8c80df5153a15b33f2f1cc23745ced17 6563 python optional mod-wsgi_2.1-2.diff.gz
 9deaa65dc94d0e8d086398b67c752eb7 112928 python optional libapache2-mod-wsgi_2.1-2_amd64.deb
iEYEARECAAYFAkiDyMwACgkQBnqtBMk7/3kAWQCfXUPe6gPds9bIq4HMkg+8dBIi
8sIAoLROG155w/nrMUOfaQGFnaaHCY2I
=kNl3
-----END PGP SIGNATURE-----

#483197#38
Date:
2008-07-21 14:24:39 UTC
From:
To:
Hi,

using Pre-Depends to fix this bug is not going to work. Furthermore, it
is a policy violation for having added it without discussion on
debian-devel.

The real issue here is that pyversions is not reliable. You should
achieve a much better result by using $(readlink /usr/bin/python).

(I guess python-gnome2, from which this code was copied, has the same
issue, but it remained under the radar as the gnome-vfs python method is
very rarely used.)

Cheers,

#483197#47
Date:
2008-07-24 00:52:04 UTC
From:
To:
severity 483197 minor
thanks

right. And you obviously neither read the changelog entry properly, nor
looked at the package.

Right. Did I ask you if you read the changelog entry?

That will work, thanks for the hint. Will be included after Lenny as the
current package will work fine.

#483197#54
Date:
2008-07-24 07:52:00 UTC
From:
To:
Le jeudi 24 juillet 2008 à 02:52 +0200, Bernd Zeimetz a écrit :

Sorry, I indeed misread it, and the package had disappeared in the
mirror pulse at the time I was looking at it. (Well, you are wrong in
thinking Pre-Depends *would* fix the issue, but since you don’t use them
that’s fine :)

Indeed. However this must be fixed before python2.6 enters the archive,
since it will break at this time.

Cheers,

#483197#59
Date:
2008-07-24 16:52:35 UTC
From:
To:
Josselin Mouette wrote:

Why would a Pre-Dependency on python not fix the problem? As log as
pyversions -d works (which is the case when Python is installed and
configured), using it to retrieve the default version will work.

Sure, I'll change that with the first upload after Lenny.

Cheers,

Bernd

#483197#64
Date:
2008-07-24 17:00:53 UTC
From:
To:
Le jeudi 24 juillet 2008 à 18:52 +0200, Bernd Zeimetz a écrit :

Pre-Depends only change what is available for the preinst script, not
the postinst.

Except in the case of a dependency loop, a Depends: already guarantees
that at postinst time, the package in question is already installed and
configured. If a Depends is not enough, there’s no reason why a
Pre-Depends would.

Cheers,

#483197#69
Date:
2008-07-24 20:54:54 UTC
From:
To:
Josselin Mouette wrote:

Ah indeed, thanks for the reminder.
Then pyversions is not useable at all as it seems to be broken while
upgrading (!?) - no clue where the exact problem lies...

#483197#74
Date:
2008-07-25 07:58:43 UTC
From:
To:
Le jeudi 24 juillet 2008 à 22:54 +0200, Bernd Zeimetz a écrit :

Well I have no clue either, but this is why I had to rewrite parts of
python-support back in 2006 so that it doesn’t use pyversions at all.
Looks like the script doesn’t work any better now.