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

2004-04-07 Thread Fabio Massimo Di Nitto
Guys let's not confuse stuff around. There were 2/3 problems running
around.

One was ucf 1.00 that has been fixed in ucf 1.02 and the other one appears
to be suexec. There is the possibility that apache does not get stopped
across upgrades even if there is a specific entry for it and I don't
understand why (yet).

The random warning i saw around from update-rc.d:
warning: /etc/rc3.d/S20apache is not a link to ../init.d/apache
are not an apache problem and I am sure about it 100% since that code
hasn't changed since 1.3.29.0.2-1 and noone has been complaining about it
before, so i somehow doubt that all of a sudden that stuff broke down.

Now the only problem(s) left are the suexec and the possible stop of
apache before upgrades.

If you have any possibility to perform tests in these areas it would be
extremely important for me to have the reports back.. together with
configfiles and so on. Patches are even more welcome :-)

Thanks
Fabio

-- 
user fajita: step one
fajita Whatever the problem, step one is always to look in the error log.
user fajita: step two
fajita When in danger or in doubt, step two is to scream and shout.




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




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

2004-03-31 Thread Fabio Massimo Di Nitto

Hi,

On Wed, 31 Mar 2004, Csaba Nemeth wrote:

 I realized the invoke-rc.d apache start line. At the
 time of the apt-get update, my apache was running,
 after I stopped it, the apt-get update worked out
 fine.

 Maybe that should be checked (if apache is running),
 and use invoke-rc.d apache restart in that case?

This is really strange. apache does that check to be sure that it is not
running but i will recheck again as soon as i can..

Fabio

-- 
user fajita: step one
fajita Whatever the problem, step one is always to look in the error log.
user fajita: step two
fajita When in danger or in doubt, step two is to scream and shout.