retitile 318435 mysql-server: will not install with datadir as seperate ext3 
filesystem
tags 318435 sarge sid confirmed
thanks

hi christophe,

On Fri, Jul 15, 2005 at 04:48:12PM +0200, Christophe Nowicki wrote:
> Stopping MySQL database server: mysqld.
> chgrp: changing group of `/var/lib/mysql/.journal': Operation not
> permitted
> dpkg: error processing
> /var/cache/apt/archives/mysql-server_4.0.24-10_i386.deb (--unpack):
>  subprocess pre-installation script returned error exit status 123
> Stopping MySQL database server: mysqld.
> Errors were encountered while processing:
>  /var/cache/apt/archives/mysql-server_4.0.24-10_i386.deb
> E: Sub-process /usr/bin/dpkg returned an error code (1)
> 
> I suggest to ignore chgrp retrurn value and continue the
> installation/upgrade process.

looks like this is being done in the preinst script:

find $DATADIR -follow -not -group mysql -print0 \
  | xargs -0 --no-run-if-empty chgrp mysql

which could easily be fixed with a "set -e" or an "|| true".  problem
is, you won't see this fix coming into sarge for a long time, if ever.
so, looks like we have another bug to leave open for posterity.

however, i think you should be able to work around this with something
similar to the following:

# umount /var/lib/mysql
# mount -t ext2 /var/lib/mysql
# apt-get install mysql-server
# /etc/init.d/mysql-server stop
# umount /var/lib/mysql
# mount /var/lib/mysql

might want to back up your data "just in case" anyway, but i'm pretty
sure it should work.


        sean

-- 

Attachment: signature.asc
Description: Digital signature

Reply via email to