Bug#239416: Re: Bug#239416: apache: Apache 1.3.29.0.2-4 failling to upgrade

2004-04-05 Thread Jens Seidel
Hi,

I also recognized this problem during an update from version 1.3.29.0.1-3.
I do not have php4 installed nor libapache-mod-ssl but ucf version 1.00.

As suggested by Fabio I added set -x to /usr/share/apache/postinst.common
and attached the output.

Florian started apache (using apachectl start) and got an error, 
that suexec isn't configured right.

pluto:/home/jens# apachectl start
/usr/sbin/apachectl start: httpd (pid 1418) already running
pluto:/home/jens# apachectl stop
/usr/sbin/apachectl stop: httpd stopped
pluto:/home/jens# apachectl start
/usr/sbin/apachectl start: httpd started
pluto:/home/jens# apachectl stop
/usr/sbin/apachectl stop: httpd stopped

As you can see I did not get an error related to suexec, but after
restarting apt-get it works!

pluto:/home/jens# apt-get install apache
Reading Package Lists... Done
Building Dependency Tree... Done
apache is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 76 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up apache (1.3.29.0.2-4) ...
Starting web server: apache.

Setting up dwww (1.9.8) ...

Building dwww pages in the background...

It seems that apachectl stop does the magic ...

I hope it helps.

Jens
Reading Package Lists...
Building Dependency Tree...
apache is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 76 not upgraded.
3 not fully installed or removed.
Need to get 0B of archives.
After unpacking 0B of additional disk space will be used.
Setting up apache (1.3.29.0.2-4) ...
+ '[' configure '!=' configure ']'
+ HIDE=
+ '[' 1.3.29.0.1-3 '!=' '' ']'
+ UPGRADE=true
+ dpkg --compare-versions 1.3.29.0.1-3 ge 1.3.28-1
+ HIDE=quiet
+ dpkg --compare-versions 1.3.29.0.1-3 eq 1.3.29.0.2-4
+ /usr/sbin/modules-config apache internal quiet
+ '[' true '!=' true ']'
+ do_all apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ '[' '!' -e /etc/apache/modules.conf ']'
++ printf '\x07'
+ export $'IFS=\a'
+ IFS=
++ /usr/share/apache/listconffiles /etc/apache/httpd.conf.dpkg-inst.queue
+ CONFS=/etc/apache/modules.conf
++ printf '\x07'
+ export 
$'CONFS=/etc/apache/httpd.conf.dpkg-inst.queue\a/etc/apache/modules.conf\a'
+ CONFS=/etc/apache/httpd.conf.dpkg-inst.queue/etc/apache/modules.conf
+ prepare_ucf apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ '[' '!' -e /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue ']'
+ cp -f /etc/apache/httpd.conf.dpkg-inst.queue 
/etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ '[' '!' -e /etc/apache/modules.conf.dpkg-inst.queue ']'
+ do_debconf_configs apache
+ '[' 1 -ne 1 ']'
+ pkg=apache
+ i=/etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue servername
++ perl -e ' OUTER: while () {next OUTER if /^\s*#/;next OUTER if /^$/;if ( 
(/virtualhost/i   ! /#.*virtualhost/i)
 || /virtualhost.*#.*virtualhost/i ){ INNER: while () { next INNER until 
/\/virtualhost/i }};print if /^\s*servername/i}'
++ tail -n 1
++ awk '{print $2}'
+ SERNAME=localhost
+ SERNAMERB=localhost
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue serveradmin
++ tail -n 1
++ awk '{print $2}'
++ perl -e ' OUTER: while () {next OUTER if /^\s*#/;next OUTER if /^$/;if ( 
(/virtualhost/i   ! /#.*virtualhost/i)
 || /virtualhost.*#.*virtualhost/i ){ INNER: while () { next INNER until 
/\/virtualhost/i }};print if /^\s*serveradmin/i}'
+ [EMAIL PROTECTED]
+ [EMAIL PROTECTED]
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue documentroot
++ tail -n 1
++ awk '{print $2}'
++ perl -e ' OUTER: while () {next OUTER if /^\s*#/;next OUTER if /^$/;if ( 
(/virtualhost/i   ! /#.*virtualhost/i)
 || /virtualhost.*#.*virtualhost/i ){ INNER: while () { next INNER until 
/\/virtualhost/i }};print if /^\s*documentroot/i}'
+ DOCROOT=/var/www
+ DOCROOTRB=/var/www
+ '[' apache '!=' apache-ssl ']'
+ '[' '!' '' ']'
++ pget /etc/apache/httpd.conf.dpkg-inst.queue.dpkg-inst.queue port
++ perl -e ' OUTER: while () {next OUTER if /^\s*#/;next OUTER if /^$/;if ( 
(/virtualhost/i   ! /#.*virtualhost/i)
 || /virtualhost.*#.*virtualhost/i ){ INNER: while () { next INNER until 
/\/virtualhost/i }};print if /^\s*port/i}'
++ tail -n 1
++ awk '{print $2}'
+ PORT=80
+ PORTRB=80
+ i=/etc/apache/modules.conf.dpkg-inst.queue
+ '[' '!' localhost ']'
+ '[' '!' [EMAIL PROTECTED] ']'
+ '[' '!' /var/www ']'
+ '[' apache '!=' apache-ssl ']'
+ '[' '!' 80 ']'
+ '[' '!' localhost ']'
+ db_set apache/server-name localhost
+ echo 'SET apache/server-name' localhost
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=value set
+ return 0
+ db_set apache/server-admin [EMAIL PROTECTED]
+ echo 'SET apache/server-admin' [EMAIL PROTECTED]
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ RET=value set
+ return 0
+ db_set apache/document-root /var/www
+ echo 'SET apache/document-root' /var/www
+ local 'IFS=
'
+ local _LINE
+ read -r _LINE
+ 

Bug#239416: Re: Bug#239416: apache: Apache 1.3.29.0.2-4 failling to upgrade

2004-04-05 Thread Jens Seidel
On Mon, Apr 05, 2004 at 11:08:44PM +0200, Jens Seidel wrote:
 Hi,
 
 I also recognized this problem during an update from version 1.3.29.0.1-3.
 
 As you can see I did not get an error related to suexec, but after
 restarting apt-get it works!
 
 It seems that apachectl stop does the magic ...

I noticed a very similar problem with fam. See bug #234892.
Maybe the problem is related to /sbin/start-stop-daemon???

I'm using dpkg 1.10.20.

Jens