Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-04-05 Thread Michael Meskes
On Sun, Apr 03, 2016 at 05:04:10AM +0200, Tilman Blumenbach wrote:
> I'm wondering - does this mean that quotas are now unusable in jessie and we 
> have to wait until a new Debian stable release (or use testing)? Is there 
> maybe a workaround for this issue for those who want (or have) to stick to 
> jessie? 

I'll see what I can to, it seems I misjudged the amount of people that got hit 
by this. 

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL



Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-04-04 Thread pathos flux
On Sun, 03 Apr 2016 05:04:10 +0200 Tilman Blumenbach 
wrote:
> Hello,
>
> On Sun, 20 Mar 2016 13:47:59 +0100 Michael Meskes 
wrote:
> > I doubt it will make it into 8, although somebody might create a
> > backport. You may have to wait for the next release I'm afraid.
>
> I'm wondering - does this mean that quotas are now unusable in jessie and
we have to wait until a new Debian stable release (or use testing)? Is
there maybe a workaround for this issue for those who want (or have) to
stick to jessie?

Was just nailed by this one myself.  Lots of users just lost their mailbox
quota.  Is my only solution here to grab quota from stretch?


Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-04-02 Thread Tilman Blumenbach
Hello, 

On Sun, 20 Mar 2016 13:47:59 +0100 Michael Meskes  wrote:
> I doubt it will make it into 8, although somebody might create a
> backport. You may have to wait for the next release I'm afraid.

I'm wondering - does this mean that quotas are now unusable in jessie and we 
have to wait until a new Debian stable release (or use testing)? Is there maybe 
a workaround for this issue for those who want (or have) to stick to jessie? 

Regards, 

Tilman 


> 
> Michael
> -- 
> Michael Meskes
> Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
> Meskes at (Debian|Postgresql) dot Org
> Jabber: michael at xmpp dot meskes dot org
> VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL
> 
> 
> 
> 



Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-03-20 Thread Michael Meskes
> I installed from the unstable to test in stable debian 8, and it
> working 
> fine!

Thanks, good to hear that.

> Will it be aviable for update in Debian 8 or just in the next, Debian
> 9 

I doubt it will make it into 8, although somebody might create a
backport. You may have to wait for the next release I'm afraid.

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL



Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-03-20 Thread Gergo

2016-03-20 12:23 időpontban Michael Meskes ezt írta:

> This Bug is still alive!
> ...
root@mark:/# dpkg -l | grep quota
ii  quota  4.01-
8  amd64 
disk quota management tools


No surprise, the bug was fixed in version 4.03-2!

Michael


O, Thank you wery much!
I forgot to check 4.03-2 version.

I installed from the unstable to test in stable debian 8, and it working 
fine!
Will it be aviable for update in Debian 8 or just in the next, Debian 9 
?




Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-03-20 Thread Michael Meskes
> > This Bug is still alive!
> > ...
> root@mark:/# dpkg -l | grep quota
> ii  quota  4.01-
> 8  amd64 
> disk quota management tools

No surprise, the bug was fixed in version 4.03-2!

Michael
-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! SF 49ers! Use Debian GNU/Linux, PostgreSQL



Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-03-20 Thread Gergo

2016-03-20 10:43 időpontban Gergo ezt írta:

This Bug is still alive!

If I Setup UsrQuota for the root partition, the systemd damages the
aquota.user file,
then the next restart, the quota doesn't start, then if I try start
manually, quota generates a totally new aquota.user file, so all
adjusted limits will be lose!



Version: Debian 8.3

root@mark:/# dpkg -l | grep quota
ii  quota  4.01-8  amd64 
   disk quota management tools
ii  quotatool  1:1.4.12-2  amd64 
   tool to edit disk quotas from the command line

root@mark:/# uname -a
Linux mark 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt20-1+deb8u4 
(2016-02-29) x86_64 GNU/Linux

root@mark:/# cat /etc/debian_version
8.3



Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-03-20 Thread Gergo

This Bug is still alive!

If I Setup UsrQuota for the root partition, the systemd damages the 
aquota.user file,
then the next restart, the quota doesn't start, then if I try start 
manually, quota generates a totally new aquota.user file, so all 
adjusted limits will be lose!


root@mark:~# systemctl status quota.service
● quota.service - Check And Enable File System Quotas
   Loaded: loaded (/lib/systemd/system/quota.service; enabled)
   Active: failed (Result: exit-code) since v 2016-03-20 10:21:38 CET; 
1min 18s ago

 Docs: man:quotaon(8)
  Process: 281 ExecStart=/usr/share/quota/quotaon.sh (code=exited, 
status=2)

 Main PID: 281 (code=exited, status=2)

márc 20 10:21:38 mark quotaon.sh[281]: Checking quotas...done.
márc 20 10:21:38 mark quotaon.sh[281]: Turning on quotas...quotaon: 
using //aquota.user on /dev/sda1 [/]: Az eszköz vagy erőforrás foglalt
márc 20 10:21:38 mark quotaon.sh[281]: quotaon: using /home/aquota.user 
on /dev/sda3 [/home]: Az eszköz vagy erőforrás foglalt
márc 20 10:21:38 mark systemd[1]: quota.service: main process exited, 
code=exited, status=2/INVALIDARGUMENT
márc 20 10:21:38 mark systemd[1]: Failed to start Check And Enable File 
System Quotas.
márc 20 10:21:38 mark systemd[1]: Unit quota.service entered failed 
state.



root@mark:~# cat /etc/fstab

#
# / was on /dev/sda1 during installation
UUID=5b3f238f-f23e-4145-b13d-cb80ca7aae9b /   ext4
errors=remount-ro,usrquota   	0   1

# /home was on /dev/sda3 during installation
UUID=f4aa4f06-5dc7-414e-a366-cc88c07b3596 /home   ext4	  
defaults,usrquota   	0   2

# swap was on /dev/sda5 during installation
UUID=1e962db3-aeef-40b3-9e1f-c3e1df761016 noneswapsw 
 0   0

/dev/sr0/media/cdrom0   udf,iso9660 user,noauto 0   0



Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-03-04 Thread Kepi
From boot:

[  OK  ] Reached target Remote File Systems.
 Starting Trigger Flushing of Journal to Persistent Storage...
 Starting LSB: Raise network interfaces
[  OK  ] Started Tell Plymouth To Write Out Runtime Data.
[5.091509] quotaon.sh[212]: Checking quotas...done.
[5.136692] systemd-journald[207]: Received request to flush runtime journal 
from PID 1
[5.139098] quotaon.sh[212]: Turning on quotas...quotaon: using 
//aquota.group on /dev/xvda [/]: Device or resource busy
[5.140942] quotaon.sh[212]: quotaon: using //aquota.user on /dev/xvda [/]: 
Device or resource busy
[FAILED] Failed to start Check And Enable File System Quotas.
See 'systemctl status quota.service' for details.

relevant part from syslog:

Feb 29 23:38:12 antonio quotaon.sh[212]: Checking quotas...done.
Feb 29 23:38:12 antonio quotaon.sh[212]: Turning on quotas...quotaon: using 
//aquota.group on /dev/xvda [/]: Device or resource busy
Feb 29 23:38:12 antonio quotaon.sh[212]: quotaon: using //aquota.user on 
/dev/xvda [/]: Device or resource busy
Feb 29 23:38:12 antonio systemd[1]: quota.service: main process exited, 
code=exited, status=2/INVALIDARGUMENT
Feb 29 23:38:12 antonio systemd[1]: Unit quota.service entered failed state.
Feb 29 23:38:12 antonio kernel: [0.710525] VFS: Disk quotas dquot_6.5.2
Feb 29 23:38:12 antonio kernel: [4.498800] EXT4-fs (xvda): re-mounted. 
Opts: errors=remount-ro,usrquota,grpquota

Its all information I currently have. If you need more information for
fixing this bug, let me know. I'll try to recreate this environment
again. I'm not able to restart that server again.

Thanks

-- 
Kepi

Michael Meskes  writes:

> My guess is the reason is systemd's enabling quota before our service is
> enabled. Can you please check in journalctl if that's the case? You should 
> have
> entries there that talk about enabling quotas before quota.service is run, if
> at all.
>
> This needs to be fixed asap, but the question is how as systemd offers
> features, like automatic on demand checking when a device is connected, that
> the quota package doesn't have, while systemd lacks other features, like
> quota's creation of quota files and check only when not clean unmounted. This
> information is pre-Jessie so it might have changed but you get the gist.
>
> Michael


signature.asc
Description: PGP signature


Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-02-28 Thread Michael Meskes
My guess is the reason is systemd's enabling quota before our service is
enabled. Can you please check in journalctl if that's the case? You should have
entries there that talk about enabling quotas before quota.service is run, if
at all.

This needs to be fixed asap, but the question is how as systemd offers
features, like automatic on demand checking when a device is connected, that
the quota package doesn't have, while systemd lacks other features, like
quota's creation of quota files and check only when not clean unmounted. This
information is pre-Jessie so it might have changed but you get the gist.

Michael

-- 
Michael Meskes
Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
Meskes at (Debian|Postgresql) dot Org
Jabber: michael at xmpp dot meskes dot org
VfL Borussia! Força Barça! Go SF 49ers! Use Debian GNU/Linux, PostgreSQL



Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-02-05 Thread Pascal Legrand

Hello,
same problem here on debian jessie


systemctl status quotaon.service
● quotaon.service - Enable File System Quotas
   Loaded: loaded (/lib/systemd/system/quotaon.service; static)
   Active: failed (Result: exit-code) since mer. 2016-02-03 12:41:03 
CET; 1 day 20h ago

 Docs: man:quotaon(8)
  Process: 1380 ExecStart=/sbin/quotaon -aug (code=exited, status=2)
 Main PID: 1380 (code=exited, status=2)

févr. 03 12:41:03 samba4 quotaon[1380]: quotaon: utilisation de 
/home/aquota.group sur /dev/sda9 [/home] : Périphérique ou ressource occupé
févr. 03 12:41:03 samba4 quotaon[1380]: quotaon: utilisation de 
/home/aquota.user sur /dev/sda9 [/home] : Périphérique ou ressource occupé
févr. 03 12:41:03 samba4 systemd[1]: quotaon.service: main process 
exited, code=exited, status=2/INVALIDARGUMENT
févr. 03 12:41:03 samba4 systemd[1]: Failed to start Enable File System 
Quotas.
févr. 03 12:41:03 samba4 systemd[1]: Unit quotaon.service entered failed 
state.






--
Pascal



Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2016-02-02 Thread Kepi
Confirmed, same problem our jessie servers. We are not alone according
to quick google search.

-- 
Kepi


signature.asc
Description: PGP signature


Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2015-10-05 Thread Hendrik Naumann
Hi

I have similar problems. Somehow the filesystem quota gets enabled
before the quota.service target is run.

journalctl gives:

Oct 05 17:47:37 fs-bm-1 systemd[1]: quota.service: main process exited,
code=exited, status=1/FAILURE
Oct 05 17:47:37 fs-bm-1 systemd[1]: Failed to start Check And Enable
File System Quotas.
Oct 05 17:47:37 fs-bm-1 systemd[1]: Unit quota.service entered failed state.

To check this I introduced "quotaon -ap" into/usr/share/quota/quotaon.sh
 on line 48 (before "LC_MESSAGES=C $on -ap|grep -q "is off" || exit 0").

After introducing the line the journal reads like this

Oct 05 17:50:40 fs-bm-1 quotaon.sh[278]: group quota on /srv/nfs4/users
(/dev/mapper/fs--ng--1_vg1-home_lv) is off
Oct 05 17:50:40 fs-bm-1 quotaon.sh[278]: user quota on /srv/nfs4/users
(/dev/mapper/fs--ng--1_vg1-home_lv) is on
Oct 05 17:50:40 fs-bm-1 systemd[1]: quota.service: main process exited,
code=exited, status=1/FAILURE
Oct 05 17:50:40 fs-bm-1 systemd[1]: Failed to start Check And Enable
File System Quotas.
Oct 05 17:50:40 fs-bm-1 systemd[1]: Unit quota.service entered failed state.

Because group quota is off quotaon.sh continues but since the userquota
is already set on the final "quotaon -aug" fails.

quotaon -aug
quotaon: using /srv/nfs4/users/aquota.user on
/dev/mapper/fs--ng--1_vg1-home_lv [/srv/nfs4/users]: Device or resource busy

If the quotas needs to be checked this may fail for the same reasons.

I am not shure, but this may also lead to wrong quota informations after
file system crashes?

Thanks

Hendrik Naumann

PS. fstab reads:

UUID="bc0d7c7e-2b6b-4010-b5e5-36bc94c21443" /srv/nfs4/users ext4
defaults,acl,quota  0   2
/srv/nfs4/users  /home/users   nonedefaults,bind   0   0



Bug#788963: quota: Failed to start Check And Enable File System Quotas on Debian Jessie

2015-06-16 Thread heximcz
Package: quota
Severity: important

Dear Maintainer,

When I reboot machine, quota not start clearly:

Before adduser:
/dev/xvda1: clean, 47881/655360 files, 431344/2620928 blocks
[3.917625] systemd-fsck[202]: /dev/xvdb1: clean, 13/65408 files, 
8535/261632 blocks
[4.302976] quotaon.sh[257]: Checking quotas...quotacheck: Quota for groups 
is enabled on mountpoint /home so quotacheck might damage the file.
[4.303934] quotaon.sh[257]: Please turn quotas off or use -f to force 
checking.
[4.309912] quotaon.sh[257]: quotacheck: Quota for users is enabled on 
mountpoint /home so quotacheck might damage the file.
[4.310738] quotaon.sh[257]: Please turn quotas off or use -f to force 
checking.
[FAILED] Failed to start Check And Enable File System Quotas.
See 'systemctl status quota.service' for details.

With exist system user (with quota - 250MB):
/dev/xvda1: clean, 47880/655360 files, 431365/2620928 blocks
[3.892881] systemd-fsck[199]: /dev/xvdb1: clean, 17/65408 files, 
8539/261632 blocks
[4.203950] quotaon.sh[256]: Checking quotas...
[FAILED] Failed to start Check And Enable File System Quotas.
See 'systemctl status quota.service' for details.
[  OK  ] Started Enable File System Quotas.


With both examples quota not running after reboot:

root@whng01:~# systemctl status quota.service
● quota.service - Check And Enable File System Quotas
   Loaded: loaded (/lib/systemd/system/quota.service; enabled)
   Active: failed (Result: exit-code) since Tue 2015-06-16 18:01:58 CEST; 33s 
ago
 Docs: man:quotaon(8)
  Process: 256 ExecStart=/usr/share/quota/quotaon.sh (code=exited, 
status=1/FAILURE)
 Main PID: 256 (code=exited, status=1/FAILURE)

Jun 16 18:01:58 whng01 quotaon.sh[256]: Checking quotas...
Jun 16 18:01:58 whng01 systemd[1]: quota.service: main process exited, 
code=exited, status=1/FAILURE
Jun 16 18:01:58 whng01 systemd[1]: Failed to start Check And Enable File System 
Quotas.
Jun 16 18:01:58 whng01 systemd[1]: Unit quota.service entered failed state.

After /etc/init.d/quota restart:

root@whng01:~# /etc/init.d/quota restart
[] Restarting quota (via systemctl): quota.serviceJob for quota.service 
failed. See 'systemctl status quota.service' and 'journalctl -xn' for details.
 failed!

root@whng01:~# /etc/init.d/quota restart
[] Restarting quota (via systemctl): quota.serviceJob for quota.service 
failed. See 'systemctl status quota.service' and 'journalctl -xn' for details.
 failed!

root@whng01:~# /etc/init.d/quota restart
[] Restarting quota (via systemctl): quota.serviceJob for quota.service 
failed. See 'systemctl status quota.service' and 'journalctl -xn' for details.
 failed!

root@whng01:~# systemctl status quota.service
● quota.service - Check And Enable File System Quotas
   Loaded: loaded (/lib/systemd/system/quota.service; enabled)
   Active: failed (Result: exit-code) since Tue 2015-06-16 18:23:17 CEST; 8s ago
 Docs: man:quotaon(8)
  Process: 1723 ExecStop=/usr/share/quota/quotaoff.sh (code=exited, 
status=0/SUCCESS)
  Process: 1816 ExecStart=/usr/share/quota/quotaon.sh (code=exited, 
status=1/FAILURE)
 Main PID: 1816 (code=exited, status=1/FAILURE)

Jun 16 18:23:17 whng01 quotaon.sh[1816]: Checking quotas...
Jun 16 18:23:17 whng01 systemd[1]: quota.service: main process exited, 
code=exited, status=1/FAILURE
Jun 16 18:23:17 whng01 systemd[1]: Failed to start Check And Enable File System 
Quotas.
Jun 16 18:23:17 whng01 systemd[1]: Unit quota.service entered failed state.


/etc/fstab setting:
UUID=x /home   ext4
errors=remount-ro,usrjquota=quota.user,grpjquota=quota.group,jqfmt=vfsv0 0 2

quota was been created with this commands:
quotacheck -avugm
quotaon -avug


root@whng01:~# dpkg --list quota
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend
|/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad)
||/ Name  Version 
ArchitectureDescription
+++-=-===-===-
ii  quota 4.01-8  
amd64   disk quota management tools


Best Regards,
HeximCZ


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

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


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