Router1# error: FAIL: errno: 12 after getgrnam: Cannot allocate memory error: 1 error reported by commit scripts error: commit script failure # commit confirmed will be rolled back in less than 1 minute [edit] Commit was not confirmed; automatic rollback complete.
>> Below was seen when going through the interactive logs ==== 01:40:41 commit confirmed 5 was issued
Mar 30 01:40:41 mgd[91958]: UI_CMDLINE_READ_LINE: User 'atorres03', command 'commit confirmed 5 ' Mar 30 01:40:41 mgd[91958]: UI_COMMIT: User 'atorres03' requested 'commit' operation (comment: none) Mar 30 01:40:41 mgd[91958]: UI_COMMIT_PROGRESS: Commit operation in progress: Obtaining lock for commit Mar 30 01:40:41 mgd[91958]: UI_COMMIT_PROGRESS: Commit operation in progress: updating commit revision
==== 01:41:07 commit completed
Mar 30 01:41:07 mgd[91958]: UI_COMMIT_PROGRESS: Commit operation in progress: mgd tracing: disabled Mar 30 01:41:07 mgd[91958]: UI_COMMIT_PROGRESS: Commit operation in progress: commit complete Mar 30 01:41:07 mgd[91958]: UI_COMMIT_COMPLETED: : commit complete
==== Router was waiting for another commit as final commit. During 5-minute period, no second commit was intiated. ==== 01:45:41 second commit was issued at EXACTLY 5mins after the first commit confirmed 5
Mar 30 01:45:41 mgd[91958]: UI_CMDLINE_READ_LINE: User 'atorres03', command 'commit comment "ACL PUSH - CHG0594076" and-quit ' Mar 30 01:45:41 mgd[91958]: UI_COMMIT: User 'atorres03' requested 'commit' operation (comment: ACL PUSH - CHG0594076)
==== The user saw below error on the session
Router1# error: FAIL: errno: 12 after getgrnam: Cannot allocate memory error: 1 error reported by commit scripts error: commit script failure # commit confirmed will be rolled back in less than 1 minute Commit was not confirmed; automatic rollback complete.
==== Second commit failed and mgd rolled back the configuration.
Mar 30 01:46:34 mgd[19499]: UI_COMMIT_NOT_CONFIRMED: Commit was not confirmed; automatic rollback in process
>> We can try to avoid these errors by increasing the amount of memory allocated to commit scripts to accommodate the processing of large configurations. To increase the maximum memory allocated for each executed commit script, configure the max-datasize size statement with an appropriate memory limit in bytes at the [edit system scripts commit] hierarchy level.
eg. set system scripts commit max-datasize 256m (or 512m)
>> Suggested above workaround to the user.