Package: quota
Version: 4.01-8
Severity: important

Hi all, I cannot install quota package on a jessie system, the configuration 
step always ends with the following error:

  > Job for quota.service failed. See 'systemctl status quota.service' and 
'journalctl -xn' for details.
  > invoke-rc.d: initscript quota, action "start" failed
  > [...]
  > E: Sub-process /usr/bin/dpkg returned an error code (1)
  > Failed to perform requested operation on package.  Trying to recover:
  > [...]
  > Job for quota.service failed. See 'systemctl status quota.service' and 
'journalctl -xn' for details.
  > invoke-rc.d: initscript quota, action "start" failed.

and the output of 'systemctl status quota.service' is:

  > quotaon.sh[13003]: Checking quotas...Warning: user quota not configured in 
filesystem `/home.' ... (warning).
  > quotaon.sh[13003]: Warning: user quota not configured in filesystem `/srv.' 
... (warning).
  > quotaon.sh[13003]: done.
  > quotaon.sh[13003]: Turning on quotas...quotaon: cannot find 
/home/aquota.user on /dev/mapper/vg0-home [/home]
  > quotaon.sh[13003]: quotaon: cannot find /srv/aquota.user on 
/dev/mapper/vg0-srv [/srv]
  > systemd[1]: quota.service: main process exited, code=exited, 
status=2/INVALIDARGUMENT
  > systemd[1]: Failed to start Check And Enable File System Quotas.
  > systemd[1]: Unit quota.service entered failed state.

My /etc/fstab is the follwing

  /dev/mapper/vg0-root  /      ext4  user_xattr,acl,errors=remount-ro 0 1
  /dev/mapper/vg0-home  /home  ext4  user_xattr,acl,usrquota          0 2
  /dev/mapper/vg0-srv   /srv   ext4  user_xattr,acl,usrquota          0 2
  /dev/mapper/vg0-swap  none   swap  sw                               0 0

  
Downloading the source tarball of quota I've tried to follow the whole 
installation procedure and I think that the execution of 'touch 
/var/lib/quota/new' (line 148 of postinst script) should be executed before the 
start of the quota service, otherwise the quotaon.sh always fails with 
"Warning: user quota not configured in filesystem \`$1.'".

This is what happens during the installation:
 1. postinst executed
 2. quota start => quotaon.sh executed
 3. no force, no skip
 4. no /var/lib/quota/new file exists because no touch already executed
 5. so no full check but only a call to the check_quota function
 6. no /mountpoint/aquota.user file exists because quotas has never been 
computed yet
 7. and so a warning is printed and the installation ends in error

If the touch was executed before quota started, the installation procedure 
would change and at point 4 the new file would exist and a full check would be 
performed on all quota-enabled filesystems.

As a suggestion I also think that the function check_quota in quotaon.sh file 
should execute a full check whenever invoked on a quota-enabled filesystem 
where there isn't any aquota.user file, i.e. lines 33-35 of quotaon.sh should 
be:

  > if [ ! -e $1/quota.user -a ! -e $1/aquota.user ] ; then
  >   log_warning_msg "Warning: user quota configured in filesystem \`$1' but 
no aquota.user exists, performing full check"
  >   $check -c $CHECKALLFLAGS
  > elif [ "$4" != "journaled" -a ! -f $quotaisoff ] ; then

If I'm wrong what have I missed?


Thanks, bye
Simone


-- System Information:
Debian Release: 8.0
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 3.16.0-4-amd64 (SMP w/2 CPU cores)
Locale: LANG=it_IT.UTF-8, LC_CTYPE=it_IT.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages quota depends on:
ii  debconf [debconf-2.0]  1.5.56
ii  e2fslibs               1.42.12-1.1
ii  init-system-helpers    1.22
ii  libc6                  2.19-18
ii  libcomerr2             1.42.12-1.1
ii  libdbus-1-3            1.8.16-1
ii  libldap-2.4-2          2.4.40+dfsg-1
ii  libnl-3-200            3.2.24-2
ii  libnl-genl-3-200       3.2.24-2
ii  libtirpc1              0.2.5-1
ii  libwrap0               7.6.q-25
ii  lsb-base               4.1+Debian13+nmu1

quota recommends no packages.

Versions of packages quota suggests:
ii  libnet-ldap-perl                1:0.6400+dfsg-2
ii  postfix [mail-transport-agent]  2.11.3-1
ii  rpcbind                         0.2.1-6

-- debconf information excluded


-- 
To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to