Error during XI install on RHEL 6.4

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error during XI install on RHEL 6.4

Post by lmiltchev »

Try running:

Code: Select all

rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6
Did this fix your issue?
Be sure to check out our Knowledgebase for helpful articles and solutions!
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Error during XI install on RHEL 6.4

Post by JakeHatMacys »

Got me past that, error'd further:

Code: Select all

Installed:
  Ajaxterm.noarch 0:0.10-8.el5

Complete!
`/usr/share/ajaxterm/' -> `/usr/local/nagios/share/ajaxterm'
`/usr/share/ajaxterm/ajaxterm.pyc' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.pyc'
`/usr/share/ajaxterm/ajaxterm.pyo' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.pyo'
`/usr/share/ajaxterm/ajaxterm.py' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.py'
`/usr/share/ajaxterm/ajaxterm.js' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.js'
`/usr/share/ajaxterm/ajaxterm.css' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.css'
`/usr/share/ajaxterm/qweb.pyo' -> `/usr/local/nagios/share/ajaxterm/qweb.pyo'
`/usr/share/ajaxterm/sarissa_dhtml.js' -> `/usr/local/nagios/share/ajaxterm/sarissa_dhtml.js'
`/usr/share/ajaxterm/ajaxterm.html' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.html'
`/usr/share/ajaxterm/qweb.pyc' -> `/usr/local/nagios/share/ajaxterm/qweb.pyc'
`/usr/share/ajaxterm/qweb.py' -> `/usr/local/nagios/share/ajaxterm/qweb.py'
`/usr/share/ajaxterm/sarissa.js' -> `/usr/local/nagios/share/ajaxterm/sarissa.js'
CHECK1: 0
CHECK2: 0
Stopping httpd:                                            [  OK  ]
Starting httpd:                                            [  OK  ]
Stopping ajaxterm:                                         [FAILED]
Starting ajaxterm: AjaxTerm at http://localhost:8022/ pid: 25784
                                                           [  OK  ]
Ajaxterm installed
Subcomponent 'ajaxterm' installed OK
Installing wkhtmltopdf and wkhtmltoimage...
--2015-01-19 14:07:38--  http://assets.nagios.com/downloads/nagiosxi/components/wkhtmltox-0.12.1-centos5-amd64.tar.gz
Resolving assets.nagios.com... 72.14.181.71
Connecting to assets.nagios.com|72.14.181.71|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3701 (3.6K) [text/html]
Saving to: âwkhtmltox-0.12.1-centos5-amd64.tar.gzâ



2015-01-19 14:07:38 (378 MB/s) - âwkhtmltox-0.12.1-centos5-amd64.tar.gzâ


gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR: Subcomponent 'wkhtmlx' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './A-subcomponents'
[root@esu2v238 nagiosxi]#
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error during XI install on RHEL 6.4

Post by lmiltchev »

Hm-m, I am not sure why installing "wkhtmlx" failed. Try running the following commands:

Code: Select all

cd /tmp/nagiosxi/subcomponents/wkhtmlx
./install &> /tmp/debug.txt
See if "wkhtmlx" will install OK. If not, post the "debug.txt" file that was generated from running the above command.

Also, show us the output of the following command:

Code: Select all

file /tmp/nagiosxi/subcomponents/wkhtmlx/wkhtmltox-0.12.1-centos5-amd64.tar.gz
Be sure to check out our Knowledgebase for helpful articles and solutions!
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Error during XI install on RHEL 6.4

Post by JakeHatMacys »

lmiltchev wrote:Hm-m, I am not sure why installing "wkhtmlx" failed. Try running the following commands:

Code: Select all

cd /tmp/nagiosxi/subcomponents/wkhtmlx
./install &> /tmp/debug.txt
See if "wkhtmlx" will install OK. If not, post the "debug.txt" file that was generated from running the above command.

Also, show us the output of the following command:

Code: Select all

file /tmp/nagiosxi/subcomponents/wkhtmlx/wkhtmltox-0.12.1-centos5-amd64.tar.gz
Failed again but the install on wkhtmlx seemed to go fine you had me do:

Code: Select all

Subcomponent 'webinject' installed OK
Installing Ajaxterm...
`/usr/share/ajaxterm/ajaxterm.pyc' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.pyc'
`/usr/share/ajaxterm/ajaxterm.pyo' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.pyo'
`/usr/share/ajaxterm/ajaxterm.py' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.py'
`/usr/share/ajaxterm/ajaxterm.js' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.js'
`/usr/share/ajaxterm/ajaxterm.css' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.css'
`/usr/share/ajaxterm/qweb.pyo' -> `/usr/local/nagios/share/ajaxterm/qweb.pyo'
`/usr/share/ajaxterm/sarissa_dhtml.js' -> `/usr/local/nagios/share/ajaxterm/sarissa_dhtml.js'
`/usr/share/ajaxterm/ajaxterm.html' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.html'
`/usr/share/ajaxterm/qweb.pyc' -> `/usr/local/nagios/share/ajaxterm/qweb.pyc'
`/usr/share/ajaxterm/qweb.py' -> `/usr/local/nagios/share/ajaxterm/qweb.py'
`/usr/share/ajaxterm/sarissa.js' -> `/usr/local/nagios/share/ajaxterm/sarissa.js'
CHECK1: 2
CHECK2: 0
It appears as though Ajaxterm is already configured, so we'll skip that step.
Subcomponent 'ajaxterm' installed OK
Installing wkhtmltopdf and wkhtmltoimage...
--2015-01-19 15:26:38--  http://assets.nagios.com/downloads/nagiosxi/components/wkhtmltox-0.12.1-centos5-amd64.tar.gz
Resolving assets.nagios.com... 72.14.181.71
Connecting to assets.nagios.com|72.14.181.71|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3701 (3.6K) [text/html]
Saving to: âwkhtmltox-0.12.1-centos5-amd64.tar.gzâ



2015-01-19 15:26:38 (425 MB/s) - âwkhtmltox-0.12.1-centos5-amd64.tar.gzâ


gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
ERROR: Subcomponent 'wkhtmlx' installation failed - exiting.
Subcomponents installation failed - exiting
RESULT=1

===================
INSTALLATION ERROR!
===================
Installation step failed - exiting.
Check for error messages in the install log (install.log).

If you require assistance in resolving the issue, please include install.log
in your communications with Nagios XI technical support.

The script that failed was: './A-subcomponents'
[root@esu2v238 nagiosxi]#
I'll get that file you wanted now.
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Error during XI install on RHEL 6.4

Post by JakeHatMacys »

Here's the debug.txt

Code: Select all

Installing wkhtmltopdf and wkhtmltoimage...
--2015-01-19 15:24:24--  http://assets.nagios.com/downloads/nagiosxi/components/wkhtmltox-0.12.1-centos5-amd64.tar.gz
Resolving assets.nagios.com... 72.14.181.71
Connecting to assets.nagios.com|72.14.181.71|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3701 (3.6K) [text/html]
Saving to: “wkhtmltox-0.12.1-centos5-amd64.tar.gz”

     0K ...                                                   100%  378M=0s

2015-01-19 15:24:24 (378 MB/s) - “wkhtmltox-0.12.1-centos5-amd64.tar.gz” saved [3701/3701]


gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error is not recoverable: exiting now
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Error during XI install on RHEL 6.4

Post by tgriep »

Problem might be with your version of tar, can you run these commands?

Code: Select all

tar --version
gunzip --version
Be sure to check out our Knowledgebase for helpful articles and solutions!
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Error during XI install on RHEL 6.4

Post by JakeHatMacys »

tgriep wrote:Problem might be with your version of tar, can you run these commands?

Code: Select all

tar --version
gunzip --version
[root@esu2v238 ~]# tar --version
tar (GNU tar) 1.23
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.

Written by John Gilmore and Jay Fenlason.
[root@esu2v238 ~]# gunzip --version
gzip 1.3.12
Copyright (C) 2007 Free Software Foundation, Inc.
Copyright (C) 1993 Jean-loup Gailly.
This is free software. You may redistribute copies of it under the terms of
the GNU General Public License <http://www.gnu.org/licenses/gpl.html>.
There is NO WARRANTY, to the extent permitted by law.

Written by Jean-loup Gailly.
[root@esu2v238 ~]#
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Error during XI install on RHEL 6.4

Post by JakeHatMacys »

Just an FYI I checked the versions on the good install we have and they are the same.

Also tried downloading it manually and installing it but getting the same error (in case there was an issue with the DL). I did notice it's a centos5 file or at least in name. That normal???
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Error during XI install on RHEL 6.4

Post by tgriep »

Change to this folder
/tmp/nagiosxi/subcomponents/wkhtmlx

Edit the file called install

Change this line from, (line 30)
tar -xf "$pkgname.tar.gz"

to

tar -xfz "$pkgname.tar.gz"

Go back to the /tmp/nagiosxi folder and rerun the install
Be sure to check out our Knowledgebase for helpful articles and solutions!
JakeHatMacys
Posts: 281
Joined: Thu Sep 25, 2014 3:21 pm

Re: Error during XI install on RHEL 6.4

Post by JakeHatMacys »

Still basically getting the same error:

Code: Select all

Installing Webinject...
Webinject installed OK
Subcomponent 'webinject' installed OK
Installing Ajaxterm...
`/usr/share/ajaxterm/ajaxterm.pyc' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.pyc'
`/usr/share/ajaxterm/ajaxterm.pyo' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.pyo'
`/usr/share/ajaxterm/ajaxterm.py' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.py'
`/usr/share/ajaxterm/ajaxterm.js' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.js'
`/usr/share/ajaxterm/ajaxterm.css' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.css'
`/usr/share/ajaxterm/qweb.pyo' -> `/usr/local/nagios/share/ajaxterm/qweb.pyo'
`/usr/share/ajaxterm/sarissa_dhtml.js' -> `/usr/local/nagios/share/ajaxterm/sarissa_dhtml.js'
`/usr/share/ajaxterm/ajaxterm.html' -> `/usr/local/nagios/share/ajaxterm/ajaxterm.html'
`/usr/share/ajaxterm/qweb.pyc' -> `/usr/local/nagios/share/ajaxterm/qweb.pyc'
`/usr/share/ajaxterm/qweb.py' -> `/usr/local/nagios/share/ajaxterm/qweb.py'
`/usr/share/ajaxterm/sarissa.js' -> `/usr/local/nagios/share/ajaxterm/sarissa.js'
CHECK1: 2
CHECK2: 0
It appears as though Ajaxterm is already configured, so we'll skip that step.
Subcomponent 'ajaxterm' installed OK
Installing wkhtmltopdf and wkhtmltoimage...
--2015-01-20 13:15:57--  http://assets.nagios.com/downloads/nagiosxi/components/wkhtmltox-0.12.1-centos5-amd64.tar.gz
Resolving assets.nagios.com... 72.14.181.71
Connecting to assets.nagios.com|72.14.181.71|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 3701 (3.6K) [text/html]
Saving to: “wkhtmltox-0.12.1-centos5-amd64.tar.gz”

     0K ...                                                   100%  311M=0s

2015-01-20 13:15:57 (311 MB/s) - “wkhtmltox-0.12.1-centos5-amd64.tar.gz” saved [3701/3701]

tar: z: Cannot open: No such file or directory
tar: Error is not recoverable: exiting now
ERROR: Subcomponent 'wkhtmlx' installation failed - exiting.
Subcomponents installation failed - exiting
This is a redhat system though, should it be even installing this component???
Locked