Problem with Virtualmin install

Hi,

I have just signed up for a webhost VPS service. Their service provides CentOS 5 using XEN VPS. This is the first time I have signed up for this type of service and after 1 year of putting together a database driven website I have no experience putting a website out on the internet. I am doing my first ever install of Virtualmin. The install failed part way through yesterday so I went back and found about 5 other tutorials and used them to create a checklist of everything that should be done to find what I might have missed. Everything was done correctly except for one thing. Initially the people who set up the VPS did not ask me for a “fully qualified host name” and they put it in as “my first initial and my last name with no spaces”. Fourteen years ago I (installed Linux, knew bash, ksh, sed, awk, grep) but had left that business and with some struggle using Google finally found and used the command “hostname vps1.myservername.com” to change the hostname and get the install to keep running. Even though “hostname -f” reported the corrected servername the install script reported the old name and kept running but later failed. So this morning when I was reading the other tutorials on the install process of Virtualmin I hit this “Make sure that the domain name points to your server’s IP address”. This has not been done and may be the reason Virtualmin failed. The question is “does this statement mean I need to go back to Go-daddy where my domain name is registered and point it at the IP address of this machine before I can install Virtualmin”. I was wanting to delay this step until I had everything set up and my website tested by accessing the website via the IP address only.

Thanks for any help,
John

Howdy,

The server’s hostname not pointing to your server’s IP address shouldn’t be a cause of Virtualmin installer failing.

However, it may be necessary for things like email to work properly.

But if you aren’t in a rush to get email working, no problem, you can get your website working first, then setup that DNS record.

However, setting up that DNS record should be fairly simple, you just need a DNS ‘A’ record for the server’s hostname pointing to your IP address. But it’s certainly not necessary at this stage.

-Eric

Thanks for responding so quickly Eric. It will help me narrow the problem down.

The other possible cause was the message that Virtualmin needs “CentOS and RHEL 5-6 on i386 and x86_64” and I did not know the machine’s specs but support just emailed and they said “All our VPS’s containers use RHEL 5.” so I guess that eliminates that one.

This is the message I get at the end.
“Fatal Error Occurred: Something went wrong during installation: 0”

I was curious if this is okay.

INFO - 2015-02-17 10:48:31 - Disabling SELinux during installation…
INFO - 2015-02-17 10:48:31 - setenforce 0 failed: 1

The last message before the error is this:
“Reading repository metadata in from local files”

By the way, it accepted my hostname this time with no question.

Final update: I have decided to look at other open source products since there seems to be no error message leading me to find the problem and that is a bad sign in itself.

I think I found the problem. I am using a very low end VSP service to learn the ropes and test whether my website will fly at all. The RAM is probably too low at 384 dedicated ram with 512 swap. I read that Virtualmin needs at least 700+ of RAM. Kloxo on the other hand can run on 256 so I will give it a try. People like it. All I need to do is check Apache, PHP, MySql, etc - LOL.

Howdy,

Yeah it’s not just Virtualmin that is using RAM, but also all the dependencies that are being installed.

Especially if you’re using a 64 bit distro, which can consume a lot of RAM, you may want to add more RAM to your setup.

However, I’m not actually seeing an error above that would cause a problem – what issue is it that you’re experiencing exactly?

Note that while RHEL5 and CentOS 5 are supported, they are also quite old, about 8 years old now. If possible, we’d recommend using a newer distro if you want to get the most out of modern web apps.

-Eric

Hi Eric, I used this standard version which all the tutorials suggested
wget http://software.virtualmin.com/gpl/scripts/install.sh
I agree that I need more RAM. It is a member based website running on VPS and when I hit enough income to pay for the RAM I will do that before I pay myself anything. I may have to switch Web hosts to get a new distribution unless I jump directly to dedicated servers.

I dumped the whole log below. I just noticed it wraps. Oh well. Thanks for your time. John

-bash-3.1# more virtualmin-install.log
INFO - 2015-02-17 10:48:30 - Started installation log in /root/virtualmin-install.log
DEBUG - 2015-02-17 10:48:30 - Install mode: full
DEBUG - 2015-02-17 10:48:30 - Product: Virtualmin GPL
DEBUG - 2015-02-17 10:48:30 - Virtualmin Meta-Package list: virtualmin-base
DEBUG - 2015-02-17 10:48:31 - install.sh version: 1.1.1
INFO - 2015-02-17 10:48:31 - Checking for fully qualified hostname…
INFO - 2015-02-17 10:48:31 - Hostname OK: fully qualified as vps1.MyServer.com
INFO - 2015-02-17 10:48:31 - Installing serial number and license key into /etc/virtualmin-license
INFO - 2015-02-17 10:48:31 - Loading OS selection library…
INFO - 2015-02-17 10:48:31 - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded.
INFO - 2015-02-17 10:48:31 - Loading OS list…
INFO - 2015-02-17 10:48:31 - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded.
INFO - 2015-02-17 10:48:31 - Operating system name: CentOS Linux
INFO - 2015-02-17 10:48:31 - Operating system version: 5
INFO - 2015-02-17 10:48:31 - Configuring package manager for CentOS Linux 5…
INFO - 2015-02-17 10:48:31 - Disabling SELinux during installation…
INFO - 2015-02-17 10:48:31 - setenforce 0 failed: 1
INFO - 2015-02-17 10:48:32 - Download of http://software.virtualmin.com/gpl/rhel/5/i386/virtualmin-release-latest.noarch.rpm Succeeded.
INFO - 2015-02-17 10:48:32 - Succeeded.
INFO - 2015-02-17 10:48:32 - Installing dependencies using command: /usr/bin/yum -y -d 2 install bind bind-utils caching-nameserver httpd postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptable
s openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-my
sql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-S
SLeay mlocate
Loading “installonlyn” plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
FATAL - 2015-02-17 10:48:34 - Fatal Error Occurred: Something went wrong during installation: 0
FATAL - 2015-02-17 10:48:34 - Cannot continue installation.
FATAL - 2015-02-17 10:48:34 - Attempting to remove virtualmin repository configuration, so the installation can be
FATAL - 2015-02-17 10:48:34 - re-attempted after any problems have been resolved.
FATAL - 2015-02-17 10:48:34 - Removing temporary directory and files.
FATAL - 2015-02-17 10:48:34 - If you are unsure of what went wrong, you may wish to review the log
FATAL - 2015-02-17 10:48:35 - in /root/virtualmin-install.log
-bash-3.1#

Howdy,

Hmm, what output do you receive if you try to install those Virtualmin dependencies manually? You can do that with the following command:

yum install bind bind-utils caching-nameserver postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-my sql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate

Hi Eric, I think you might have been typing when I was typing my last message. After reading the Kloxo errors do you think I should try the manual Virtualmin dependencies install? Does it put these in a directory I can remove later if I wish?
Thanks, John

I might be on to something here. I tried to install Kloxo and it stopped while trying the same thing but Kloxo gave some useful information. Here is the dump where the error occurred.

Setting up Install Process.
Setting up repositories.
Reading repository metadata in from local files.
http://download.lxcenter.org/download/update/centos-5/i386/repodata/7f4885106870db8bee1470762e1f2aa726326074-primary.xml.gz: [Errno -3] Error performing checksum.
Trying other mirror.
Error: failure: repodata/7f4885106870db8bee1470762e1f2aa726326074-primary.xml.gz from lxcenter-updates: [Errno 256] No more mirrors to try.
YUM Gave Error… Trying Again…
Try again? [y/N]: n

  • EXIT: Fix the problem and install Kloxo again.

I tried a “yum clean all” as suggested at the post below then ran the Kloxo install but it gives the same error.
http://www.electrictoolbox.com/yum-error-metadata-file-does-not-match-checksum/

I will try your Suggestion Eric.

I tried your suggestion Erric and got the same checksum error as Kloxo is giving. I sent a ticket to the support team at the VSP site I am using.

-bash-3.1# yum install bind bind-utils caching-nameserver postfix spamassassin procmail perl-DBD-Pg perl-DBD-MySQL quota iptables openssl python mailman subversion mysql mysql-server mysql-devel mariadb mariadb-server postgresql postgresql-server rh-postgresql rh-postgresql-server logrotate webalizer php php-xml php-gd php-imap php-my sql php-odbc php-pear php-pgsql php-snmp php-xmlrpc php-mbstring mod_perl mod_python cyrus-sasl dovecot spamassassin mod_dav_svn cyrus-sasl-gssapi mod_ssl ruby ruby-devel rubygems perl-XML-Simple perl-Crypt-SSLeay mlocate
Loading “installonlyn” plugin
Setting up Install Process
Setting up repositories
Reading repository metadata in from local files
7f4885106870db8bee1470762 100% |=========================| 87 kB 00:00
http://download.lxcenter.org/download/update/centos-5/i386/repodata/7f4885106870db8bee1470762e1f2aa726326074-primary.xml.gz: [Errno -3] Error performing checksum
Trying other mirror.
Error: failure: repodata/7f4885106870db8bee1470762e1f2aa726326074-primary.xml.gz from lxcenter-updates: [Errno 256] No more mirrors to try.

I tried google and could not find error -3. However there was this link on a similar error -1.
https://plone.lucidsolutions.co.nz/linux/rpm/yum-metadata-file-does-not-match-checksum

Howdy,

Well, although you’re attempting to install Virtualmin, it looks like the error you’re receiving is regarding the Kloxo repository.

My suggestion would be to either disable the Kloxo repository, or perform a fresh install of your distro – and then to attempt the Virtualmin installation again.

-Eric

Hi Eric,

Regarding “disable the Kloxo repository” if you are referring to option #2 at this link
https://plone.lucidsolutions.co.nz/linux/rpm/yum-metadata-file-does-not-match-checksum
I could try it for the Kloxo install since it appears to be only one file. However the Kloxo script will still stop as would the Virtualmin. However I am not sure what it does after this stage so maybe you are correct. I think Virtualmin will need to wait since it requires more memory. My VPS is cheap ($11.24 a month USD including tax). It is for learning and testing my website’s potential popularity which takes time. I have calculated the number of members I want at the first upgrade stage (not that many).

With VPS (my VPS at least) there are no directories/folders created below the VPS root directory yet (nothing installed). Only at the unix level are there directories (which I can not see of course). So the hosting company would have to set up a new machine with the VPS (virtual private server) software installed. I have sent all the info to them for both tests (including the results of your test).

Last but not least I could do without a control panel and do all bash work as I did 14 years ago. I will see what the hosting company comes up with (hopefully tomorrow).

Thanks again for your help. I will let you know what happens in the end.
John.

Hi Eric, I just thought I would follow up. It seems the host company support people disabled the Kloxo repository. They say it is fixed.

FYIO:
I did a review of the various open source control panels (see below) and with my bare bones 384 meg learner package it appears most of them will not actually run. Kloxo may be the only exception. Before I discovered they fixed this problem I had decided to install (Apache, MySql and PHP) manually and just work with Bash (I knew bash well 14 years ago). Now I am asking myself if I should install Kloxo and if it forces an in sync install of (Apache, MySql and PHP). If it does that it would be good. I researched the total RAM needed for (Apache, MySql and PHP) and it seems about 250 meg. So lots to learn and do yet. Maybe when I upgrade I will move to Virtualmin if it will save me time.

Thanks again ,
John

Vertualmin needs at least 700meg.
ispconfig needs CentOS 5.3 or greater
Ajenti looks like it needs CentOS 6+.
Zpanel needs (512 of ram and CentOS 6+) http://cpanelwhm.org/ssh/install-zpanel-on-centos-server/172
OpenPanel does not support CentOS
VestaCP needs 512 meg of ram and 20 gig of disk (won’t run)
Direct admin (A minimum 1 Gigabyte of memory is required) not free either.
Kloxo can run on 256 (it might work).