Failed to upgrade PAN-OS from 7.1 due to "unsupported hash version" error
11319
Created On 01/20/20 00:11 AM - Last Modified 01/28/20 23:13 PM
Symptom
When you are going to install PAN-OS from 7.1, such errors are seen. The issue is not improved even if you tried Content Update.
You can not upgrade to any PAN-OS releases, even maintenance release of 7.1, like 7.1.25.
Warnings:
Details:Failed to install 7.1.25 with the following errors.
SW version is 7.1.25
Installing [content ] into partition "pancfg"
rpmdb: /mnt/swm/pancfg/var/lib/rpm/Packages: unsupported hash version: 9
error: cannot open Packages index using db3 - Invalid argument (22)
error: cannot open Packages database in /mnt/swm/pancfg/var/lib/rpm
Traceback (most recent call last):
File "/usr/local/bin/swm", line 10, in ?
swmmain.main(sys.argv[1:])
File "/usr/share/pan-swm/swmmain.py", line 94, in main
UI.runCommand(H)
File "/usr/share/pan-swm/swmcli.py", line 172, in runCommand
cmd(self.extcmds)
File "/usr/share/pan-swm/swmcli.py", line 350, in do_install
swm.swmSwRelease(self, img, patch).install()
File "/usr/lib/python2.4/site-packages/swm/release.py", line 778, in install
self.directed_install(cn, p, bootstrap=bootStrap)
File "/usr/lib/python2.4/site-packages/swm/release.py", line 716, in directed_install
rv = swc.install(cn)
File "/usr/lib/python2.4/site-packages/swm/release.py", line 89, in install
return self._install(c)
File "/usr/lib/python2.4/site-packages/swm/release.py", line 425, in _install
progress_child)
File "/usr/lib/python2.4/site-packages/swm/packages.py", line 161, in __init__
for pkg_h in self.ts.dbMatch():
TypeError: rpmdb open failed
Exception exceptions.AttributeError: "swmPackageTransaction instance has no attribute 'hdlr'" in <bound method swmPackageTransaction.__del__ of <swm.packages.swmPackageTran
saction instance at 0x9fba0cc>> ignored
Failed to install version 7.1.25 type panos
Cause
This issue will be seen after you downgraded from PAN-OS 8.1 to 7.1 via Maintenance mode.
Resolution
Please follow the below steps.
1) Login to Maintenance Mode.
For your reference : How to Enter Maintenance Mode on the Palo Alto Networks Firewall
2) Go to Factory Reset > Advanced. When you prompted for the password, enter "MA1NT".
3) Check "panos-7.1.0" in "Select image" section, and select "Factory Reset" and enter.
4) After Factory Reset completed, select "Reboot" and enter.
5) When the device restarted, try download and install PAN-OS you want to upgrade.
Additional Information
Notes : When you want to downgrade PAN-OS from 8.1 to 7.1, please downgrade step by step from PAN-OS UI, not from Maintenance Mode.
See also:
https://docs.paloaltonetworks.com/pan-os/8-1/pan-os-new-features/upgrade-to-pan-os-81/downgrade-from-pan-os-81/downgrade-a-firewall-to-a-previous-feature-release.html