We made a change on our SRX240 firewall this morning which is simply to update the public ssh key for a system user.
When committing the change, we got the error below:
configuration check succeeds
error: error copying file (/config/juniper.conf.3.gz->/var/db/config/juni[er.conf.4.gz): No space left on device
error: rotation of old files failed
However, the change has been pushed into the LIVE configuration as the user can login to the firewall with the new public key that was set.
But now whenever anyone logs into the configuration mode, if we run "show | compare" it shows the change for the public key (which shows a line for removing the old key and a line for adding the new key).
However if we try to commit any changes, we get the error:
[edit system login user John authentication] 'ssh-rsa "<ssh key>" warning: statement does not exist [edit system login user John authentication] 'ssh-rsa' warning: patch removes statement that is not empty
It seems as though the live configuration and the candidate configuration is out of sync.
We cleared space on the firewall by running the system storage cleanup command. So now its trying to get the config back in sync.
If anyone can advise that would be really helpful.