This article explains how to recover if there's an upgrade failure on SRX device
While trying to perform an upgrade getting following error
ERROR: Host Upgrade failed!
ERROR: upgrade failed
ERROR: junos-srx-img fails post-install
ERROR: junos-srxmr-x86-64-21.2R3-S7.2-signed fails post-install
Installation failed for package '/var/tmp/junos-srxmr-x86-64-21.2R3-S7.2.tgz
The upgrade is failing because there is some pending upgrade in the kernel
start shell user root
ssh -JU __juniper_private4__ [email protected]
password:
upgrade_platform -r
Exit from the Linux prompt and from the shell prompt. Then run the upgrade once again.