setup.sh: Job for quota.service failed. See 'systemctl status quota.service' and 'jou

hansmiddelhoek

Verified User
Joined
Apr 26, 2005
Messages
40
Location
Netherlands
I'm testing Debian Jessie for new installs, I experienced the following.

During setup.sh, in bold the real error, other information for clarification:
Code:
*****************************************************
*
* DirectAdmin requires certain packages, described here:
*   http://help.directadmin.com/item.php?id=354
*
* Would you like to install these required pre-install packages? (y/n): y
*
* Installing pre-install packages ....
Reading package lists... Done
Building dependency tree
Reading state information... Done
bzip2 is already the newest version.
bzip2 set to manually installed.
perl is already the newest version.
perl set to manually installed.
perl-base is already the newest version.
perl-modules is already the newest version.
perl-modules set to manually installed.
python is already the newest version.
python set to manually installed.
zlib1g is already the newest version.
The following extra packages will be installed:
  autotools-dev bind9utils ca-certificates cmake-data cpp cpp-4.9 dbus g++-4.9 gcc-4.9 libarchive13 libasan1 libatomic1 libbison-dev libc-dev-bin
  libc6-dev libcap-ng0 libcilkrts5 libcloog-isl4 libcurl3 libdb5.3-dev libdbus-1-3 libfl-dev libgcc-4.9-dev libgomp1 libisl10 libitm1 libldap-2.4-2
  liblsan0 libltdl-dev libltdl7 liblzo2-2 libmpc3 libmpfr4 libnl-3-200 libnl-genl-3-200 libperl5.20 libquadmath0 librtmp1 libsasl2-2
  libsasl2-modules libsasl2-modules-db libsigsegv2 libssl-doc libstdc++-4.9-dev libtinfo-dev libtirpc1 libtsan0 libubsan0 linux-libc-dev m4
  manpages-dev
Suggested packages:
  autoconf-archive gnu-standards autoconf-doc gettext dnsutils bind9-doc resolvconf ufw bison-doc codeblocks eclipse ninja-build cpp-doc
  gcc-4.9-locales dbus-x11 build-essential g++-multilib g++-4.9-multilib gcc-4.9-doc libstdc++6-4.9-dbg gcc-multilib gdb gcc-doc gcc-4.9-multilib
  libgcc1-dbg libgomp1-dbg libitm1-dbg libatomic1-dbg libasan1-dbg liblsan0-dbg libtsan0-dbg libubsan0-dbg libcilkrts5-dbg libquadmath0-dbg lrzip
  glibc-doc db5.3-doc libtool-doc ncurses-doc libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit
  libsasl2-modules-gssapi-heimdal libstdc++-4.9-doc automaken gfortran fortran95-compiler gcj-jdk make-doc libnet-ldap-perl rpcbind
The following NEW packages will be installed:
  autoconf automake autotools-dev bind9 bind9utils bison ca-certificates cmake cmake-data cpp cpp-4.9 dbus flex g++ g++-4.9 gcc gcc-4.9 libaio-dev
  libaio1 libarchive13 libasan1 libatomic1 libbison-dev libc-dev-bin libc6-dev libcap-dev libcap-ng0 libcilkrts5 libcloog-isl4 libcurl3 libdb-dev
  libdb5.3-dev libdbus-1-3 libfl-dev libgcc-4.9-dev libgomp1 libisl10 libitm1 libldap-2.4-2 liblsan0 libltdl-dev libltdl7 liblzo2-2 libmpc3 libmpfr4
  libncurses5-dev libnl-3-200 libnl-genl-3-200 libperl-dev libperl5.20 libquadmath0 librtmp1 libsasl2-2 libsasl2-dev libsasl2-modules
  libsasl2-modules-db libsigsegv2 libssl-dev libssl-doc libstdc++-4.9-dev libsystemd-daemon0 libsystemd-dev libtinfo-dev libtirpc1 libtool libtsan0
  libubsan0 linux-libc-dev m4 make manpages-dev openssl pkg-config quota zlib1g-dev
0 upgraded, 75 newly installed, 0 to remove and 0 not upgraded.
Need to get 59.0 MB of archives.
After this operation, 178 MB of additional disk space will be used.
Get:1 http://ftp.nl.debian.org/debian/ jessie/main libsasl2-modules-db amd64 2.1.26.dfsg1-13 [67.0 kB]
Get:2 http://security.debian.org/ jessie/updates/main libcurl3 amd64 7.38.0-4+deb8u2 [259 kB]
.....
.....
.....
Setting up manpages-dev (3.74-1) ...
Setting up pkg-config (0.28-1) ...
Setting up quota (4.01-8) ...
[B]Job for quota.service failed. See 'systemctl status quota.service' and 'journalctl -xn' for details.
invoke-rc.d: initscript quota, action "start" failed.
dpkg: error processing package quota (--configure):
 subprocess installed post-installation script returned error exit status 1[/B]
Setting up libdb5.3-dev (5.3.28-9) ...
Setting up libdb-dev:amd64 (5.3.0+b1) ...
Processing triggers for libc-bin (2.19-18) ...
Processing triggers for systemd (215-17) ...
Processing triggers for ca-certificates (20141019) ...
Updating certificates in /etc/ssl/certs... 173 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d....done.
[B]Errors were encountered while processing:
 quota
E: Sub-process /usr/bin/dpkg returned an error code (1)[/B]
*
*****************************************************

And a very minor syntax thing in setup.sh, probably a "echo -e":
Code:
Please enter your Client ID :
Please enter your License ID :
[B]-e Please enter your hostname \(server.domain.com\)[/B]
It must be a Fully Qualified Domain Name

I need to choose between custombuild 2.0 and 2.0 BETA:
Code:
You now have 4 options for your apache/php setup.

1: custombuild 2.0       Apache 2.4, mod_ruid2, php 5.5. Can be set to use mod_php, php-FPM or fastcgi.
4: custombuild 2.0 BETA: Apache 2.4, php-fpm, php 5.6. Can be set to use mod_ruid2, mod_php, php-FPM or fastcgi.

      Post any issues with custombuild to the forum: http://forum.directadmin.com/forumdisplay.php?f=61

Note: due to the current OS, some options are hidden because you must use CustomBuild 2.0
Enter your choice (1, 2, 3 or 4):

I've 4 options, but it only shows 2 because of the current OS. Shouldn't the explanation, numbering and choice be optimized for this case, so it says I've 2 options and only let me choose between 1 and 2? It's no bug, but I mention it though, so it can be further optimized. I didn't test it, but is the script aware of faulty answer 2 and 3?
 
Thanks for the reports.

Can you paste the output of:
Code:
systemctl status quota.service

I've fixed the echo -e \( issue.

Because Debian 8 requires CB2, we've hidden options 2 and 3, which are for CustomBuild 1.1 and 1.2.
We could rewrite it to show only 1 and 2, but for now, that's how we've done it.

John
 
Code:
# systemctl status quota.service
â quota.service - Check And Enable File System Quotas
   Loaded: loaded (/lib/systemd/system/quota.service; enabled)
   Active: active (exited) since Fri 2015-05-08 16:29:37 CEST; 3 days ago
     Docs: man:quotaon(8)
 Main PID: 23366 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/quota.service
Code:
# grep quota /etc/fstab
/dev/mapper/vg0-lvhome /home           ext4    nodev,nosuid,noexec,usrquota,grpquota        0       2
 
Seems like it works:
Code:
# repquota /home
*** Report for user quotas on device /dev/mapper/vg0-lvhome
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --      24       0       0              3     0     0
xxxxxx    --      20       0       0              5     0     0
mysql     --  118060       0       0            103     0     0
admin     --     128       0       0             35     0     0
 
Back
Top