Description

 

While troubleshooting, we realized that one QFX5120-32C is showing an error when trying to commit. 

error: error copying files
(/config/juniper.conf.3.gz->/var/db/config/juniper.conf.4.gz): No such
file or directory

"error: rotation of old files failed"

 

 

Symptoms

  • The above errors prevent the QFX to commit the changes in the configuration
  • The issue reported is known as the disk space in /var/db/config.

 

Solution

 

  • Confirm the issue unable to commit:
root@switch% mgd -i
error: error copying files
(/config/juniper.conf.3.gz->/var/db/config/juniper.conf.4.gz): No such
file or directory

"error: rotation of old files failed"

 

  • We transferred the information stored in /var/db/config* as a backup in /var/tmp/
root@switch% cp /config/db/config/* /var/tmp/
  • We deleted and created again the /var/db/config directory.
root@switch% rm -rf  /config/db/config/* 
  • After that, the commitment was successful.
root@switch%  exit
root@switch% mgd -i

 

 

 

 

If the above solution does not work, please delete any old files and run the below command to clear up space. This will resolve the issue -

root@switch> request system storage cleanup


Modification History

2025-03-25: Additional solution added.

2023-10-02

Related Information