Offline Upgrade Will not Download pipfiles

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
watts58
Posts: 6
Joined: Wed Jan 08, 2020 12:28 pm

Offline Upgrade Will not Download pipfiles

Post by watts58 »

I made it to the last command on the online server, but received the below error.

[tsiluser@repo nagios-upgrade]$ sudo grep 'pip install' upgrade | sed 's/pip install --upgrade/pip download -d \/var\/satellite\/nagios-upgrade\/pipfiles\//' | source /dev/stdin
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/developme ... -2-support pip 21.0 will remove support for this functionality.
Defaulting to user installation because normal site-packages is not writeable
Requirement already up-to-date: setuptools in /home/tsiluser/.local/lib/python2.7/site-packages (44.1.1)
DEPRECATION: Python 2.7 reached the end of its life on January 1st, 2020. Please upgrade your Python as Python 2.7 is no longer maintained. pip 21.0 will drop support for Python 2.7 in January 2021. More details about Python 2 support in pip can be found at https://pip.pypa.io/en/latest/developme ... -2-support pip 21.0 will remove support for this functionality.
Collecting elasticsearch-curator==3.4.0
Using cached elasticsearch_curator-3.4.0-py2.py3-none-any.whl (43 kB)
ERROR: Exception:
Traceback (most recent call last):
File "/usr/lib/python2.7/site-packages/pip/_internal/cli/base_command.py", line 228, in _main
status = self.run(options, args)
File "/usr/lib/python2.7/site-packages/pip/_internal/cli/req_command.py", line 182, in wrapper
return func(self, options, args)
File "/usr/lib/python2.7/site-packages/pip/_internal/commands/download.py", line 134, in run
reqs, check_supported_wheels=True
File "/usr/lib/python2.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 183, in resolve
discovered_reqs.extend(self._resolve_one(requirement_set, req))
File "/usr/lib/python2.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 388, in _resolve_one
abstract_dist = self._get_abstract_dist_for(req_to_install)
File "/usr/lib/python2.7/site-packages/pip/_internal/resolution/legacy/resolver.py", line 340, in _get_abstract_dist_for
abstract_dist = self.preparer.prepare_linked_requirement(req)
File "/usr/lib/python2.7/site-packages/pip/_internal/operations/prepare.py", line 494, in prepare_linked_requirement
shutil.copy(local_file.path, download_location)
File "/usr/lib64/python2.7/shutil.py", line 119, in copy
copyfile(src, dst)
File "/usr/lib64/python2.7/shutil.py", line 83, in copyfile
with open(dst, 'wb') as fdst:
IOError: [Errno 13] Permission denied: u'/var/satellite/nagios-upgrade/pipfiles/elasticsearch_curator-3.4.0-py2.py3-none-any.whl'
[tsiluser@repo nagios-upgrade]$
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Offline Upgrade Will not Download pipfiles

Post by cdienger »

Looks like you got a bit futher on https://support.nagios.com/forum/viewto ... 5&p=316994. Is it okay to close that one out?

Try running this:

Code: Select all

sudo  pip download -d /var/satellite/nagios-upgrade/pipfiles/ elasticsearch-curator==3.4.0 urllib3==1.22
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
watts58
Posts: 6
Joined: Wed Jan 08, 2020 12:28 pm

Re: Offline Upgrade Will not Download pipfiles

Post by watts58 »

Yes. That command worked. Thank you for your help! Hopefully the offline server portion runs smooth.
User avatar
cdienger
Support Tech
Posts: 5045
Joined: Tue Feb 07, 2017 11:26 am

Re: Offline Upgrade Will not Download pipfiles

Post by cdienger »

Glad to hear! We'll lock this up and if you have any further issues, please open a new thread.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Locked