Page 1 of 1

Offline Upgrade Will not Download pipfiles

Posted: Fri Sep 11, 2020 2:42 pm
by watts58
I have successfully made it to the last command on the online server, and it appears to successfully complete, but there is no output nor any pipfiles in the designated location. please see below:

sudo grep '\$pipbin install' upgrade | sed 's/\$pipbin install --upgrade/pip download -d \/var\/satellite\/nagios-upgrade\/pipfiles\//' | source /dev/stdin
[tsiluser@repo nagios-upgrade]$

cd pipfiles/
[tsiluser@repo pipfiles]$ ll
total 0
[tsiluser@repo pipfiles]$

Re: Offline Upgrade Will not Download pipfiles

Posted: Fri Sep 11, 2020 3:09 pm
by cdienger
Try breaking it down a bit:

Code: Select all

grep 'pip install' upgrade
which should show you lines with 'pip install'

and then run:

Code: Select all

grep 'grep 'pip install' upgrade | sed 's/pip install --upgrade/pip download -d \/tmp\/pipfiles\//' 
which should show you what command(s) it will attempt to run to download the file. Use this output to try and run the pip command manually. I suspect there may be an issue with the command and the installed version of pip. Check the version with:

Code: Select all

pip --version