Hello,
I'm trying to perform a new installation of Log Server on one of my servers and during the installation process it appears to be reaching out to try and download an 'argparse' package from I think: pypi.python.org/simple/argparse
My server cannot connect to that location due to an HTTPS connection refused error. I installed Log Server on this same box about 6 months ago and did not have this issue. I'm just curious before I reach out to my Network team for permits, was a new package added to the installation or perhaps an updated download location?
Thank you.
Installing Log Server - won't connect for argparse package
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Installing Log Server - won't connect for argparse packa
Hello, @rferebee. Are both boxes with Log Server using the same OS? Is it CentOS? What version of LS is installed on the original server?
Can you run the following command on the original server and then on the new server, and show me both outputs?
Can you run the following command on the original server and then on the new server, and show me both outputs?
Thankspip install 123 --verbose | grep Looking
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Installing Log Server - won't connect for argparse packa
The original servers are running CentOS 6 and the new ones are running CentOS 7 (I was told this wouldn't be an issue).
The original servers are currently on LS 2.0.6. I was trying to install 2.0.7 on the new ones, but I also tried 2.0.6 which also failed.
Original output:
[root@nagioslscc1 ~]# pip install 123 --verbose | grep Looking
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Looking up "https://pypi.python.org/simple/123/" in the cache
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532410>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532110>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532310>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532090>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532890>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Could not find a version that satisfies the requirement 123 (from versions: )
No matching distribution found for 123
Looking up "https://pypi.python.org/pypi/pip/json" in the cache
[root@nagioslscc1 ~]#
New output:
root@nagioslscc3:/root>[root@nagioslscc1 ~]# pip install 123 --verbose | grep Looking
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Looking up "https://pypi.python.org/simple/123/" in the cache
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532410>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532110>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
bash: [root@nagioslscc1: command not found...
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532310>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532090>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532890>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Could not find a version that satisfies the requirement 123 (from versions: )
No matching distribution found for 123
Looking up "https://pypi.python.org/pypi/pip/json" in the cache
[root@nagioslscc1 ~]#
root@nagioslscc3:/root>DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
bash: DEPRECATION:: command not found...
root@nagioslscc3:/root> Looking up "https://pypi.python.org/simple/123/" in the cache
bash: Looking: command not found...
root@nagioslscc3:/root> Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532410>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
-bash: syntax error near unexpected token `Retry'
root@nagioslscc3:/root> Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532110>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
-bash: syntax error near unexpected token `Retry'
root@nagioslscc3:/root> Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532310>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
-bash: syntax error near unexpected token `Retry'
root@nagioslscc3:/root> Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532090>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
-bash: syntax error near unexpected token `Retry'
root@nagioslscc3:/root> Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532890>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
-bash: syntax error near unexpected token `Retry'
root@nagioslscc3:/root> Could not find a version that satisfies the requirement 123 (from versions: )
-bash: syntax error near unexpected token `('
root@nagioslscc3:/root>No matching distribution found for 123
bash: No: command not found...
root@nagioslscc3:/root>Looking up "https://pypi.python.org/pypi/pip/json" in the cache
bash: Looking: command not found...
root@nagioslscc3:/root>[root@nagioslscc1 ~]#
bash: [root@nagioslscc1: command not found...
root@nagioslscc3:/root>
The original servers are currently on LS 2.0.6. I was trying to install 2.0.7 on the new ones, but I also tried 2.0.6 which also failed.
Original output:
[root@nagioslscc1 ~]# pip install 123 --verbose | grep Looking
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Looking up "https://pypi.python.org/simple/123/" in the cache
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532410>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532110>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532310>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532090>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532890>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Could not find a version that satisfies the requirement 123 (from versions: )
No matching distribution found for 123
Looking up "https://pypi.python.org/pypi/pip/json" in the cache
[root@nagioslscc1 ~]#
New output:
root@nagioslscc3:/root>[root@nagioslscc1 ~]# pip install 123 --verbose | grep Looking
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
Looking up "https://pypi.python.org/simple/123/" in the cache
Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532410>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532110>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
bash: [root@nagioslscc1: command not found...
Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532310>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532090>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532890>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
Could not find a version that satisfies the requirement 123 (from versions: )
No matching distribution found for 123
Looking up "https://pypi.python.org/pypi/pip/json" in the cache
[root@nagioslscc1 ~]#
root@nagioslscc3:/root>DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
bash: DEPRECATION:: command not found...
root@nagioslscc3:/root> Looking up "https://pypi.python.org/simple/123/" in the cache
bash: Looking: command not found...
root@nagioslscc3:/root> Retrying (Retry(total=4, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532410>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
-bash: syntax error near unexpected token `Retry'
root@nagioslscc3:/root> Retrying (Retry(total=3, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532110>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
-bash: syntax error near unexpected token `Retry'
root@nagioslscc3:/root> Retrying (Retry(total=2, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532310>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
-bash: syntax error near unexpected token `Retry'
root@nagioslscc3:/root> Retrying (Retry(total=1, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532090>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
-bash: syntax error near unexpected token `Retry'
root@nagioslscc3:/root> Retrying (Retry(total=0, connect=None, read=None, redirect=None)) after connection broken by 'NewConnectionError('<pip._vendor.requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x2532890>: Failed to establish a new connection: [Errno 101] Network is unreachable',)': /simple/123/
-bash: syntax error near unexpected token `Retry'
root@nagioslscc3:/root> Could not find a version that satisfies the requirement 123 (from versions: )
-bash: syntax error near unexpected token `('
root@nagioslscc3:/root>No matching distribution found for 123
bash: No: command not found...
root@nagioslscc3:/root>Looking up "https://pypi.python.org/pypi/pip/json" in the cache
bash: Looking: command not found...
root@nagioslscc3:/root>[root@nagioslscc1 ~]#
bash: [root@nagioslscc1: command not found...
root@nagioslscc3:/root>
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Installing Log Server - won't connect for argparse packa
@rferebee, I looked at install scripts of LS 2.0.6 and LS 2.0.7 and they look pretty similar. Both have the line to install argparse via pip. Although, two servers may have two different versions of python and pip but I don't see how that would explain this. Are you sure that argparse is not installed on the original LS? Can you run the following command and show me the output?
pip show argparse
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Installing Log Server - won't connect for argparse packa
[root@nagioslscc1 ~]# pip show argparse
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
---
Metadata-Version: 2.0
Name: argparse
Version: 1.4.0
Summary: Python command-line parsing library
Home-page: https://github.com/ThomasWaldmann/argparse/
Author: Thomas Waldmann
Author-email: [email protected]
Installer: pip
License: Python Software Foundation License
Location: /usr/lib/python2.6/site-packages
Requires:
Classifiers:
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: Python Software Foundation License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 3
Programming Language :: Python :: 2.3
Programming Language :: Python :: 2.4
Programming Language :: Python :: 2.5
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.0
Programming Language :: Python :: 3.1
Programming Language :: Python :: 3.2
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Topic :: Software Development
[root@nagioslscc1 ~]#
DEPRECATION: Python 2.6 is no longer supported by the Python core team, please upgrade your Python. A future version of pip will drop support for Python 2.6
---
Metadata-Version: 2.0
Name: argparse
Version: 1.4.0
Summary: Python command-line parsing library
Home-page: https://github.com/ThomasWaldmann/argparse/
Author: Thomas Waldmann
Author-email: [email protected]
Installer: pip
License: Python Software Foundation License
Location: /usr/lib/python2.6/site-packages
Requires:
Classifiers:
Development Status :: 5 - Production/Stable
Environment :: Console
Intended Audience :: Developers
License :: OSI Approved :: Python Software Foundation License
Operating System :: OS Independent
Programming Language :: Python
Programming Language :: Python :: 2
Programming Language :: Python :: 3
Programming Language :: Python :: 2.3
Programming Language :: Python :: 2.4
Programming Language :: Python :: 2.5
Programming Language :: Python :: 2.6
Programming Language :: Python :: 2.7
Programming Language :: Python :: 3.0
Programming Language :: Python :: 3.1
Programming Language :: Python :: 3.2
Programming Language :: Python :: 3.3
Programming Language :: Python :: 3.4
Topic :: Software Development
[root@nagioslscc1 ~]#
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Installing Log Server - won't connect for argparse packa
@rferebee, This means that the argparse package is installed on the original log server as well. And pip on both servers is trying to connect to:
So somehow the original server was able to connect to the pypi.python.org repo, or someone installed this package manually offline.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Installing Log Server - won't connect for argparse packa
We can lock this thread. We ended up just temporarily allowing all traffic to the server we were installing Log Server on and it was able to get the packages it needed.
Thank you.
Thank you.
-
npolovenko
- Support Tech
- Posts: 3457
- Joined: Mon May 15, 2017 5:00 pm
Re: Installing Log Server - won't connect for argparse packa
@rferebee, Thanks for the update! I will be closing this thread as resolved.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.