This article provides insights about error message "Rotation of old files failed." during a commit.
The SRX series device generates the following error message during a commit:
configuration check succeeds
error copying files (/config/juniper.conf.3.gz->/var/db/config/juniper.conf.4.gz): No space left on device
error: rotation of old files failed
The error typically occurs when the storage is full, and Junos is unable to save the current configuration to a backup file. To address this issue, please follow the workaround below.Option 1: By Removing Large fileYou can try to clear the storage by removing large files or perform a storage cleanup. To check and remove large files, follow these steps:1. Access the root user shell:
user@root > start shell user root
2. Run the following command to find large files (greater than 10 MB) and display their sizes:
user@root % sh -c 'find / -size +10485760c 2> /dev/null' | xargs du -h | sort -nr
3. Identify the large files you want to remove and use the rm command, replacing <filename> with the actual filename:
user@root % rm <filename>
Option 2: Perform Storage CleanupTo perform a storage cleanup, use the following command:
user@root > request system storage cleanup