Installation Failures on Debian 5

9 posts / 0 new
Last post
#1 Mon, 04/05/2010 - 16:29
civiclix

Installation Failures on Debian 5

I've searched the forums in vain for any help in regards to the following...I'm a total nOOb, so please forgive my ignorance!

Tried this several times on a clean install of Debian 5 x64 and get the following error(s):

host1:~# sh install.sh

Welcome to the Virtualmin GPL installer, version 1.0.3

WARNING:

The installation is quite stable and functional when run on a freshly installed supported Operating System, but upgrades from existing .wbm- based systems, or systems that already have Apache VirtualHost directives or mail users, will very likely run into numerous problems. Please read the Virtualmin Administrators Guide before proceeding if your system is not a freshly installed and supported OS.

This script is not intended to update your system! It should only be used to install Virtualmin, on a supported OS. If you have previously installed Virtualmin via this script or the GPL version of this script, upgrades and updates should be handled within Virtualmin itself. Once Virtualmin is installed, you never need to run this script again.

The systems currently supported by install.sh are: CentOS 4 and 5 on i386 and x86_64 Debian 4.0 and 5.0 on i386 and amd64 Ubuntu 8.04 LTS on i386 and amd64

If your OS is not listed above, this script will fail. More details about the systems supported by the script can be found here:

http://www.virtualmin.com/os-support.html

Continue? (y/n) y Checking for HTTP client...found /usr/bin/wget -nv Checking for perl...found /usr/bin/perl 2010-04-05 23:12:29 URL:http://software.virtualmin.com/lib/spinner [579/579] -> "spinner" [1] Loading log4sh logging library... 2010-04-05 23:12:42 URL:http://software.virtualmin.com/lib/log4sh [21395/21395] -> "log4sh" [1] INFO - Started installation log in /root/virtualmin-install.log INFO - Checking for fully qualified hostname... INFO - Hostname OK: fully qualified as host1.hometowncauses.org INFO - Installing serial number and license key into /etc/virtualmin-license INFO - Loading OS selection library... 2010-04-05 23:12:50 URL:http://software.virtualmin.com/lib/oschooser.pl [4461/4461] -> "oschooser.pl" [1] INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded. INFO - Loading OS list... 2010-04-05 23:12:51 URL:http://software.virtualmin.com/lib/os_list.txt [3047/3047] -> "os_list.txt" [1] INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded. INFO - Operating system name: Debian Linux INFO - Operating system version: 5.0 INFO - Configuring package manager for Debian Linux 5.0... INFO - Enabling universe repositories, if not already available... INFO - Disabling cdrom repositories... Get:1 http://ftp.de.debian.org lenny Release.gpg [1033B] Get:2 http://ftp.de.debian.org lenny/volatile Release.gpg [481B] Get:3 http://ftp.de.debian.org lenny/updates Release.gpg [835B] Get:4 http://ftp.de.debian.org lenny Release [73.8kB] Get:5 http://ftp.de.debian.org lenny/volatile Release [40.7kB] Get:6 http://ftp.de.debian.org lenny/updates Release [40.8kB] Get:7 http://ftp.de.debian.org lenny/main Packages [5153kB] Get:8 http://ftp.de.debian.org lenny/contrib Packages [71.9kB] Get:9 http://ftp.de.debian.org lenny/non-free Packages [88.1kB] Get:10 http://ftp.de.debian.org lenny/volatile/main Packages [5480B] Get:11 http://ftp.de.debian.org lenny/volatile/contrib Packages [14B] Get:12 http://ftp.de.debian.org lenny/volatile/non-free Packages [14B] Get:13 http://ftp.de.debian.org lenny/updates/main Packages [297kB] Get:14 http://ftp.de.debian.org lenny/updates/contrib Packages [14B] Get:15 http://ftp.de.debian.org lenny/updates/non-free Packages [14B] Fetched 5773kB in 20s (278kB/s) Reading package lists... Done INFO - Cleaning up apt headers and packages, so we can start fresh... INFO - 2010-04-05 23:13:19 URL:http://software.virtualmin.com/lib/apt.conf.noninteractive [243/243] -> "apt.conf.noninteractive" [1] INFO - Download of http://software.virtualmin.com/lib/apt.conf.noninteractive Succeeded. INFO - Installing Webmin and Virtualmin package signing keys... 2010-04-05 23:13:20 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin [1690/1690] -> "RPM-GPG-KEY-virtualmin" [1] INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-virtualmin Succeeded. 2010-04-05 23:14:01 URL:http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin [1320/1320] -> "RPM-GPG-KEY-webmin" [1] INFO - Download of http://software.virtualmin.com/lib/RPM-GPG-KEY-webmin Succeeded. INFO - OK INFO - OK INFO - Get:1 INFO - Removing Debian standard Webmin package, if they exist (because they're broken)... INFO - Removing Debian apache packages... INFO - 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 ...in progress, please wait... INFO - /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: Succeeded. INFO - Succeeded. INFO - Installing Virtualmin and all related packages now using the command: INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install virtualmin-base Extracting templates from packages: 100% \E: Sub-process /usr/bin/dpkg returned an error code (1) /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install virtualmin-base failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem: ALLOWING TRAFFIC ON TCP PORT: FTP-DATA ALLOWING TRAFFIC ON TCP PORT: POP3 ALLOWING TRAFFIC ON TCP PORT: POP3S ALLOWING TRAFFIC ON TCP PORT: IMAP ALLOWING TRAFFIC ON TCP PORT: IMAPS ALLOWING TRAFFIC ON TCP PORT: HTTP ALLOWING TRAFFIC ON TCP PORT: HTTPS ALLOWING TRAFFIC ON TCP PORT: 10000 ALLOWING TRAFFIC ON TCP PORT: 20000 ALLOWING TRAFFIC ON UDP PORT: DOMAIN RE-CHECKING SUPPORTED WEBMIN MODULES DPKG: ERROR PROCESSING VIRTUALMIN-BASE (--CONFIGURE): SUBPROCESS POST-INSTALLATION SCRIPT RETURNED ERROR EXIT STATUS 255 ERRORS WERE ENCOUNTERED WHILE PROCESSING: VIRTUALMIN-BASE

FATAL - Fatal Error Occurred: Installation failed: 0 FATAL - Cannot continue installation. FATAL - Attempting to remove virtualmin repository configuration, so the installation can be FATAL - re-attempted after any problems have been resolved. FATAL - Removing temporary directory and files. FATAL - If you are unsure of what went wrong, you may wish to review the log FATAL - in /root/virtualmin-install.log

Then, reading the post at http://www.virtualmin.com/node/9768, I tried adding the suggested sources to my sources.list file and then ran:

apt-get update apt-get install virtualmin-base

and got the following error(s):

host1:~# apt-get install virtualmin-base Reading package lists... Done Building dependency tree Reading state information... Done virtualmin-base is already the newest version. 0 upgraded, 0 newly installed, 0 to remove and 49 not upgraded. 1 not fully installed or removed. After this operation, 0B of additional disk space will be used. Setting up virtualmin-base (1.0-25) ... Setting Webmin theme Setting Usermin theme Configuring Postfix Enabling Postfix and disabling Sendmail Configuring Dovecot for POP3 and IMAP Error occurred while configuring or enabling Dovecot: Undefined subroutine &mount::list_mounted called at /usr/share/webmin/mount/mount-lib.pl line 279.

Enabling ProFTPd Enabling SMTP Authentication Configuring Virtualmin Configuring Procmail Configuring Webalizer Updating /etc/shells Enabling MySQL and PostgreSQL Enabling Apache Configuring and enabling BIND Enabling status monitoring Error occurred while enabling status monitoring: An error was detected in the new Cron configuration :



0,5,10,15,20,25,30,35,40,45,50,55 * * * * /etc/webmin/status/monitor.pl

at ../web-lib-funcs.pl line 1323.

Enabling quotas on filesystem for /home Error occurred while enabling quotas on filesystem for /home: Undefined subroutine &mount::list_mounted called at /usr/share/webmin/mount/mount-lib.pl line 279.

Re-checking supported Webmin modules dpkg: error processing virtualmin-base (--configure): subprocess post-installation script returned error exit status 255 Errors were encountered while processing: virtualmin-base E: Sub-process /usr/bin/dpkg returned an error code (1)

It's all very strange, because on the very first attempt, I did get errors, but was able to get into Webmin, albeit without any theme, and was able to get that straightened out, only to choke on the mail settings (I think because of memory issues). I upped my memory allocation with my VPS host, but since have not had even partial success in installing Virtualmin.

Thank you for your help!

Mon, 04/05/2010 - 18:24
carmelo

I initially got errors when I first ran the install. I found updating did the trick for me.

Mon, 04/05/2010 - 18:34 (Reply to #2)
civiclix

Before or after Virtualmin install???

I've tried updating at various points with no success...

Thanks for the reply...

Tue, 04/06/2010 - 07:22 (Reply to #3)
carmelo

I update before.

Mon, 04/05/2010 - 23:55
andreychek

How much RAM is in your system? For example, what is the output of of the command "free -m"?

Also, if you run "apt-get update && apt-get upgrade", then run the installer again, are you saying you receive the same error?

-Eric

Wed, 05/12/2010 - 12:33
jabowery

I'm having the same problem with Debian 5 2.6.18-028stab066.10 #1 SMP Fri Dec 4 15:49:04 MSK 2009 x86_64 GNU/Linux

At first I was getting:

Enabling Apache
Failed to start Apache!

vps:~# free -m
total used free shared buffers cached
Mem: 32026 148 31878 0 0 0
-/+ buffers/cache: 148 31878
Swap: 0 0 0

So I:
vps:~# vzctl set 1 --privvmpages 100000 --save
-bash: vzctl: command not found
vps:~# apt-get install apache2-mpm-prefork
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following packages will be REMOVED:
apache2-mpm-worker
The following NEW packages will be installed:
apache2-mpm-prefork
0 upgraded, 1 newly installed, 1 to remove and 0 not upgraded.
1 not fully installed or removed.
Need to get 254kB of archives.
After this operation, 8192B disk space will be freed.
Do you want to continue [Y/n]? Y

After that apache came up.

Then /usr/share/webmin/mount/mount-lib.pl wasn't getting sub list_mounted so I modified mount-lib.pl:

# Include the correct OS-specific functions file
#if ($gconfig{'os_type'} =~ /^\S+\-linux$/) {
do "linux-lib.pl";
# }
#else {
# do "$gconfig{'os_type'}-lib.pl";
# }

and that solved the missing list_mounted but I'm still running down subsequent problems.

Wed, 05/12/2010 - 13:23 (Reply to #6)
jabowery

INFO - Installing Virtualmin and all related packages now using the command:
INFO - /usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install virtualmin-base
...in progress, please wait...
-E: Sub-process /usr/bin/dpkg returned an error code (1)
/usr/bin/apt-get --config-file apt.conf.noninteractive -y --force-yes install virtualmin-base failed. Error (if any): 0

Displaying the last 15 lines of /root/virtualmin-install.log to help troubleshoot this problem:
Enabling Dovecot POP3 and IMAP servers
Enabling ProFTPd
Enabling SMTP Authentication
Configuring Virtualmin
Configuring Procmail
Configuring Webalizer
Updating /etc/shells
Enabling MySQL and PostgreSQL
Enabling Apache
Configuring and enabling BIND
Out of memory!
dpkg: error processing virtualmin-base (--configure):
subprocess post-installation script returned error exit status 255
Errors were encountered while processing:
virtualmin-base

vps:~# free -m
total used free shared buffers cached
Mem: 32026 147 31878 0 0 0
-/+ buffers/cache: 147 31878
Swap: 0 0 0

Wed, 05/12/2010 - 13:27 (Reply to #7)
jabowery

Attempting to re-run install.sh immediately after the Out of memory! run:

Enabling Apache
Configuring and enabling BIND
dpkg: error processing virtualmin-base (--configure):
subprocess post-installation script killed by signal (Segmentation fault), core dumped
Errors were encountered while processing:
virtualmin-base

Fri, 05/14/2010 - 11:59
andreychek

For anyone else running across this thread -- we're working this out in the Support tracker. Although OpenVZ is showing 32GB of RAM, that's not actually what the provider is making available.

After boosting the amount of guaranteed RAM (to 384MB I believe it was), the installation completed successfully.

-Eric

Topic locked