Description

Commit will fail when the commit script which is referenced doesn't exist in the commit script database  


root@router# commit 

re0: 

error: commit script failed: firewall_xxxx_xxxx.py

error: 1 error reported by commit scripts

error: commit script failure



Symptoms

  1. Commit failures can be noticed.

Solution

Verify the presence of file which is causing the commit failure at the  /var/db/scripts/commit 

 

For EX:

root@router# run file list /var/db/scripts/commit 




/var/db/scripts/commit:

services/




{master}[edit]

root@router#




As expected, there is no commit script named firewall_xxxx_xxxx.py present at /var/db/scripts/commit 




Please add the script firewall_xxxx_xxxx.py to the location /var/db/scripts/commit and commit will succeed.




root@router# run start shell 

[vrf:none] root@router:~# cd /var/db/scripts/commit

[vrf:none] root@router:/var/db/scripts/commit# touch firewall_xxxx_xxxx.py

[vrf:none] root@router:/var/db/scripts/commit# ls

firewall_xxxx_xxxx.py

services

[vrf:none] root@router:/var/db/scripts/commit# exit




root@router# commit 

re0: 

configuration check succeeds

re1: 

commit complete

re0: 

commit complete


 

 

Modification History

2025-05-30 : Article Created