INSTALLATION ERROR

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
1faizankhan
Posts: 22
Joined: Tue Jun 23, 2015 1:57 pm

INSTALLATION ERROR

Post by 1faizankhan »

While installing nagios getting error.

[root@RHELPOC63 nagiosxi]# cat /etc/redhat-release; uname -r
Red Hat Enterprise Linux Server release 6.6 (Santiago)
2.6.32-504.12.2.el6.x86_64


Error:

This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Local Package Process
Examining /nas/home/fn661091/software/nagios/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
Marking /nas/home/fn661091/software/nagios/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm to be installed
Error: Cannot retrieve repository metadata (repomd.xml) for repository: epel. Please verify its path and try again
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: './1-prereqs'
Faizan Khan
Unix Administrator | Unix Team
HCL America | Gulfstream Aerospace Corporation
www. gulfstream.com
http://www.hcl.com
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: INSTALLATION ERROR

Post by ssax »

Do you have a proxy that is blocking it?
1faizankhan
Posts: 22
Joined: Tue Jun 23, 2015 1:57 pm

Re: INSTALLATION ERROR

Post by 1faizankhan »

Yes proxy is in place.
The question is, Is it trying to download from RHEL satellite or Nagios and does application have the ability to authenticate ?
Faizan Khan
Unix Administrator | Unix Team
HCL America | Gulfstream Aerospace Corporation
www. gulfstream.com
http://www.hcl.com
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: INSTALLATION ERROR

Post by tmcdonald »

That error means your proxy is interfering with the yum install process.

When you ask about having the ability to authenticate, what do you mean?
Former Nagios employee
1faizankhan
Posts: 22
Joined: Tue Jun 23, 2015 1:57 pm

Re: INSTALLATION ERROR

Post by 1faizankhan »

How can I resolve this issue?
Faizan Khan
Unix Administrator | Unix Team
HCL America | Gulfstream Aerospace Corporation
www. gulfstream.com
http://www.hcl.com
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: INSTALLATION ERROR

Post by ssax »

Have you followed these steps in configuring yum and the other settings for using a proxy?

https://support.nagios.com/wiki/index.p ... th_Proxies
1faizankhan
Posts: 22
Joined: Tue Jun 23, 2015 1:57 pm

Re: INSTALLATION ERROR

Post by 1faizankhan »

Getting this error now:

[root@RHELPOC63 ~]# cd /nas/home/fn661091/software/nagios/nagiosxi/
[root@RHELPOC63 nagiosxi]# ./fullinstall
========================
Nagios XI Full Installer
========================

This script will do a complete install of Nagios XI by executing all necessary sub-scripts.

IMPORTANT: This script should only be used on a 'clean' install of CentOS or RedHat. Do NOT use this on a system that has been tasked with other purposes or has an existing install of Nagios Core. To create such a clean
install you should have selected ONLY the 'Base' package in the OS installer.
Do you want to continue? [Y/n]
Proceeding with installation...
Checking MySQL credentials...
MySQL not yet installed - that's okay.
Running './0-repos'...
Repos already configured - exiting.
RESULT=0
Running './1-prereqs'...
Installing prerequisites...
Loaded plugins: product-id, refresh-packagekit, rhnplugin, security,
: subscription-manager
This system is receiving updates from RHN Classic or RHN Satellite.
Setting up Local Package Process
Examining /nas/home/fn661091/software/nagios/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm: php-pear-HTML-Template-IT-1.3.0-2.el5.noarch
Marking /nas/home/fn661091/software/nagios/nagiosxi/packages/php-pear-HTML-Template-IT-1.3.0-2.el5.noarch.rpm to be installed
http://apt.sw.be/redhat/el6/en/x86_64/r ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://archive.cs.uu.nl/mirror/dag.wiee ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://fr2.rpmfind.net/linux/dag/redhat ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://ftp.cc.uoc.gr/mirrors/repoforge/ ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://ftp.colocall.net/pub/repoforge/r ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://ftp.fi.muni.cz/pub/linux/repofor ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://ftp.heanet.ie/mirrors/ftp.freshr ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://ftp.kddilabs.jp/Linux/RPMS/repof ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://ftp.lug.ro/freshrpms/dag/redhat/ ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
Trying other mirror.
http://ftp.neowiz.com/repoforge/redhat/ ... repomd.xml: [Errno 14] PYCURL ERROR 22 - "The requested URL returned error: 401 authenticationrequired"
........
........
........
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: './1-prereqs'
[root@RHELPOC63 nagiosxi]#
Faizan Khan
Unix Administrator | Unix Team
HCL America | Gulfstream Aerospace Corporation
www. gulfstream.com
http://www.hcl.com
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: INSTALLATION ERROR

Post by abrist »

Hmmm, I don't see those errors when I curl the xml urls. :

Code: Select all

curl http://apt.sw.be/redhat/el6/en/x86_64/rpmforge/repodata/repomd.xml
Does your proxy require authentication?
Did you configure yum to use your proxy:

Code: Select all

grep proxy /etc/yum.conf
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: INSTALLATION ERROR

Post by lmiltchev »

Run the following commands and show us the output in code wraps:

Code: Select all

cat /etc/yum.conf
cat /etc/wgetrc
Hide sensitive info (IPs, usernames, passwords, etc.).

Also, post the /tmp/nagiosxi/install.log.
Be sure to check out our Knowledgebase for helpful articles and solutions!
1faizankhan
Posts: 22
Joined: Tue Jun 23, 2015 1:57 pm

Re: INSTALLATION ERROR

Post by 1faizankhan »

[root@RHELPOC63 nagiosxi]# grep -i proxy /etc/yum.conf
[root@RHELPOC63 nagiosxi]# cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=3

# This is the default, if you make this bigger yum won't see if the metadata
# is newer on the remote and so you'll "gain" the bandwidth of not having to
# download the new metadata and "pay" for it by yum not having correct
# information.
# It is esp. important, to have correct metadata, for distributions like
# Fedora which don't keep old packages around. If you don't like this checking
# interupting your command line usage, it's much better to have something
# manually check the metadata once an hour (yum-updatesd will do this).
# metadata_expire=90m

# PUT YOUR REPOS HERE OR IN separate files named file.repo
# in /etc/yum.repos.d
[root@RHELPOC63 nagiosxi]# cat /etc/wgetrc###
### Sample Wget initialization file .wgetrc
###

## You can use this file to change the default behaviour of wget or to
## avoid having to type many many command-line options. This file does
## not contain a comprehensive list of commands -- look at the manual
## to find out what you can put into this file.
##
## Wget initialization file can reside in /etc/wgetrc
## (global, for all users) or $HOME/.wgetrc (for a single user).
##
## To use the settings in this file, you will have to uncomment them,
## as well as change them, in most cases, as the values on the
## commented-out lines are the default values (e.g. "off").


##
## Global settings (useful for setting up in /etc/wgetrc).
## Think well before you change them, since they may reduce wget's
## functionality, and make it behave contrary to the documentation:
##

# You can set retrieve quota for beginners by specifying a value
# optionally followed by 'K' (kilobytes) or 'M' (megabytes). The
# default quota is unlimited.
#quota = inf

# You can lower (or raise) the default number of retries when
# downloading a file (default is 20).
#tries = 20

# Lowering the maximum depth of the recursive retrieval is handy to
# prevent newbies from going too "deep" when they unwittingly start
# the recursive retrieval. The default is 5.
#reclevel = 5

# By default Wget uses "passive FTP" transfer where the client
# initiates the data connection to the server rather than the other
# way around. That is required on systems behind NAT where the client
# computer cannot be easily reached from the Internet. However, some
# firewalls software explicitly supports active FTP and in fact has
# problems supporting passive transfer. If you are in such
# environment, use "passive_ftp = off" to revert to active FTP.
#passive_ftp = off

# The "wait" command below makes Wget wait between every connection.
# If, instead, you want Wget to wait only between retries of failed
# downloads, set waitretry to maximum number of seconds to wait (Wget
# will use "linear backoff", waiting 1 second after the first failure
# on a file, 2 seconds after the second failure, etc. up to this max).
#waitretry = 10


##
## Local settings (for a user to set in his $HOME/.wgetrc). It is
## *highly* undesirable to put these settings in the global file, since
## they are potentially dangerous to "normal" users.
##
## Even when setting up your own ~/.wgetrc, you should know what you
## are doing before doing so.
##

# Set this to on to use timestamping by default:
#timestamping = off

# It is a good idea to make Wget send your email address in a `From:'
# header with your request (so that server administrators can contact
# you in case of errors). Wget does *not* send `From:' by default.
#header = From: Your Name <[email protected]>

# You can set up other headers, like Accept-Language. Accept-Language
# is *not* sent by default.
#header = Accept-Language: en

# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
#https_proxy = http://proxy.yoyodyne.com:18023/
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/

# If you do not want to use proxy at all, set this to off.
#use_proxy = on

# You can customize the retrieval outlook. Valid options are default,
# binary, mega and micro.
#dot_style = default

# Setting this to off makes Wget not download /robots.txt. Be sure to
# know *exactly* what /robots.txt is and how it is used before changing
# the default!
#robots = on

# It can be useful to make Wget wait between connections. Set this to
# the number of seconds you want Wget to wait.
#wait = 0

# You can force creating directory structure, even if a single is being
# retrieved, by setting this to on.
#dirstruct = off

# You can turn on recursive retrieving by default (don't do this if
# you are not sure you know what it means) by setting this to on.
#recursive = off

# To always back up file X as X.orig before converting its links (due
# to -k / --convert-links / convert_links = on having been specified),
# set this variable to on:
#backup_converted = off

# To have Wget follow FTP links from HTML files by default, set this
# to on:
#follow_ftp = off

# To try ipv6 addresses first:
#prefer-family = IPv6

# Set default IRI support state
#iri = off

# Force the default system encoding
#locale = UTF-8

# Force the default remote server encoding
#remoteencoding = UTF-8
[root@RHELPOC63 nagiosxi]#
Faizan Khan
Unix Administrator | Unix Team
HCL America | Gulfstream Aerospace Corporation
www. gulfstream.com
http://www.hcl.com
Locked