install error 1??

11 posts / 0 new
Last post
#1 Thu, 02/03/2011 - 13:16
midol

install error 1??

attempting install on a fresh CentOS instance and getting this:

INFO - 2011-02-03 20:48:49 - Operating system version: 5
INFO - 2011-02-03 20:48:49 - Configuring package manager for CentOS Linux 5...
INFO - 2011-02-03 20:48:53 - Download of http://software.virtualmin.com/gpl/rhel/5/i386/virtualmin-release-latest.noarch.rpm Succeeded.
FATAL - 2011-02-03 20:48:53 - Fatal Error Occurred: Installation of virtualmin-release failed: 1
FATAL - 2011-02-03 20:48:53 - Cannot continue installation.
FATAL - 2011-02-03 20:48:53 - Attempting to remove virtualmin repository configuration, so the installation can be
FATAL - 2011-02-03 20:48:53 - re-attempted after any problems have been resolved.
FATAL - 2011-02-03 20:48:55 - Removing temporary directory and files.
FATAL - 2011-02-03 20:48:55 - If you are unsure of what went wrong, you may wish to review the log
FATAL - 2011-02-03 20:48:55 - in /root/virtualmin-install.log

But the log file just repeats what's here. What is error 1 from the Fatal error line?

Dave

Thu, 02/03/2011 - 13:43
andreychek

Howdy,

Yeah, it's kind of unclear from the output there what may have gone wrong...

I'm curious, if you just run the install.sh script a second time -- do you receive the same results?

-Eric

Thu, 02/03/2011 - 14:24 (Reply to #2)
midol

yes, the same output, what I posted was from the second run. This is a bare new CentOS install image, very little in the way of installed infrastructure. I've been assuming VM would pull in any needed dependencies, is that right?

Dave

Thu, 02/03/2011 - 14:33
andreychek

Yup, it certainly should!

In fact, it typically does, the error you're seeing is somewhat unusual :-)

What I might recommend is manually attempting the installation of the package that didn't work... that is, download this file onto your server:

http://software.virtualmin.com/gpl/rhel/5/i386/virtualmin-release-latest...

Then install it with:

rpm -ivh virtualmin-release-latest.noarch.rpm

When you run the above command, what output do you get?

-Eric

Thu, 02/03/2011 - 15:03
midol

here...

[root@ecobc /]# rpm -ivh virtualmin-release-latest.noarch.rpm
Preparing...                ########################################### [100%]
   1:virtualmin-release     ########################################### [100%]
Running updatedb so locate works...this will take a little while.
/var/tmp/rpm-tmp.11734: line 12: updatedb: command not found
Attempting to import various system RPM-GPG-KEY files...Errors may occur,
if you've already imported them.  It is safe to ignore these errors.
/var/tmp/rpm-tmp.11734: line 39: locate: command not found
[root@ecobc /]#

so it looks like updatedb is not installed, which my cli search confirms. Do you know what package contains it?

Thu, 02/03/2011 - 15:39
andreychek

Howdy,

The updatedb database would be generated by the "locate" command. I don't have a CentOS system in front of me, but I'd probably start by trying to run "yum install locate" to see if that works.

Also, I'll pass this error along to Joe and Jamie to make sure that those apps are installed as part of the install script.

-Eric

Thu, 02/03/2011 - 16:40 (Reply to #6)
midol
[root@ecobc ~]# tail virtualmin-install.log
INFO - 2011-02-04 00:20:13 - Operating system version: 5
INFO - 2011-02-04 00:20:13 - Configuring package manager for CentOS Linux 5...
INFO - 2011-02-04 00:20:37 - Download of http://software.virtualmin.com/gpl/rhel/5/i386/virtualmin-release-latest.noarch.rpm Succeeded.
FATAL - 2011-02-04 00:20:37 - Fatal Error Occurred: Installation of virtualmin-release failed: 1
FATAL - 2011-02-04 00:20:37 - Cannot continue installation.
FATAL - 2011-02-04 00:20:37 - Attempting to remove virtualmin repository configuration, so the installation can be
FATAL - 2011-02-04 00:20:37 - re-attempted after any problems have been resolved.
FATAL - 2011-02-04 00:20:40 - Removing temporary directory and files.
FATAL - 2011-02-04 00:20:40 - If you are unsure of what went wrong, you may wish to review the log
FATAL - 2011-02-04 00:20:40 - in /root/virtualmin-install.log
[root@ecobc ~]#

so not there yet

Dave

Thu, 02/03/2011 - 19:58
andreychek

Howdy,

Did the virtualmin-release package install correctly when you attempted manually installing that from the command line?

If it's installed -- you may want to try uninstalling it (with "rpm -e") prior to running the install.sh. It's possible the installer's getting confused since that package isn't typically installed when the installer is run.

-Eric

Fri, 02/04/2011 - 13:07
midol
[root@ecobc ~]# ls
install.sh  virtualmin-install.log  virtualmin-release-latest.noarch.rpm
[root@ecobc ~]# rpm -e virtualmin-release-latest.noarch.rpm
error: package virtualmin-release-latest.noarch.rpm is not installed
[root@ecobc ~]# rpm -ivh virtualmin-release-latest.noarch.rpm
Preparing...                ########################################### [100%]
package virtualmin-release-1.0-1.rhel.gpl.noarch is already installed
[root@ecobc ~]# rpm -e virtualmin-release-1.0-1.rhel.gpl.noarch
[root@ecobc ~]# rpm -ivh virtualmin-release-latest.noarch.rpm
Preparing...                ########################################### [100%]
   1:virtualmin-release     ########################################### [100%]
Running updatedb so locate works...this will take a little while.
Attempting to import various system RPM-GPG-KEY files...Errors may occur,
if you've already imported them.  It is safe to ignore these errors.
[root@ecobc ~]#

so it looks like time for a test, so...

after ./install.sh...

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: 5
INFO - Configuring package manager for CentOS Linux 5...
INFO - Download of http://software.virtualmin.com/gpl/rhel/5/i386/virtualmin-release-latest.noarch.rpm Succeeded.
package virtualmin-release-1.0-1.rhel.gpl.noarch is already installed

FATAL - Fatal Error Occurred: Installation of virtualmin-release failed: 1
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

and the log files just repeat the installer messages. no closer than I was.

Dave

Fri, 02/04/2011 - 16:45
midol

Hi Eric.

The server I'm using to install VM is a virtual CentOS machine. I asked the provider for a fresh CentOS install. What I didn't check in time was the version of CentOS. It turns out that it was version 5.3, well out of date. No doubt some of the difficulties I saw were due to this. As soon as I became aware of the version I ran all outstanding updates to bring me up to CentOS 5.5 Final and the installation succeeded nicely.

It would have been helpful if the diagnostics produced during the failed attempts listed above were more specific or if there had been some checking on requirements that appear to not have been met. But water under the bridge now, the install completed ok and VM GPL is up.

Dave

Fri, 02/04/2011 - 17:17
andreychek

Yeah, there's a few issues that are awry with the installer... one is that it doesn't properly check for "locate" before using it, another is that no useful output is displayed in the case of an error.

Joe is aware of those issues now, and will be correcting it in the next install script version.

Although it should, in theory, work on CentOS 5.3, I'm glad you managed to get it up and running on CentOS 5.5!

Thanks for letting us know what you did to get it working. Have a good weekend,

-Eric

Topic locked