Octoprint 1.3.7 wont update via Web or command line

Thanks in advance, possibly a noob question but...
What is the problem?
Octopi 1.3.7 upgrade fails every time on Rasp Pi B3+ when upgrade attempted via web interface or direct on pi
What did you already try to solve it?
Disabled then Uninstalled OctoLapse, attempted manual install, tried to make sense of the logs!
Additional information about your setup (OctoPrint version 1.3.6, OctoPi version , printer HICTOP Prusa I3, firmware Marlin v1, octoprint.log, serial.log or output on terminal tab, ...)

Command line output;

pi@octopi:~ $ ~/oprint/bin/pip install https://get.octoprint.org/latest
Collecting https://get.octoprint.org/latest
  Downloading https://get.octoprint.org/latest (4.9MB)
    100% |β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ| 4.9MB 26kB/s
Requirement already satisfied: flask<0.11,>=0.9 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: Jinja2<2.9,>=2.8 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: werkzeug<0.9,>=0.8.3 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: tornado==4.0.2 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: sockjs-tornado<1.1,>=1.0.3 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: PyYAML<3.11,>=3.10 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: Flask-Login<0.3,>=0.2.2 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: Flask-Principal<0.4,>=0.3.5 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: Flask-Babel<0.10,>=0.9 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: Flask-Assets<0.11,>=0.10 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: markdown<2.7,>=2.6.4 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: pyserial<3.5,>=2.7 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: netaddr<0.8,>=0.7.17 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: watchdog<0.9,>=0.8.3 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: sarge<0.2,>=0.1.4 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: netifaces<0.11,>=0.10 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: pylru<1.1,>=1.0.9 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: rsa<3.3,>=3.2 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: pkginfo<1.3,>=1.2.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: requests<3,>=2.18.4 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: semantic_version<2.5,>=2.4.2 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: psutil<6,>=5.4.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: Click<6.3,>=6.2 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: awesome-slugify<1.7,>=1.6.5 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: feedparser<5.3,>=5.2.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: chainmap<1.1,>=1.0.2 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: future<0.16,>=0.15 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: scandir<1.4,>=1.3 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: websocket-client<0.41,>=0.40 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: python-dateutil<2.7,>=2.6 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: wrapt<1.11,>=1.10.10 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: futures<3.2,>=3.1.1 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: emoji<0.5,>=0.4.5 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Requirement already satisfied: monotonic<1.4,>=1.3 in ./oprint/lib/python2.7/site-packages (from OctoPrint==1.3.7)
Collecting frozendict<1.3,>=1.2 (from OctoPrint==1.3.7)
Exception:
Traceback (most recent call last):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/basecommand.py", line 215, in main
    status = self.run(options, args)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/commands/install.py", line 353, in run
    wb.build(autobuilding=True)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/wheel.py", line 749, in build
    self.requirement_set.prepare_files(self.finder)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/req/req_set.py", line 380, in prepare_files
    ignore_dependencies=self.ignore_dependencies))
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/req/req_set.py", line 554, in _prepare_file
    require_hashes
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/req/req_install.py", line 278, in populate_link
    self.link = finder.find_requirement(self, upgrade)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/index.py", line 465, in find_requirement
    all_candidates = self.find_all_candidates(req.name)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/index.py", line 423, in find_all_candidates
    for page in self._get_pages(url_locations, project_name):
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/index.py", line 568, in _get_pages
    page = self._get_page(location)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/index.py", line 683, in _get_page
    return HTMLPage.get_page(link, session=self.session)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/index.py", line 792, in get_page
    "Cache-Control": "max-age=600",
  File "/home/pi/oprint/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 501, in get
    return self.request('GET', url, **kwargs)
  File "/home/pi/oprint/local/lib/python2.7/site-packages/pip/download.py", line 386, in request
    return super(PipSession, self).request(method, url, *args, **kwargs)
  File "/home/pi/oprint/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 488, in request
    resp = self.send(prep, **send_kwargs)
  File "/home/pi/oprint/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/sessions.py", line 609, in send
    r = adapter.send(request, **kwargs)
  File "/home/pi/oprint/share/python-wheels/CacheControl-0.11.7-py2.py3-none-any.whl/cachecontrol/adapter.py", line 47, in send
    resp = super(CacheControlAdapter, self).send(request, **kw)
  File "/home/pi/oprint/share/python-wheels/requests-2.12.4-py2.py3-none-any.whl/requests/adapters.py", line 423, in send
    timeout=timeout
  File "/home/pi/oprint/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/connectionpool.py", line 643, in urlopen
    _stacktrace=sys.exc_info()[2])
  File "/home/pi/oprint/share/python-wheels/urllib3-1.19.1-py2.py3-none-any.whl/urllib3/util/retry.py", line 315, in increment
    total -= 1
TypeError: unsupported operand type(s) for -=: 'Retry' and 'int'
pi@octopi:~ $

octoprint (6).log (298.2 KB)

new user limitation - only one attachment so ditched the serial.log as comms seem fine

This gets thrown deep inside pip (Python's package manager) and actually has a ticket in pip's bug tracker:

Do you have a shaky net connection by any chance? It should only happen if something goes wrong while attempting to (re)fetch a package from the internet.

You could also try if updating pip itself maybe solves it:

~/oprint/bin/pip install --upgrade pip

Could of course run into the same issue if the network connection is shaky enough.

edit

Actually even seems to be a Debian bug: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=880472

Still, caused by a shaky network connection. Are you connected through WiFi? Maybe try a direct wired connection, just to rule out any WiFi reception issues as the root cause of this.

Ty @foosel after work I’ll check pip and although confident with my wifi, I’ll try a hard wired octoprint update also and update this thread.

Resolved with hard wire ethernet connection from pi to router, thanks for your attention, up to 1.3.8 as of 2 mins ago
image
:+1: