subprocess.CalledProcessError: Command '['/var/lib/juju/agents/unit-ntp-14/.venv/bin/pip', 'install', '-U', '--no-index', '-f', 'wheelhouse', 'pip']' returned non-zero exit status 1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
NTP Charm |
Confirmed
|
Critical
|
Unassigned |
Bug Description
Upgrading ntp charm to 20.08 fails with the following stacktrace:
2020-08-20 18:38:39 DEBUG upgrade-charm Reading package lists...
2020-08-20 18:38:39 DEBUG upgrade-charm Building dependency tree...
2020-08-20 18:38:39 DEBUG upgrade-charm Reading state information...
2020-08-20 18:38:39 DEBUG upgrade-charm build-essential is already the newest version (12.4ubuntu1).
2020-08-20 18:38:39 DEBUG upgrade-charm python3-setuptools is already the newest version (39.0.1-2).
2020-08-20 18:38:39 DEBUG upgrade-charm python3-yaml is already the newest version (3.12-1build2).
2020-08-20 18:38:39 DEBUG upgrade-charm python3-wheel is already the newest version (0.30.0-0.2).
2020-08-20 18:38:39 DEBUG upgrade-charm python3-dev is already the newest version (3.6.7-1~18.04).
2020-08-20 18:38:39 DEBUG upgrade-charm python3-pip is already the newest version (9.0.1-
2020-08-20 18:38:39 DEBUG upgrade-charm 0 upgraded, 0 newly installed, 0 to remove and 162 not upgraded.
2020-08-20 18:38:39 DEBUG upgrade-charm Reading package lists...
2020-08-20 18:38:40 DEBUG upgrade-charm Building dependency tree...
2020-08-20 18:38:40 DEBUG upgrade-charm Reading state information...
2020-08-20 18:38:40 DEBUG upgrade-charm python3-psutil is already the newest version (5.4.6-
2020-08-20 18:38:40 DEBUG upgrade-charm 0 upgraded, 0 newly installed, 0 to remove and 162 not upgraded.
2020-08-20 18:38:41 DEBUG upgrade-charm Looking in links: wheelhouse
2020-08-20 18:38:41 DEBUG upgrade-charm Requirement already up-to-date: pip in /var/lib/
2020-08-20 18:38:41 DEBUG upgrade-charm Could not install packages due to an EnvironmentError: [Errno 2] No such file or directory: '/var/lib/
2020-08-20 18:38:41 DEBUG upgrade-charm
2020-08-20 18:38:42 DEBUG upgrade-charm Traceback (most recent call last):
2020-08-20 18:38:42 DEBUG upgrade-charm File "/var/lib/
2020-08-20 18:38:42 DEBUG upgrade-charm basic.bootstrap
2020-08-20 18:38:42 DEBUG upgrade-charm File "lib/charms/
2020-08-20 18:38:42 DEBUG upgrade-charm _update_
2020-08-20 18:38:42 DEBUG upgrade-charm File "lib/charms/
2020-08-20 18:38:42 DEBUG upgrade-charm pkg], env=_get_
2020-08-20 18:38:42 DEBUG upgrade-charm File "/usr/lib/
2020-08-20 18:38:42 DEBUG upgrade-charm raise CalledProcessEr
2020-08-20 18:38:42 DEBUG upgrade-charm subprocess.
2020-08-20 18:38:42 ERROR juju.worker.
This is a long standing environment, but this last upgrade was from ntp-40 to ntp-41.
tags: | added: sts stsstack |
Changed in ntp-charm: | |
status: | New → Confirmed |
importance: | Undecided → Critical |
Workaround:
juju ssh ntp/<UNIT> "sudo rm -rf /var/lib/ juju/agents/ unit-ntp- <UNIT>/ .venv"
juju resolved ntp/<UNIT>