Platform9 Related Package Installation Failing Due To Apt Cache Corruption.
Problem
2023-09-15 10:09:18,450 - pf9_app.py INFO - Removing pf9-comms.5.6.3-1090.bb20653
2023-09-15 10:09:18,615 - pf9_app.py INFO - Setting the desired service state
2023-09-15 10:09:18,616 - pf9_app.py INFO - Setting service state pf9-comms.5.6.3-1090.bb20653. Command: sudo systemctl stop pf9-comms
2023-09-15 10:09:23,644 - pf9_app_db.py ERROR - Erase command failed : sudo /opt/pf9/hostagent/bin/pf9-apt erase pf9-comms. Return code: 1, stdout: , stderr: Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apt/cache.py", line 584, in update
pulse_interval)
apt_pkg.Error: E:Repository 'https://aquasecurity.github.io/trivy-repo/deb bionic InRelease' changed its 'Origin' value from 'knqyf263.github.io/trivy-repo/deb' to 'aquasecurity.github.io/trivy-repo/deb', E:Repository 'https://aquasecurit
y.github.io/trivy-repo/deb bionic InRelease' changed its 'Label' value from 'github.io/knqyf263' to 'github.io/aquasecurity'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/opt/pf9/hostagent/bin/pf9-apt", line 87, in <module>
cache = _get_updated_apt_cache()
File "/opt/pf9/hostagent/bin/pf9-apt", line 41, in _get_updated_apt_cache
_update_apt_cache(cache)
File "/opt/pf9/hostagent/bin/pf9-apt", line 36, in _update_apt_cache
cache.update()
File "/usr/lib/python3/dist-packages/apt/cache.py", line 586, in update
raise FetchFailedException(e)
apt.cache.FetchFailedException: E:Repository 'https://aquasecurity.github.io/trivy-repo/deb bionic InRelease' changed its 'Origin' value from 'knqyf263.github.io/trivy-repo/deb' to 'aquasecurity.github.io/trivy-repo/deb', E:Repository 'ht
tps://aquasecurity.github.io/trivy-repo/deb bionic InRelease' changed its 'Label' value from 'github.io/knqyf263' to 'github.io/aquasecurity'
2023-09-15 10:09:23,645 - session.py ERROR - Exception during apps processing: <class 'pf9app.exceptions.RemoveOperationFailed'>
2023-09-15 10:09:26,280 - session.py INFO - Converge failedEnvironment
Cause
PreviousPlatform9 Services In Failed State Due To "Too many open files" ErrorNextHostagent Installation Failing Due To Apt Key Being Not Present.
Last updated
