Support Support Downloads Knowledge Base Case Manager My Juniper 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

[Junos] Commit error - 'error: commit failed: commit to file failed during export to /config/juniper.conf+'

0

0

Article ID: KB24684 KB Last Updated: 08 Apr 2020Version: 2.0
Summary:

This article describes the issue of the following message being generated, when committing the configuration:

error: /config/juniper.conf+: was not properly closed: No such file or directory error: commit failed: commit to file failed during export to /config/juniper.conf+
Symptoms:

This error message is generated when trying to commit a configuration. After this error message is generated, the configuration will not be committed and you will not be able to proceed further with the configuration.

Cause:

At times, a file is generated in the /config directory, which may cause the above error message. Also, this error message is generated if the partition is corrupted.

Solution:

At first, if you are not sure what is causing this issue, perform the following procedure:

  1. Run the following command (it is recommended to take a backup of the local workstation, before executing this command):

    show configuration | no-more | save current-config

  2. start shell user root <enter password>

  3. . cd /config

  4. rm -f juniper.conf+

  5. Exit the shell.

  6. Enter the configuration mode, perform load override current-config, and commit.

If the above procedure is not helpful, perform the following procedure:

SRX:

  1. Take a USB stick and plug it in a working device.

  2. Run the request system snapshot media usb partition command.

  3. When you have a snapshot of the working device on the USB stick, it can be plugged into the device that has the issue.

  4. Run the request system reboot media usb command to verify if the snapshot is working on the device that has the issue.

  5. Finally, you can save the snapshot via the request system snapshot media internal partition command.

  6. The device should now work normally.

EX/QFX:

If the above procedure is not helpful then, perform Format install to recover the Switch.

Related Links

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