Page 1 of 1
Unable to download components. Proxy connection fail.
Posted: Thu Sep 17, 2020 3:59 pm
by bdobson
Installation type: VMware, OVA
OS: CentOS7
Version: 5.7.3
I had this issue as well on my old, CentOS6 OVA installation and was hoping part of the switch to CentOS7 would correct it but it persists. The system is working otherwise just fine, all checks are being made and everything is green.
However, when I go to Admin -> Manage Compnents and then click install I get:
Installation failed, check internet connectivity or proxy settings.
I checked the http error logs and nothing is standing out as being the isssue.
Re: Unable to download components. Proxy connection fail.
Posted: Fri Sep 18, 2020 2:38 pm
by benjaminsmith
Hi,
Does the server have access to the internet or are you using a proxy? The server will need to communicate with assets.nagios.com to retrieve any downloads.
Run the following curl command to test the connectivity.
Code: Select all
curl -k -L -v https://assets.nagios.com
Regards,
Benjamin
Re: Unable to download components. Proxy connection fail.
Posted: Fri Sep 18, 2020 3:27 pm
by bdobson
I ran the command and I can connect to it. The system is directly connected to the Internet.
Code: Select all
[root@apim-nagiosxi ~]# curl -k -L -v https://assets.nagios.com
* About to connect() to assets.nagios.com port 443 (#0)
* Trying 72.14.181.71...
* Connected to assets.nagios.com (72.14.181.71) port 443 (#0)
* Initializing NSS with certpath: sql:/etc/pki/nssdb
* skipping SSL peer certificate verification
* SSL connection using TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384
* Server certificate:
* subject: CN=*.nagios.com
* start date: May 27 00:00:00 2020 GMT
* expire date: Jun 26 23:59:59 2022 GMT
* common name: *.nagios.com
* issuer: CN=Sectigo RSA Domain Validation Secure Server CA,O=Sectigo Limited,L=Salford,ST=Greater Manchester,C=GB
> GET / HTTP/1.1
> User-Agent: curl/7.29.0
> Host: assets.nagios.com
> Accept: */*
However I still get the message when updating components or wizards.
Re: Unable to download components. Proxy connection fail.
Posted: Mon Sep 21, 2020 3:22 pm
by benjaminsmith
Hi,
Ok, thanks fo running that test. Please try to log out and log back in and try once more, but this time run the following tail command before selecting
Install and post the output if it fails.
Code: Select all
tail -f /usr/local/nagiosxi/var/cmdsubsys.log
Next, try to download the component? Does that work? If so can you install using the
Upload a Component option on that page?
Thanks,
Benjamin
Re: Unable to download components. Proxy connection fail.
Posted: Mon Sep 21, 2020 3:29 pm
by bdobson
Here is the output, it looks like invalid user and group? The installation was done from the VMware OVA.
Code: Select all
PROCESS COMMAND: CMD=1131, DATA=a:1:{i:0;a:2:{s:4:"name";s:15:"bandwidthreport";s:3:"url";s:80:"https://assets.nagios.com/downloads/nagiosxi/components/xi57/bandwidthreport.zip";}}
AUTO UPGRADING COMPONENTSCMD DATA: Array
(
[0] => Array
(
[name] => bandwidthreport
[url] => https://assets.nagios.com/downloads/nagiosxi/components/xi57/bandwidthreport.zip
)
)
TMPNAME: Ih6uj
Archive: bandwidthreport.zip
4102c080144019ab1d4c90bd7838ed11cbbd609f
creating: bandwidthreport/
inflating: bandwidthreport/CHANGES.TXT
inflating: bandwidthreport/bandwidthreport.inc.php
inflating: bandwidthreport/index.php
creating: bandwidthreport/templates/
inflating: bandwidthreport/templates/timeline.inc.php
CMDLINE=. /usr/local/nagiosxi/var/xi-sys.cfg && chmod -R 755 /usr/local/nagiosxi/tmp/Ih6uj/bandwidthreport && chown -R \$nagiosuser:\$nagiosgroup /usr/local/nagiosxi/tmp/Ih6uj/bandwidthreport && cp -rf /usr/local/nagiosxi/tmp/Ih6uj/bandwidthreport /usr/local/nagiosxi/html/includes/components/ && rm -rf /usr/local/nagiosxi/tmp/Ih6uj
chown: invalid user: ‘$nagiosuser:$nagiosgroup’
OUTPUT=
RETURNCODE=1
Downloading then installing via upload does work.
Re: Unable to download components. Proxy connection fail.
Posted: Mon Sep 21, 2020 3:30 pm
by benjaminsmith
HI,
Update. We've been able to confirm this issue as a bug. It will be fixed in the next maintenance release.
A couple of workarounds. Update all of the components at the same time by selecting the green button Install Updates or download the individual component and upload it as suggested in the last post.
Thanks for bringing this to our attention.
Benjamin
Re: Unable to download components. Proxy connection fail.
Posted: Mon Sep 21, 2020 3:31 pm
by bdobson
Good news! Thank you!
Re: Unable to download components. Proxy connection fail.
Posted: Mon Sep 21, 2020 3:54 pm
by scottwilkerson
bdobson wrote:Good news! Thank you!
This should be resolved in the next release.
Locking thread