Description

While upgrading a PTX1000 device from 18.2X75-D420.28 to 18.2X75-D435.17, the upgrade failed with the error below, indicating a problem with the event options script:

Event processing process: invalid filename: /var/db/scripts/event//bgp_lookup.slax

However, the file name was correct and the file was present in the directory specified.

Symptoms

Upgrade messages were observed after issuing the upgrade command:

2021-02-26 07:17:38,702 | [INFO][junos_ops.device_operations.update_os] Issuing command: request vmhost software add /var/tmp/junos-vmhost-install-ptx-x86-64-18.2X75-D435.17.tgz reboot
2021-02-26 07:19:54,117 | [INFO][junos_ops.operations_parsers.update_os_parsers] Parsing device output in parser=parse_update_os_output
2021-02-26 07:19:54,117 | [INFO][junos_ops.operations_parsers.update_os_parsers] Finished parsing in parser=parse_update_os_output
2021-02-26 07:19:54,117 | [ERROR][junos_ops.device_operations.update_os] Error occurred when running CLI command: Junos Validation begin. Procedure will take few minutes.
Initializing...
grep: /var/tmp/mt_pt82138/packages/sets/validate82266/*/package.xml: No such file or directory
Verified os-libs-11-x86-64-20200423 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting os-libs-11-x86-64-20200423.d6acdc5_builder_stable_11
Verified os-runtime-x86-64-20200423 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting os-runtime-x86-64-20200423.d6acdc5_builder_stable_11
Verified os-zoneinfo-20200423 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting os-zoneinfo-20200423.d6acdc5_builder_stable_11
Verified junos-net-prd-x86-64-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-net-prd-x86-64-20201014.165515_builder_junos_182_x75_d435
Verified junos-libs-x86-64-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-libs-x86-64-20201014.165515_builder_junos_182_x75_d435
Verified os-libs-compat32-11-x86-64-20200423 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting os-libs-compat32-11-x86-64-20200423.d6acdc5_builder_stable_11
Verified os-compat32-x86-64-20200423 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting os-compat32-x86-64-20200423.d6acdc5_builder_stable_11
Verified junos-libs-compat32-x86-64-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-libs-compat32-x86-64-20201014.165515_builder_junos_182_x75_d435
Verified junos-runtime-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-runtime-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified junos-vmguest-mtx-x86-64-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-vmguest-mtx-x86-64-20201014.165515_builder_junos_182_x75_d435
Verified sflow-ptx-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting sflow-ptx-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified py-extensions-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting py-extensions-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified py-base-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting py-base-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified os-vmguest-x86-64-20200423 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting os-vmguest-x86-64-20200423.d6acdc5_builder_stable_11
Verified os-crypto-x86-64-20200423 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting os-crypto-x86-64-20200423.d6acdc5_builder_stable_11
Verified na-telemetry-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting na-telemetry-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified junos-libs-compat32-mx-x86-64-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-libs-compat32-mx-x86-64-20201014.165515_builder_junos_182_x75_d435
Verified junos-runtime-mx-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-runtime-mx-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified junos-platform-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-platform-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified junos-openconfig-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-openconfig-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified junos-modules-x86-64-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-modules-x86-64-20201014.165515_builder_junos_182_x75_d435
Verified junos-modules-mx-x86-64-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-modules-mx-x86-64-20201014.165515_builder_junos_182_x75_d435
Verified junos-libs-mx-x86-64-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-libs-mx-x86-64-20201014.165515_builder_junos_182_x75_d435
Verified junos-dp-crypto-support-mtx-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-dp-crypto-support-mtx-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified junos-daemons-x86-64-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-daemons-x86-64-20201014.165515_builder_junos_182_x75_d435
Verified junos-daemons-mx-x86-64-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting junos-daemons-mx-x86-64-20201014.165515_builder_junos_182_x75_d435
Verified jsd-x86-32-18.2X75-D435 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting jsd-x86-32-18.2X75-D435.17-jet-1
Verified jpfe-wrlinux-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting jpfe-wrlinux-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified jpfe-T-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting jpfe-T-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified jpfe-fips-x86-32-18.2X75-D435 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting jpfe-fips-x86-32-18.2X75-D435.17
Verified jpfe-common-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting jpfe-common-x86-32-20201014.165515_builder_junos_182_x75_d435
Verified jinsight-x86-32-18.2X75-D435 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting jinsight-x86-32-18.2X75-D435.17
Verified jfirmware-x86-32-18.2X75-D435 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting jfirmware-x86-32-18.2X75-D435.17
Verified jdocs-x86-32-20201014 signed by PackageProductionECP256_2020 method ECDSA256+SHA256
Mounting jdocs-x86-32-20201014.165515_builder_junos_182_x75_d435
Hardware Database regeneration succeeded
Validating against /config/juniper.conf.gz
mgd: commit complete
Validation succeeded
Validating against /config/rescue.conf.gz
Event processing process: <xnm:error xmlns="http://xml.juniper.net/xnm/1.1/xnm" xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm">
Event processing process: <source-daemon>
Event processing process: commit-script
Event processing process: 
Event processing process: <message>
Event processing process: invalid filename: /var/db/scripts/event//bgp_lookup.slax
Event processing process: 
Event processing process: 
Event processing process: <xnm:error xmlns="http://xml.juniper.net/xnm/1.1/xnm" xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm">
Event processing process: <source-daemon>eventd
Event processing process: <message><xnm:error xmlns="http://xml.juniper.net/xnm/1.1/xnm" xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm">
Event processing process: 
Event processing process: 
Event processing process: <xnm:error xmlns="http://xml.juniper.net/xnm/1.1/xnm" xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm">
Event processing process: <source-daemon>eventd
Event processing process: <message><message>
Event processing process: 
Event processing process: 
Event processing process: <xnm:error xmlns="http://xml.juniper.net/xnm/1.1/xnm" xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm">
Event processing process: <source-daemon>eventd
Event processing process: <message>Cannot open configuration file: &#239;&#xe007;&#155;&#xe00e;
Event processing process: 
Event processing process: 
Event processing process: <xnm:error xmlns="http://xml.juniper.net/xnm/1.1/xnm" xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm">
Event processing process: <source-daemon>eventd
Event processing process: <message></message>
Event processing process: 
Event processing process: 
Event processing process: <xnm:error xmlns="http://xml.juniper.net/xnm/1.1/xnm" xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm">
Event processing process: <source-daemon>eventd
Event processing process: <message></xnm:error>
Event processing process: 
Event processing process: 
Event processing process: <xnm:error xmlns="http://xml.juniper.net/xnm/1.1/xnm" xmlns:xnm="http://xml.juniper.net/xnm/1.1/xnm">
Event processing process: <source-daemon>eventd
Event processing process: <message>Loading the configuration from event scripts failed
Event processing process: 
mgd: error: configuration check-out failed
Validation failed
ERROR:  Failed to add /var/tmp/junos-vmhost-install-ptx-x86-64-18.2X75-D435.17.tgz
warning: Host software installation has failed.
2021-02-26 07:19:54,118 | [ERROR][endodriverutils.execution] Failed to execute [update_os] for device [router1] due to OSUpgradeFailedException(Error occurred when running CLI command: Junos Validation begin. Procedure will take few minutes.
..

Solution

When there is a rescue configuration on the device, it is validated against during the upgrade.  A mismatch or conflicting configuration in it, can cause an issue.

In this case, the upgrade failed while verifying against the rescue configuration (rescue configuration is like a backup configuration on the device) due to a mismatch of rescue configuration with the latest configuration.

Save the rescue config to match the latest config, then the upgrade worked as expected:

​>request system configuration rescue save

Modification History

2025-02-20: minor non-technical edit

2021-3-2: Article created

Related Information