Page 1 of 1

Offline Upgrade Will not Download pipfiles

Posted: Fri Sep 11, 2020 2:49 pm
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]$

Re: Offline Upgrade Will not Download pipfiles

Posted: Fri Sep 11, 2020 3:30 pm
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

Re: Offline Upgrade Will not Download pipfiles

Posted: Mon Sep 14, 2020 9:12 am
by watts58
Yes. That command worked. Thank you for your help! Hopefully the offline server portion runs smooth.

Re: Offline Upgrade Will not Download pipfiles

Posted: Tue Sep 15, 2020 9:12 am
by cdienger
Glad to hear! We'll lock this up and if you have any further issues, please open a new thread.