Support Support Downloads Knowledge Base Juniper Support Portal Community

Knowledge Base

Search our Knowledge Base sites to find answers to your questions.

Ask All Knowledge Base Sites All Knowledge Base Sites JunosE Defect (KA)Knowledge BaseSecurity AdvisoriesTechnical BulletinsTechnotes Sign in to display secure content and recently viewed articles

[M/MX/T] Commit check or Commit does not work after upgrade/downgrade of Junos OS running DB scripts

0

0

Article ID: KB28188 KB Last Updated: 18 Nov 2013Version: 1.0
Summary:

The commands commit check or commit do not work on either routing engine after downgrade/upgrade of Junos OS on the machine that is running scripts.


Symptoms:

The following error may be seen:

re0:
configuration check succeeds
re1:

/var/db/scripts/import/junos.xsl:failed to load external entity
"/var/db/scripts/import/junos.xsl"
error: compilation error: file /var/db/scripts/commit/check-ldp.slax line 9
element import
error: xsl:import : unable to load /var/db/scripts/import/junos.xsl
error: error reading stylesheet: check-ldp.slax
error: 3 errors reported by commit scripts
error: commit script failure
re0:
error: remote commit-configuration failed on re1
Cause:

In Junos OS import, symlink was changed from /usr/libdata/cscript/import to /usr/libexec/scripts/import, but was backed out later from Junos OS 12.3 release.

If any router first loads any Junos OS image that does not have the reverted changes and then upgrades to any other image that has the reverted changes, it will be still pointing to /usr/libexec/scripts/import.

How to verify

m320-re0> file list /var/db/scripts detail

/var/db/scripts:
total 64
drwxrwS--- 2 root wheel 1024 May 1 04:39 commit/
drwxrwS--- 2 root wheel 20992 May 1 04:39 event/
lrwxr-xr-x 1 root wheel 27 Feb 24 01:00 import@ -> /usr/libexec/scripts/import
drwxrwS--- 2 root wheel 512 Dec 13 02:23 lib/
drwxrwS--- 2 root wheel 512 May 1 04:39 op/
/code>
Solution:

Manually remove import symlink as shown below:

>Start shell
%cd /var/db/scripts
%rm import
%ln -sf /usr/libdata/cscript/import import

Commit your changes.

Make sure you do the same on both routing engines if you see the problem on both routing engines.

If the problem continues, please contact JTAC.


Comment on this article > Affected Products Browse the Knowledge Base for more articles related to these product categories. Select a category to begin.

Getting Up and Running with Junos

Getting Up and Running with Junos Security Alerts and Vulnerabilities Product Alerts and Software Release Notices Problem Report (PR) Search Tool EOL Notices and Bulletins JTAC User Guide Customer Care User Guide Pathfinder SRX High Availability Configurator SRX VPN Configurator Training Courses and Videos End User Licence Agreement Global Search