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



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

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.


The following error may be seen:

configuration check succeeds

/var/db/scripts/import/junos.xsl:failed to load external entity
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
error: remote commit-configuration failed on re1

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

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/

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