Bug#458309: Can not upgrade quota on running system
Hi Dne Sun, 30 Dec 2007 11:57:34 +0100 Michael Meskes [EMAIL PROTECTED] napsal(a): On Sun, Dec 30, 2007 at 10:42:45AM +0100, Michal Čihař wrote: when upgrading to quota 3.15-5, upgrade fails: Setting up quota (3.15-5) ... Checking quotas...quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file. Please turn quotas off or use -f to force checking. quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file. Please turn quotas off or use -f to force checking. invoke-rc.d: initscript quota, action start failed. dpkg: error processing quota (--configure): subprocess post-installation script returned error exit status 6 From which version of quota did you upgrade? [UPGRADE] quota 3.15-4 - 3.15-5 I have root filesystem with quotas on ext3. This file system does not seem to support disabling quota on the fly, so I think this check should I don't understand this. /etc/init.d/quota stop does not work for you? Now it works, I have no idea why it did not work. Forget the part about not being able to disable quota, I tried to remount file system without quota what does not work, quotaoff of course works. not be done at all on upgrade. Now this is where the problem starts. It is not done on upgrade. I'd guess that almost everyone using quota upgrades the package with quota enabled and it always worked afaict. If you have a look at the postinst file you'll see that quotacheck is only started if you're not doing a clean upgrade. So I really need more infos. Just ask what you need. All I did was upgrade from unstable about about one week old. Sorry about confusion with disabling quota, I thought it should be done using remounting. -- Michal Čihař | http://cihar.com | http://blog.cihar.com signature.asc Description: PGP signature
Bug#458309: Can not upgrade quota on running system
% ls -l /home/aquota.user -rw-r--r-- 1 root staff 7168 2007-12-29 23:03 /home/aquota.user % cat /etc/default/quota # Set to true if warnquota should be run in cron.daily run_warnquota= # Add options to rpc.rquotad here RPCRQUOTADOPTS= % sudo find /var -name '*quot*' | egrep -v '/var/lib/dpkg|/var/cache/apt' /var/lib/quota % dpkg -s quota Package: quota Status: install ok half-configured Priority: optional Section: admin Installed-Size: 1700 Maintainer: Michael Meskes [EMAIL PROTECTED] Architecture: powerpc Version: 3.15-5 Config-Version: 3.15-4 Depends: debconf (= 1.2.9) | debconf-2.0, e2fslibs, libc6 (= 2.7-1), libcomerr2 (= 1.33-3), libldap2 (= 2.1.17-1), libssl0.9.8 (= 0.9.8f-1), libwrap0, lsb-base (= 3.0-3) Suggests: libnet-ldap-perl Conffiles: /etc/init.d/quotarpc 9e0cf11dd48014366101a3aa91ff00fc /etc/init.d/quota f45de12b2cdf1dec8deac1eac4d7dcc5 /etc/warnquota.conf 87ccf8e6337879c06322b134683ac9f0 /etc/quotatab a930a2a1992adf72a6d7e50267e674e4 /etc/quotagrpadmins 0b4a5484e590fea00f9949d6e298a659 /etc/default/quota 0dd01986a1b7fa36e5686fb04229335d /etc/cron.daily/quota e94fb81735996aec80a936408e8ab4d7 Description: implementation of the disk quota system [...] % sudo dpkg --configure quota Setting up quota (3.15-5) ... Checking quotas...quotacheck: Quota for users is enabled on mountpoint /home so quotacheck might damage the file. Please turn quotas off or use -f to force checking. quotacheck: Quota for users is enabled on mountpoint /home so quotacheck might damage the file. Please turn quotas off or use -f to force checking. invoke-rc.d: initscript quota, action start failed. dpkg: error processing quota (--configure): subprocess post-installation script returned error exit status 6 Errors were encountered while processing: quota % quota Disk quotas for user rleigh (uid 1000): Filesystem blocks quota limit grace files quota limit grace /dev/mapper/hda_vg-home 10638196 1600 1700 239848 0 0 % sudo /etc/init.d/quota stop Turning off quotas...done. % sudo dpkg --configure quota Setting up quota (3.15-5) ... Checking quotas...done. Turning on quotas...done. Checking quotas...quotacheck: Quota for users is enabled on mountpoint /home so quotacheck might damage the file. Please turn quotas off or use -f to force checking. quotacheck: Quota for users is enabled on mountpoint /home so quotacheck might damage the file. Please turn quotas off or use -f to force checking. invoke-rc.d: initscript quota, action start failed. dpkg: error processing quota (--configure): subprocess post-installation script returned error exit status 6 Errors were encountered while processing: quota % sudo /etc/init.d/quota start Checking quotas...quotacheck: Quota for users is enabled on mountpoint /home so quotacheck might damage the file. Please turn quotas off or use -f to force checking. quotacheck: Quota for users is enabled on mountpoint /home so quotacheck might damage the file. Please turn quotas off or use -f to force checking. % sudo /etc/init.d/quota stop Turning off quotas...done. % sudo /etc/init.d/quota start Checking quotas...done. Turning on quotas...done. So, it appears that something in the postinst is turning on the quotas prior to starting them with the init script? Following the above, I tried running dpkg --configure again, and it fails every time, whether or not I stop quota beforehand. Regards, Roger -- .''`. Roger Leigh : :' : Debian GNU/Linux http://people.debian.org/~rleigh/ `. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/ `-GPG Public Key: 0x25BFB848 Please GPG sign your mail. signature.asc Description: Digital signature
Bug#458309: Can not upgrade quota on running system
severity 458309 grave tag 458309 -moreinfo thanks. Just making sure quota won't migrate to testing with this bug. So, it appears that something in the postinst is turning on the quotas prior to starting them with the init script? Following the above, I tried running dpkg --configure again, and it fails every time, whether or not I stop quota beforehand. That's it, thanks. Due to the help of debhelper it is indeed started twice. Will fix it as soon as I find time. Michael -- Michael Meskes Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED] Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL! -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#458309: Can not upgrade quota on running system
Package: quota Version: 3.15-5 Severity: important Hi when upgrading to quota 3.15-5, upgrade fails: Setting up quota (3.15-5) ... Checking quotas...quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file. Please turn quotas off or use -f to force checking. quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file. Please turn quotas off or use -f to force checking. invoke-rc.d: initscript quota, action start failed. dpkg: error processing quota (--configure): subprocess post-installation script returned error exit status 6 I have root filesystem with quotas on ext3. This file system does not seem to support disabling quota on the fly, so I think this check should not be done at all on upgrade. -- Michal Čihař | http://cihar.com | http://blog.cihar.com -- System Information: Debian Release: lenny/sid APT prefers unstable APT policy: (500, 'unstable') Architecture: amd64 (x86_64) Kernel: Linux 2.6.22-3-vserver-amd64 (SMP w/1 CPU core) Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages quota depends on: ii debconf [debconf-2.0] 1.5.17 Debian configuration management sy ii e2fslibs1.40.3-1 ext2 filesystem libraries ii libc6 2.7-5GNU C Library: Shared libraries ii libcomerr2 1.40.3-1 common error description library ii libldap22.1.30.dfsg-13.5 OpenLDAP libraries ii libssl0.9.8 0.9.8g-3 SSL shared libraries ii libwrap07.6.dbs-14 Wietse Venema's TCP wrappers libra ii lsb-base3.1-24 Linux Standard Base 3.1 init scrip quota recommends no packages. -- debconf information excluded -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Bug#458309: Can not upgrade quota on running system
tag 458309 unreproducable tag 458309 moreinfo thanks On Sun, Dec 30, 2007 at 10:42:45AM +0100, Michal Čihař wrote: when upgrading to quota 3.15-5, upgrade fails: Setting up quota (3.15-5) ... Checking quotas...quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file. Please turn quotas off or use -f to force checking. quotacheck: Quota for users is enabled on mountpoint / so quotacheck might damage the file. Please turn quotas off or use -f to force checking. invoke-rc.d: initscript quota, action start failed. dpkg: error processing quota (--configure): subprocess post-installation script returned error exit status 6 From which version of quota did you upgrade? I have root filesystem with quotas on ext3. This file system does not seem to support disabling quota on the fly, so I think this check should I don't understand this. /etc/init.d/quota stop does not work for you? not be done at all on upgrade. Now this is where the problem starts. It is not done on upgrade. I'd guess that almost everyone using quota upgrades the package with quota enabled and it always worked afaict. If you have a look at the postinst file you'll see that quotacheck is only started if you're not doing a clean upgrade. So I really need more infos. Michael -- Michael Meskes Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org) ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: [EMAIL PROTECTED] Go VfL Borussia! Go SF 49ers! Use Debian GNU/Linux! Use PostgreSQL!