Install fails on Centos 6.1

From the install log:

Continue? (y/n) y Checking for HTTP client...found /usr/bin/curl -s -O Checking for perl...found /usr/bin/perl Loading log4sh logging library... INFO - Started installation log in /root/virtualmin-install.log INFO - Checking for fully qualified hostname... INFO - Hostname OK: fully qualified as host.smallbusinessconsultingexperts.com INFO - Installing serial number and license key into /etc/virtualmin-license INFO - Loading OS selection library... INFO - Download of http://software.virtualmin.com/lib/oschooser.pl Succeeded. INFO - Loading OS list... INFO - Download of http://software.virtualmin.com/lib/os_list.txt Succeeded. INFO - Operating system name: CentOS Linux INFO - Operating system version: 6 INFO - Configuring package manager for CentOS Linux 6... INFO - Disabling SELinux during installation... /usr/sbin/setenforce: SELinux is disabled INFO - setenforce 0 failed: 1 error: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6: key 1 import failed. INFO - Download of http://:@software.virtualmin.com/rhel/6/x86_64/virtualmin-release-latest... Succeeded. error: open of failed: No such file or directory error: open of failed: No such file or directory error: open of 401 failed: No such file or directory error: open of Authorization failed: No such file or directory error: open of Required failed: No such file or directory error: open of failed: No such file or directory error: open of

Authorization failed: No such file or directory error: open of Required

failed: No such file or directory error: open of

This failed: No such file or directory error: open of server failed: No such file or directory error: open of could failed: No such file or directory error: open of not failed: No such file or directory error: open of verify failed: No such file or directory error: open of that failed: No such file or directory error: open of you failed: No such file or directory error: open of are failed: No such file or directory error: open of authorized failed: No such file or directory error: open of to failed: No such file or directory error: open of access failed: No such file or directory error: open of the failed: No such file or directory error: open of document failed: No such file or directory error: open of requested. failed: No such file or directory error: open of Either failed: No such file or directory error: open of you failed: No such file or directory error: open of supplied failed: No such file or directory error: open of the failed: No such file or directory error: open of wrong failed: No such file or directory error: open of credentials failed: No such file or directory error: open of (e.g., failed: No such file or directory error: open of bad failed: No such file or directory error: open of password), failed: No such file or directory error: open of or failed: No such file or directory error: open of your failed: No such file or directory error: open of browser failed: No such file or directory error: open of doesnt understand how to supply the credentials required.

Apache/2.2.15 (Scientific Linux) Server at software.virtualmin.com Port 80

failed: No such file or directory

FATAL - Fatal Error Occurred: Installation of virtualmin-release failed: 38 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. error: package virtualmin-release is not installed 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

Status: 
Closed (fixed)

Comments

It looks like your install script is missing the serial number and key.

Make sure you download it with the commands :

wget -O install.sh "http://software.virtualmin.com/cgi-bin/install.cgi?serial=XXXX&key=YYYY&pass="
./install.sh

replace XXXX with your serial number, and YYYY with your licence key.

So did that fix it?

It's in process, but I do see this:

INFO - setenforce 0 failed: 1 error: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6: key 1 import failed. error: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Debug-6: key 1 import failed. error: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Security-6: key 1 import failed. error: /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-Testing-6: key 1 import failed.

That's harmless .. you can get those warnings if the key has been already imported.

Install completed (thought not sure what those key errors listed in my previous post mean. However, the post install process when you first log into webmin does not complete as it thinks postgres is not running (and I ask it to use postgres). The reason for that is the pid file seems to be on Centos 6.1:

/var/run/postmaster.5432.pid

5432 I presume is the port.

Indeed, the startup script for postgres shows:

pidfile="/var/run/postmaster.${PGPORT}.pid"

So, I changed that path in the postgres webmin module, and, it still thinks postgres is not running. How does it detect if it is or not? Certainly, postmaster is running on the pid stored in that file

Ok, this is a Webmin bug .. it expects the PID file to be in a fixed location.

Normally it detects if PostgreSQL is running by trying to connect. Can login using using the psql command?

The problem with not detecting if postgres was running was mine. Apparently, webmin does not use PGHOST environment variable.

So, the only bug is the PID.

Cool.. this will be fixed in the next webmin release.

Automatically closed -- issue fixed for 2 weeks with no activity.