Install script failed on Debain 7 and Ubuntu 12.04 LTS

12 posts / 0 new
Last post
#1 Sun, 02/09/2014 - 19:46
pfx

Install script failed on Debain 7 and Ubuntu 12.04 LTS

Here is the log:

INFO - 2014-02-09 20:23:50 - Started installation log in /root/virtualmin-install.log
DEBUG - 2014-02-09 20:23:50 - Install mode: full
DEBUG - 2014-02-09 20:23:50 - Product: Virtualmin GPL
DEBUG - 2014-02-09 20:23:50 - Virtualmin Meta-Package list: virtualmin-base
DEBUG - 2014-02-09 20:23:50 - install.sh version: 1.1.0
INFO - 2014-02-09 20:23:50 - Checking for fully qualified hostname...
INFO - 2014-02-09 20:23:50 - Hostname OK: fully qualified as s4.univerch.com
INFO - 2014-02-09 20:23:50 - Installing serial number and license key into /etc/virtualmin-license
INFO - 2014-02-09 20:23:50 - Loading OS selection library...
INFO - 2014-02-09 20:24:54 - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - 2014-02-09 20:24:54 - Loading OS list...
INFO - 2014-02-09 20:27:03 - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - 2014-02-09 20:27:03 - Operating system name:    Ubuntu Linux
INFO - 2014-02-09 20:27:03 - Operating system version: 12.04.3
INFO - 2014-02-09 20:27:04 - Configuring package manager for Ubuntu Linux 12.04.3...
INFO - 2014-02-09 20:27:04 - Enabling universe repositories, if not already available...
INFO - 2014-02-09 20:27:04 - Disabling cdrom repositories...
INFO - 2014-02-09 20:27:28 - Cleaning up apt headers and packages, so we can start fresh...
INFO - 2014-02-09 20:27:28 -
INFO - 2014-02-09 20:27:28 - Download of http://software.virtualmin.com/lib/apt.conf.noninteractive Succeeded.
INFO - 2014-02-09 20:27:29 - Installing Webmin and Virtualmin package signing keys...
INFO - 2014-02-09 20:27:29 - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin Succeeded.
INFO - 2014-02-09 20:27:29 - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin Succeeded.
INFO - 2014-02-09 20:27:29 - OK
INFO - 2014-02-09 20:27:29 - OK
INFO - 2014-02-09 20:27:37 - Hit
INFO - 2014-02-09 20:27:37 - Removing Debian standard Webmin package, if they exist...
INFO - 2014-02-09 20:27:38 - Removing Debian apache packages...
DEBUG - 2014-02-09 20:27:42 - Reading
INFO - 2014-02-09 20:27:42 - Installing dependencies using command: /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install postfix postfix-pcre webmin usermin ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libgd2-xpm libapache2-mod-php5 php5-mysql
Reading package lists...
Building dependency tree...
Reading state information...
procmail is already the newest version.
apache2-doc is already the newest version.
iptables is already the newest version.
libsasl2-2 is already the newest version.
python is already the newest version.
quota is already the newest version.
sasl2-bin is already the newest version.
unzip is already the newest version.
The following extra packages will be installed:
  apt-show-versions autoconf automake autotools-dev bind9-host bind9utils cpp
  cpp-4.6 dovecot-core gcc gcc-4.6 libapache-ruby1.8 libapt-pkg-perl
  libauthen-pam-perl libbind9-80 libc-dev-bin libc6-dev libclamav6 libdbi-perl
  libdigest-hmac-perl libdns81 libencode-locale-perl liberror-perl
  libfcgi0ldbl libfile-listing-perl libfont-afm-perl libgmp10
  libhtml-form-perl libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-template-perl libhtml-tree-perl
  libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl
  libhttp-message-perl libhttp-negotiate-perl libio-pty-perl
  libio-socket-inet6-perl libio-socket-ssl-perl libisc83 libisccc80
  libisccfg82 libjpeg-turbo8 libjpeg-turbo8:i386 libjpeg8 libltdl-dev
  liblwp-mediatypes-perl liblwp-protocol-https-perl liblwres80
  libmail-spf-perl libmailtools-perl libmpc2 libmpfr4 libmysqlclient18
  libneon27-gnutls libnet-daemon-perl libnet-dns-perl libnet-http-perl
  libnet-ip-perl libnet-xwhois-perl libnetaddr-ip-perl libplrpc-perl libpq5
  libquadmath0 libreadline5 libruby1.8 libsocket6-perl libssl-dev libssl-doc
  libssl1.0.0 libssl1.0.0:i386 libsvn1 libsys-hostname-long-perl
  libterm-readkey-perl libtimedate-perl libtommath0 libtool liburi-perl
  libwww-perl libwww-robotrules-perl libxml-namespacesupport-perl
  libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl
  libxml-sax-perl linux-libc-dev lockfile-progs manpages-dev mysql-client-5.5
  mysql-client-core-5.5 mysql-server-5.5 mysql-server-core-5.5 ntpdate
  php5-cli php5-common php5-dev postgresql-9.1 postgresql-client-9.1
  postgresql-client-common postgresql-common re2c ri1.8 ruby1.8 shtool
  zlib1g-dev
Suggested packages:
  autoconf2.13 autoconf-archive gnu-standards autoconf-doc libgeo-ipfree-perl
  dnsutils bind9-doc resolvconf ufw daemon apparmor cpp-doc gcc-4.6-locales
  dovecot-gssapi dovecot-sieve dovecot-pgsql dovecot-mysql dovecot-sqlite
  dovecot-ldap dovecot-managesieved ntp dovecot-lmtpd dovecot-solr
  gcc-multilib automake1.9 flex bison gdb gcc-doc gcc-4.6-multilib
  libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg libgomp1-dbg libquadmath0-dbg
  libmudflap0-dbg binutils-gold liberuby db4.8-util glibc-doc libclamunrar6
  libgd-tools libdata-dump-perl libipc-sharedcache-perl libtool-doc
  libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql
  libsasl2-modules-gssapi-mit libsasl2-modules-gssapi-heimdal automaken
  gfortran fortran95-compiler gcj libauthen-ntlm-perl listadmin tinyca
  php5-suhosin postfix-mysql postfix-pgsql postfix-ldap postfix-cdb
  postfix-doc oidentd ident-server locales-all postgresql-doc-9.1 proftpd-doc
  proftpd-mod-mysql proftpd-mod-pgsql proftpd-mod-ldap proftpd-mod-odbc
  proftpd-mod-sqlite ruby-dev ruby1.8-examples razor libnet-ident-perl pyzor
  libmail-dkim-perl subversion-tools patch
The following packages will be REMOVED:
  rmail sendmail sendmail-bin
The following NEW packages will be installed:
  apache2 apache2-suexec-custom apt-show-versions autoconf automake
  autotools-dev awstats clamav clamav-base clamav-daemon clamav-docs
  clamav-freshclam clamav-testfiles cpp cpp-4.6 dovecot-common dovecot-core
  dovecot-imapd dovecot-pop3d gcc gcc-4.6 libapache-ruby1.8
  libapache2-mod-fcgid libapache2-mod-php5 libapache2-mod-ruby libapache2-svn
  libapt-pkg-perl libauthen-pam-perl libc-dev-bin libc6-dev libclamav6
  libcrypt-ssleay-perl libdbd-mysql-perl libdbd-pg-perl libdbi-perl
  libdigest-hmac-perl libencode-locale-perl liberror-perl libfcgi-dev
  libfcgi0ldbl libfile-listing-perl libfont-afm-perl libgd2-xpm libgmp10
  libhtml-form-perl libhtml-format-perl libhtml-parser-perl
  libhtml-tagset-perl libhtml-template-perl libhtml-tree-perl
  libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl
  libhttp-message-perl libhttp-negotiate-perl libio-pty-perl
  libio-socket-inet6-perl libio-socket-ssl-perl libjpeg-turbo8 libjpeg8
  libltdl-dev liblwp-mediatypes-perl liblwp-protocol-https-perl
  libmail-spf-perl libmailtools-perl libmpc2 libmpfr4 libmysqlclient18
  libneon27-gnutls libnet-daemon-perl libnet-dns-perl libnet-http-perl
  libnet-ip-perl libnet-ssleay-perl libnet-xwhois-perl libnetaddr-ip-perl
  libpg-perl libplrpc-perl libpq5 libquadmath0 libreadline5 libruby1.8
  libsasl2-modules libsocket6-perl libssl-dev libssl-doc libsvn1
  libsys-hostname-long-perl libterm-readkey-perl libtimedate-perl libtommath0
  libtool liburi-perl libwww-perl libwww-robotrules-perl
  libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl
  libxml-sax-expat-perl libxml-sax-perl libxml-simple-perl linux-libc-dev
  lockfile-progs mailman manpages-dev mysql-client mysql-client-5.5
  mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5
  mysql-server-core-5.5 ntpdate php-pear php5 php5-cgi php5-cli php5-common
  php5-dev php5-mysql postfix postfix-pcre postgresql postgresql-9.1
  postgresql-client postgresql-client-9.1 postgresql-client-common
  postgresql-common proftpd-basic re2c ri ri1.8 ruby ruby1.8 scponly shtool
  spamassassin spamc subversion usermin webalizer webmin zip zlib1g-dev
The following packages will be upgraded:
  bind9 bind9-host bind9utils libbind9-80 libdns81 libisc83 libisccc80
  libisccfg82 libjpeg-turbo8:i386 liblwres80 libssl1.0.0 libssl1.0.0:i386
  openssl
13 upgraded, 144 newly installed, 3 to remove and 51 not upgraded.
Need to get 142 MB of archives.
After this operation, 505 MB of additional disk space will be used.
Get:1 http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal/main usermin all 1.570 [9216 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl1.0.0 i386 1.0.1-4ubuntu5.11 [1007 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl1.0.0 amd64 1.0.1-4ubuntu5.11 [1050 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main postfix amd64 2.9.6-1~12.04.1 [1320 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main ntpdate amd64 1:4.2.6.p3+dfsg-1ubuntu3.1 [65.1 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ precise-updates/main libjpeg-turbo8 i386 1.1.90+svn733-0ubuntu4.3 [118 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ precise-updates/main libjpeg-turbo8 amd64 1.1.90+svn733-0ubuntu4.3 [111 kB]
Get:8 http://archive.ubuntu.com/ubuntu/ precise/main libjpeg8 amd64 8c-2ubuntu7 [2112 B]
Get:9 http://archive.ubuntu.com/ubuntu/ precise/main libgd2-xpm amd64 2.0.36~rc1~dfsg-6ubuntu2 [202 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ precise/main libgmp10 amd64 2:5.0.2+dfsg-2ubuntu1 [238 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ precise/main libmpfr4 amd64 3.1.0-3ubuntu2 [201 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ precise-updates/main mysql-common all 5.5.35-0ubuntu0.12.04.2 [13.0 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ precise-updates/main libmysqlclient18 amd64 5.5.35-0ubuntu0.12.04.2 [945 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ precise/main libquadmath0 amd64 4.6.3-1ubuntu5 [126 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ precise/main libreadline5 amd64 5.2-11 [128 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ precise-updates/main libneon27-gnutls amd64 0.29.6-1ubuntu1 [76.4 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ precise-updates/main libsvn1 amd64 1.6.17dfsg-3ubuntu3.3 [820 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ precise-updates/main apache2 amd64 2.2.22-1ubuntu1.4 [1492 B]
Get:19 http://archive.ubuntu.com/ubuntu/ precise-updates/main mailman amd64 1:2.1.14-3ubuntu0.1 [9664 kB]
Get:20 http://software.virtualmin.com/gpl/ubuntu/ virtualmin-universal/main webmin all 1.675 [21.8 MB]
Get:21 http://archive.ubuntu.com/ubuntu/ precise/main libnet-daemon-perl all 0.48-1 [43.1 kB]
Get:22 http://archive.ubuntu.com/ubuntu/ precise/main libplrpc-perl all 0.2020-2 [36.0 kB]
Get:23 http://archive.ubuntu.com/ubuntu/ precise/main libdbi-perl amd64 1.616-1build2 [849 kB]
Get:24 http://archive.ubuntu.com/ubuntu/ precise/main libdbd-mysql-perl amd64 4.020-1build2 [106 kB]
Get:25 http://archive.ubuntu.com/ubuntu/ precise-updates/main mysql-client-core-5.5 amd64 5.5.35-0ubuntu0.12.04.2 [1923 kB]
Get:26 http://archive.ubuntu.com/ubuntu/ precise/main libterm-readkey-perl amd64 2.30-4build3 [28.6 kB]
Get:27 http://archive.ubuntu.com/ubuntu/ precise-updates/main mysql-client-5.5 amd64 5.5.35-0ubuntu0.12.04.2 [8292 kB]
Get:28 http://archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server-core-5.5 amd64 5.5.35-0ubuntu0.12.04.2 [6073 kB]
Get:29 http://software.virtualmin.com/gpl/ubuntu/ virtualmin-precise/main scponly amd64 4.8-4 [36.6 kB]
Get:30 http://archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server-5.5 amd64 5.5.35-0ubuntu0.12.04.2 [8820 kB]
Get:31 http://archive.ubuntu.com/ubuntu/ precise/main libnet-ssleay-perl amd64 1.42-1build1 [188 kB]
Get:32 http://archive.ubuntu.com/ubuntu/ precise-updates/main openssl amd64 1.0.1-4ubuntu5.11 [524 kB]
Get:33 http://archive.ubuntu.com/ubuntu/ precise/universe libauthen-pam-perl amd64 0.16-2build2 [28.5 kB]
Get:34 http://archive.ubuntu.com/ubuntu/ precise/main libio-pty-perl amd64 1:1.08-1build2 [36.7 kB]
Get:35 http://archive.ubuntu.com/ubuntu/ precise/main libapt-pkg-perl amd64 0.1.25build2 [82.9 kB]
Get:36 http://archive.ubuntu.com/ubuntu/ precise/universe apt-show-versions all 0.17 [32.9 kB]
Get:37 http://archive.ubuntu.com/ubuntu/ precise/universe webalizer amd64 2.01.10-32.7 [355 kB]
Get:38 http://archive.ubuntu.com/ubuntu/ precise/main libmpc2 amd64 0.9-4 [39.5 kB]
Get:39 http://archive.ubuntu.com/ubuntu/ precise/main lockfile-progs amd64 0.1.16 [10.5 kB]
Get:40 http://archive.ubuntu.com/ubuntu/ precise-updates/main bind9 amd64 1:9.8.1.dfsg.P1-4ubuntu0.8 [343 kB]
Get:41 http://archive.ubuntu.com/ubuntu/ precise-updates/main bind9-host amd64 1:9.8.1.dfsg.P1-4ubuntu0.8 [55.4 kB]
Get:42 http://archive.ubuntu.com/ubuntu/ precise-updates/main libisc83 amd64 1:9.8.1.dfsg.P1-4ubuntu0.8 [161 kB]
Get:43 http://archive.ubuntu.com/ubuntu/ precise-updates/main libdns81 amd64 1:9.8.1.dfsg.P1-4ubuntu0.8 [704 kB]
Get:44 http://archive.ubuntu.com/ubuntu/ precise-updates/main libisccc80 amd64 1:9.8.1.dfsg.P1-4ubuntu0.8 [17.6 kB]
Get:45 http://archive.ubuntu.com/ubuntu/ precise-updates/main libisccfg82 amd64 1:9.8.1.dfsg.P1-4ubuntu0.8 [43.4 kB]
Get:46 http://archive.ubuntu.com/ubuntu/ precise-updates/main liblwres80 amd64 1:9.8.1.dfsg.P1-4ubuntu0.8 [38.0 kB]
Get:47 http://archive.ubuntu.com/ubuntu/ precise-updates/main bind9utils amd64 1:9.8.1.dfsg.P1-4ubuntu0.8 [107 kB]
Get:48 http://archive.ubuntu.com/ubuntu/ precise-updates/main libbind9-80 amd64 1:9.8.1.dfsg.P1-4ubuntu0.8 [24.3 kB]
Get:49 http://archive.ubuntu.com/ubuntu/ precise-updates/main libsasl2-modules amd64 2.1.25.dfsg1-3ubuntu0.1 [63.2 kB]
Get:50 http://archive.ubuntu.com/ubuntu/ precise/main autoconf all 2.68-1ubuntu2 [560 kB]
Get:51 http://archive.ubuntu.com/ubuntu/ precise/main autotools-dev all 20120210.1ubuntu1 [42.4 kB]
Get:52 http://archive.ubuntu.com/ubuntu/ precise/main automake all 1:1.11.3-1ubuntu2 [571 kB]
Get:53 http://archive.ubuntu.com/ubuntu/ precise/main awstats all 7.0~dfsg-5 [981 kB]
Get:54 http://archive.ubuntu.com/ubuntu/ precise/main libtommath0 amd64 0.42.0-1 [53.0 kB]
Get:55 http://archive.ubuntu.com/ubuntu/ precise-updates/main libclamav6 amd64 0.97.8+dfsg-1ubuntu1.12.04.1 [4069 kB]
Get:56 http://archive.ubuntu.com/ubuntu/ precise-updates/main clamav-base all 0.97.8+dfsg-1ubuntu1.12.04.1 [102 kB]
Get:57 http://archive.ubuntu.com/ubuntu/ precise-updates/main clamav-freshclam amd64 0.97.8+dfsg-1ubuntu1.12.04.1 [116 kB]
Get:58 http://archive.ubuntu.com/ubuntu/ precise-updates/main clamav amd64 0.97.8+dfsg-1ubuntu1.12.04.1 [133 kB]
Get:59 http://archive.ubuntu.com/ubuntu/ precise-updates/main clamav-daemon amd64 0.97.8+dfsg-1ubuntu1.12.04.1 [228 kB]
Get:60 http://archive.ubuntu.com/ubuntu/ precise-updates/main clamav-docs all 0.97.8+dfsg-1ubuntu1.12.04.1 [1083 kB]
Get:61 http://archive.ubuntu.com/ubuntu/ precise-updates/universe clamav-testfiles all 0.97.8+dfsg-1ubuntu1.12.04.1 [5056 kB]
Get:62 http://archive.ubuntu.com/ubuntu/ precise/main cpp-4.6 amd64 4.6.3-1ubuntu5 [4836 kB]
Get:63 http://archive.ubuntu.com/ubuntu/ precise/main cpp amd64 4:4.6.3-1ubuntu5 [27.6 kB]
Get:64 http://archive.ubuntu.com/ubuntu/ precise-updates/main dovecot-core amd64 1:2.0.19-0ubuntu2 [2011 kB]
Get:65 http://archive.ubuntu.com/ubuntu/ precise-updates/universe dovecot-common all 1:2.0.19-0ubuntu2 [51.3 kB]
Get:66 http://archive.ubuntu.com/ubuntu/ precise-updates/main dovecot-imapd amd64 1:2.0.19-0ubuntu2 [89.5 kB]
Get:67 http://archive.ubuntu.com/ubuntu/ precise-updates/main dovecot-pop3d amd64 1:2.0.19-0ubuntu2 [29.9 kB]
Get:68 http://archive.ubuntu.com/ubuntu/ precise/main gcc-4.6 amd64 4.6.3-1ubuntu5 [7572 kB]
FATAL - 2014-02-09 20:28:31 - Fatal Error Occurred: Something went wrong during installation: 0
FATAL - 2014-02-09 20:28:31 - Cannot continue installation.
FATAL - 2014-02-09 20:28:31 - Attempting to remove virtualmin repository configuration, so the installation can be
FATAL - 2014-02-09 20:28:31 - re-attempted after any problems have been resolved.
FATAL - 2014-02-09 20:28:32 - Removing temporary directory and files.
FATAL - 2014-02-09 20:28:32 - If you are unsure of what went wrong, you may wish to review the log
FATAL - 2014-02-09 20:28:32 - in /root/virtualmin-install.log

Thanks.

Mon, 02/10/2014 - 09:00
andreychek

Howdy,

Hmm, can you show the output of this command:

df -h

Also, try having apt install those packages, which you can do with this command... what output do you receive when running this on your Debian 7 system:

apt-get install postfix postfix-pcre ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom scponly apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libgd2-xpm libapache2-mod-php5 php5-mysql

Mon, 02/10/2014 - 15:15
pfx

df -h

Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs       50G  756M   50G   2% /
none            1.5G  4.0K  1.5G   1% /dev
none            308M  980K  307M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            1.2G     0  1.2G   0% /run/shm
none            100M     0  100M   0% /run/user

If I manually run the apt-get install, I get this error: Killedg package lists... 24%

BTW, I wonder whether Virtualmin adopts php-cgi suexec by default or not? Do I have to manually configure things like fcgid and suexec?

Sorry for asking so many questions. Thanks a lot.

Mon, 02/10/2014 - 15:17
pfx

I ran the apt-get install again, and it now looks like this:

Reading package lists... Done
Building dependency tree      
Reading state information... Done
Note, selecting 'ruby' instead of 'irb'
Note, selecting 'ruby' instead of 'rdoc'
Note, selecting 'proftpd-basic' instead of 'proftpd'
E: Unable to locate package scponly
Mon, 02/10/2014 - 18:00
andreychek

Howdy,

You don't need to manually configure anything, but I think we may be seeing the problem with your earlier comment... are you using an OpenVZ-based VPS?

If so, can you paste in the contents of your /proc/user_beancounters file?

Also, the command I gave you is incorrect, I meant to remove the scponly package from it, as that won't work properly when being run manually... try it again with this command:

apt-get install postfix postfix-pcre ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libgd2-xpm libapache2-mod-php5 php5-mysql

Tue, 02/11/2014 - 12:50 (Reply to #5)
pfx

Hi,

It is an OpenVZ VPS and I've reinstalled it. It's now an Ubuntu 12.04 x64.

As for the three commands you gave me:

df -h

Filesystem      Size  Used Avail Use% Mounted on
/dev/simfs       50G  763M   50G   2% /
none            1.5G  4.0K  1.5G   1% /dev
none            308M  1.0M  307M   1% /run
none            5.0M     0  5.0M   0% /run/lock
none            1.5G     0  1.5G   0% /run/shm

cat /proc/user_beancounters

Version: 2.5
       uid  resource                     held              maxheld              barrier                limit              failcnt
      743:  kmemsize                  6014897              8482816           1610612736           1610612736                    0
            lockedpages                     0                    0               393216               393216                    0
            privvmpages                  4803                26834  9223372036854775807  9223372036854775807                    0
            shmpages                      915                  931  9223372036854775807  9223372036854775807                    0
            dummy                           0                    0  9223372036854775807  9223372036854775807                    0
            numproc                        21                   60  9223372036854775807  9223372036854775807                    0
            physpages                   56578                59257                    0               786432                    0
            vmguarpages                     0                    0  9223372036854775807  9223372036854775807                    0
            oomguarpages                 2525                 2526  9223372036854775807  9223372036854775807                    0
            numtcpsock                      6                    9  9223372036854775807  9223372036854775807                    0
            numflock                        4                    7  9223372036854775807  9223372036854775807                    0
            numpty                          2                   10  9223372036854775807  9223372036854775807                    0
            numsiginfo                      0                   39  9223372036854775807  9223372036854775807                    0
            tcpsndbuf                  111312               163632  9223372036854775807  9223372036854775807                    0
            tcprcvbuf                   98304              1258992  9223372036854775807  9223372036854775807                    0
            othersockbuf                32368                97576  9223372036854775807  9223372036854775807                    0
            dgramrcvbuf                     0                 4624  9223372036854775807  9223372036854775807                    0
            numothersock                   66                   71  9223372036854775807  9223372036854775807                    0
            dcachesize                2420988              2513725            805306368            805306368                    0
            numfile                       356                  545  9223372036854775807  9223372036854775807                    0
            dummy                           0                    0  9223372036854775807  9223372036854775807                    0
            dummy                           0                    0  9223372036854775807  9223372036854775807                    0
            dummy                           0                    0  9223372036854775807  9223372036854775807                    0
            numiptent                      24                   24  9223372036854775807  9223372036854775807                    0

apt-get install

root@s4:~# apt-get install postfix postfix-pcre ruby libapache2-mod-ruby libxml-simple-perl libcrypt-ssleay-perl unzip zip libfcgi-dev bind9 spamassassin spamc procmail libnet-ssleay-perl libpg-perl libdbd-pg-perl libdbd-mysql-perl quota iptables openssl python mailman subversion ruby irb rdoc ri mysql-server mysql-client mysql-common postgresql postgresql-client awstats webalizer dovecot-common dovecot-imapd dovecot-pop3d proftpd libcrypt-ssleay-perl awstats clamav-base clamav-daemon clamav clamav-freshclam clamav-docs clamav-testfiles libapache2-mod-fcgid apache2-suexec-custom apache2 apache2-doc libapache2-svn libsasl2-2 libsasl2-modules sasl2-bin php-pear php5 php5-cgi libgd2-xpm libapache2-mod-php5 php5-mysql
Reading package lists... Done
Building dependency tree... Done
Note, selecting 'ruby' instead of 'irb'
Note, selecting 'ruby' instead of 'rdoc'
Note, selecting 'proftpd-basic' instead of 'proftpd'
procmail is already the newest version.
apache2 is already the newest version.
apache2-doc is already the newest version.
iptables is already the newest version.
libsasl2-2 is already the newest version.
python is already the newest version.
quota is already the newest version.
sasl2-bin is already the newest version.
unzip is already the newest version.
The following extra packages will be installed:
  autoconf automake autotools-dev bind9-host bind9utils cpp cpp-4.6 dovecot-core gcc gcc-4.6 libapache-ruby1.8 libbind9-80 libc-dev-bin libc6-dev libclamav6 libdbi-perl
  libdigest-hmac-perl libdns81 libencode-locale-perl liberror-perl libfcgi0ldbl libfile-listing-perl libfont-afm-perl libgmp10 libhtml-form-perl libhtml-format-perl
  libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl
  libhttp-negotiate-perl libio-socket-inet6-perl libio-socket-ssl-perl libisc83 libisccc80 libisccfg82 libjpeg-turbo8 libjpeg-turbo8:i386 libjpeg8 libltdl-dev
  liblwp-mediatypes-perl liblwp-protocol-https-perl liblwres80 libmail-spf-perl libmailtools-perl libmpc2 libmpfr4 libmysqlclient18 libneon27-gnutls libnet-daemon-perl
  libnet-dns-perl libnet-http-perl libnet-ip-perl libnet-xwhois-perl libnetaddr-ip-perl libplrpc-perl libpq5 libquadmath0 libreadline5 libruby1.8 libsocket6-perl libssl-dev
  libssl-doc libssl1.0.0 libssl1.0.0:i386 libsvn1 libsys-hostname-long-perl libterm-readkey-perl libtimedate-perl libtommath0 libtool liburi-perl libwww-perl
  libwww-robotrules-perl libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl linux-libc-dev lockfile-progs manpages-dev
  mysql-client-5.5 mysql-client-core-5.5 mysql-server-5.5 mysql-server-core-5.5 ntpdate php5-cli php5-common php5-dev postgresql-9.1 postgresql-client-9.1
  postgresql-client-common postgresql-common re2c ri1.8 ruby1.8 shtool zlib1g-dev
Suggested packages:
  autoconf2.13 autoconf-archive gnu-standards autoconf-doc libgeo-ipfree-perl dnsutils bind9-doc resolvconf ufw daemon apparmor cpp-doc gcc-4.6-locales dovecot-gssapi
  dovecot-sieve dovecot-pgsql dovecot-mysql dovecot-sqlite dovecot-ldap dovecot-managesieved ntp dovecot-lmtpd dovecot-solr gcc-multilib automake1.9 flex bison gdb gcc-doc
  gcc-4.6-multilib libmudflap0-4.6-dev gcc-4.6-doc libgcc1-dbg libgomp1-dbg libquadmath0-dbg libmudflap0-dbg binutils-gold liberuby db4.8-util glibc-doc libclamunrar6
  libgd-tools libdata-dump-perl libipc-sharedcache-perl libtool-doc libsasl2-modules-otp libsasl2-modules-ldap libsasl2-modules-sql libsasl2-modules-gssapi-mit
  libsasl2-modules-gssapi-heimdal automaken gfortran fortran95-compiler gcj libauthen-ntlm-perl listadmin tinyca php5-suhosin postfix-mysql postfix-pgsql postfix-ldap
  postfix-cdb postfix-doc oidentd ident-server locales-all postgresql-doc-9.1 proftpd-doc proftpd-mod-mysql proftpd-mod-pgsql proftpd-mod-ldap proftpd-mod-odbc
  proftpd-mod-sqlite ruby-dev ruby1.8-examples razor libnet-ident-perl pyzor libmail-dkim-perl subversion-tools patch
The following packages will be REMOVED:
  rmail sendmail sendmail-bin
The following NEW packages will be installed:
  apache2-suexec-custom autoconf automake autotools-dev awstats clamav clamav-base clamav-daemon clamav-docs clamav-freshclam clamav-testfiles cpp cpp-4.6 dovecot-common
  dovecot-core dovecot-imapd dovecot-pop3d gcc gcc-4.6 libapache-ruby1.8 libapache2-mod-fcgid libapache2-mod-php5 libapache2-mod-ruby libapache2-svn libc-dev-bin libc6-dev
  libclamav6 libcrypt-ssleay-perl libdbd-mysql-perl libdbd-pg-perl libdbi-perl libdigest-hmac-perl libencode-locale-perl liberror-perl libfcgi-dev libfcgi0ldbl
  libfile-listing-perl libfont-afm-perl libgd2-xpm libgmp10 libhtml-form-perl libhtml-format-perl libhtml-parser-perl libhtml-tagset-perl libhtml-template-perl
  libhtml-tree-perl libhttp-cookies-perl libhttp-daemon-perl libhttp-date-perl libhttp-message-perl libhttp-negotiate-perl libio-socket-inet6-perl libio-socket-ssl-perl
  libjpeg-turbo8 libjpeg8 libltdl-dev liblwp-mediatypes-perl liblwp-protocol-https-perl libmail-spf-perl libmailtools-perl libmpc2 libmpfr4 libmysqlclient18 libneon27-gnutls
  libnet-daemon-perl libnet-dns-perl libnet-http-perl libnet-ip-perl libnet-ssleay-perl libnet-xwhois-perl libnetaddr-ip-perl libpg-perl libplrpc-perl libpq5 libquadmath0
  libreadline5 libruby1.8 libsasl2-modules libsocket6-perl libssl-dev libssl-doc libsvn1 libsys-hostname-long-perl libterm-readkey-perl libtimedate-perl libtommath0 libtool
  liburi-perl libwww-perl libwww-robotrules-perl libxml-namespacesupport-perl libxml-parser-perl libxml-sax-base-perl libxml-sax-expat-perl libxml-sax-perl libxml-simple-perl
  linux-libc-dev lockfile-progs mailman manpages-dev mysql-client mysql-client-5.5 mysql-client-core-5.5 mysql-common mysql-server mysql-server-5.5 mysql-server-core-5.5
  ntpdate php-pear php5 php5-cgi php5-cli php5-common php5-dev php5-mysql postfix postfix-pcre postgresql postgresql-9.1 postgresql-client postgresql-client-9.1
  postgresql-client-common postgresql-common proftpd-basic re2c ri ri1.8 ruby ruby1.8 shtool spamassassin spamc subversion webalizer zip zlib1g-dev
The following packages will be upgraded:
  bind9 bind9-host bind9utils libbind9-80 libdns81 libisc83 libisccc80 libisccfg82 libjpeg-turbo8:i386 liblwres80 libssl1.0.0 libssl1.0.0:i386 openssl
13 upgraded, 136 newly installed, 3 to remove and 51 not upgraded.
Need to get 111 MB of archives.
After this operation, 324 MB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl1.0.0 i386 1.0.1-4ubuntu5.11 [1007 kB]
Get:2 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl1.0.0 amd64 1.0.1-4ubuntu5.11 [1050 kB]
Get:3 http://archive.ubuntu.com/ubuntu/ precise-updates/main postfix amd64 2.9.6-1~12.04.1 [1320 kB]
Get:4 http://archive.ubuntu.com/ubuntu/ precise-updates/main ntpdate amd64 1:4.2.6.p3+dfsg-1ubuntu3.1 [65.1 kB]
Get:5 http://archive.ubuntu.com/ubuntu/ precise-updates/main libjpeg-turbo8 i386 1.1.90+svn733-0ubuntu4.3 [118 kB]
Get:6 http://archive.ubuntu.com/ubuntu/ precise-updates/main libjpeg-turbo8 amd64 1.1.90+svn733-0ubuntu4.3 [111 kB]
Get:7 http://archive.ubuntu.com/ubuntu/ precise/main libjpeg8 amd64 8c-2ubuntu7 [2112 B]
Get:8 http://archive.ubuntu.com/ubuntu/ precise/main libgd2-xpm amd64 2.0.36~rc1~dfsg-6ubuntu2 [202 kB]
Get:9 http://archive.ubuntu.com/ubuntu/ precise/main libgmp10 amd64 2:5.0.2+dfsg-2ubuntu1 [238 kB]
Get:10 http://archive.ubuntu.com/ubuntu/ precise/main libmpfr4 amd64 3.1.0-3ubuntu2 [201 kB]
Get:11 http://archive.ubuntu.com/ubuntu/ precise-updates/main mysql-common all 5.5.35-0ubuntu0.12.04.2 [13.0 kB]
Get:12 http://archive.ubuntu.com/ubuntu/ precise-updates/main libmysqlclient18 amd64 5.5.35-0ubuntu0.12.04.2 [945 kB]
Get:13 http://archive.ubuntu.com/ubuntu/ precise/main libquadmath0 amd64 4.6.3-1ubuntu5 [126 kB]
Get:14 http://archive.ubuntu.com/ubuntu/ precise/main libreadline5 amd64 5.2-11 [128 kB]
Get:15 http://archive.ubuntu.com/ubuntu/ precise-updates/main libneon27-gnutls amd64 0.29.6-1ubuntu1 [76.4 kB]
Get:16 http://archive.ubuntu.com/ubuntu/ precise-updates/main libsvn1 amd64 1.6.17dfsg-3ubuntu3.3 [820 kB]
Get:17 http://archive.ubuntu.com/ubuntu/ precise-updates/main mailman amd64 1:2.1.14-3ubuntu0.1 [9664 kB]
Get:18 http://archive.ubuntu.com/ubuntu/ precise/main libnet-daemon-perl all 0.48-1 [43.1 kB]                                                                                 
Get:19 http://archive.ubuntu.com/ubuntu/ precise/main libplrpc-perl all 0.2020-2 [36.0 kB]                                                                                    
Get:20 http://archive.ubuntu.com/ubuntu/ precise/main libdbi-perl amd64 1.616-1build2 [849 kB]                                                                                
Get:21 http://archive.ubuntu.com/ubuntu/ precise/main libdbd-mysql-perl amd64 4.020-1build2 [106 kB]                                                                          
Get:22 http://archive.ubuntu.com/ubuntu/ precise-updates/main mysql-client-core-5.5 amd64 5.5.35-0ubuntu0.12.04.2 [1923 kB]                                                   
Get:23 http://archive.ubuntu.com/ubuntu/ precise/main libterm-readkey-perl amd64 2.30-4build3 [28.6 kB]                                                                       
Get:24 http://archive.ubuntu.com/ubuntu/ precise-updates/main mysql-client-5.5 amd64 5.5.35-0ubuntu0.12.04.2 [8292 kB]                                                        
Get:25 http://archive.ubuntu.com/ubuntu/ precise-updates/main mysql-server-core-5.5 amd64 5.5.35-0ubuntu0.12.04.2 [6073 kB]                                                   
29% [25 mysql-server-core-5.5 5241 kB/6073 kB 86%]                                                                                                            502 kB/s 2min 35sKilled

Thanks.

Tue, 02/11/2014 - 13:19
andreychek

Hmm, I don't see any errors in the above, is it working properly for you now?

I do suspect you were seeing OpenVZ related resource errors though... if that happens again, see if any of the "failcnt" fields at the far-right of the user_beancounters file are non-zero.

-Eric

Tue, 02/11/2014 - 13:32 (Reply to #7)
pfx

Nope.

Actually the last line looks like this:

29% [25 mysql-server-core-5.5 5241 kB/6073 kB 86%]                                                                                                            502 kB/s 2min 35sKilled

At the right corner, there was a "Killed". I don't know why the process was killed.

I've run it again, and the second time it looked like this:

Get:28 http://archive.ubuntu.com/ubuntu/ precise-updates/universe clamav-testfiles all 0.97.8+dfsg-1ubuntu1.12.04.1 [5056 kB]
35% [28 clamav-testfiles 3728 kB/5056 kB 74%]                     2795 kB/s 19sKilled

At the right corner, there was also a "Killed".

And the third time:

Get:62 http://archive.ubuntu.com/ubuntu/ precise-updates/main libssl-doc all 1.0.1-4ubuntu5.11 [1034 kB]
58% [62 libssl-doc 0 B/1034 kB 0%]                                 509 kB/s 48sKilled

Another "Killed".

Every time the "Killed" occures at a different package. Do you know why's that?

Thanks.

Tue, 02/11/2014 - 13:46
Locutus

You might want to check the beancounters again, if there are failures recorded now. Also, what do you get for this command: free -m

OpenVZ is one of the prime causes for problems with Virtualmin.

Tue, 02/11/2014 - 13:58 (Reply to #9)
pfx

They are both fine.

             total       used       free     shared    buffers     cached
Mem:          3072        359       2712          0          0        328
-/+ buffers/cache:         30       3041
Swap:         3072          0       3072

I also checked beancounters after every "Killed". All were 0.

I contacted my VPS provider. They told me they have seen the same problems before but they could come through when they tried to install Virtualmin. That's very werid.

Thanks.

Tue, 02/11/2014 - 14:04
Locutus

Yes, that's weird indeed. I have no idea why the Virtualmin installation, or especially a simple apt-get, should fail like that on a fresh Ubuntu. It never did for me. Then again, I use VMware and not OpenVZ.

All I can say at this point is, once more: OpenVZ SUCKS!

Tue, 02/11/2014 - 14:11 (Reply to #11)
pfx

Gotcha. Thanks anyway. Maybe I'll consider buying a KVM VPS next time :)

Topic locked