When adding many interfaces and committing, the error "Phase 2 commit failed: Error: Error pre-installing config" is displayed.
Symptom
When adding many interfaces and committing, the error "Phase 2 commit failed: Error: Error pre-installing config" is displayed.
# commit
Commit job 8 is in progress. Use Ctrl+C to return to command prompt
..............98%...........100%
Phase 2 commit failed: Error: Error pre-installing config
failed to handle CONFIG_COMMIT
(Module: device)
Configuration committed successfully
Local configuration size: 541 KB
Predefined configuration size: 17 MB
Merged configuration size(local, panorama pushed, predefined): 21 MB
Maximum recommended merged configuration size: 55 MB (38% configured)
Error: Error pre-installing config
failed to handle CONFIG_COMMIT
(Module: device)
Environment
- PA-Series Next-Generation Firewall
- PAN-OS 11.1
Cause
This can be caused by an allocation failure due to insufficient memory for the interface.
Allocation errors are reported in pan_comm_0.log.> tail follow yes mp-log pan_comm_0.log2025-03-25 00:27:04.319 -0700 pan_comm_cfg_callback(pan_host_sysd.c:3214): cfg called on sysd object (cfgpush.*.*.cfg), phase22025-03-25 00:27:04.348 -0700 Error: pan_alloc_nofree(pan_alloc.c:1046): allocated 100659072 of 100662968 bytes. cannot provide 20480 more2025-03-25 00:27:04.348 -0700 Error: pan_ifconfig_d_pre_install(pan_if.c:1285): allocate counter for ethernet1/12 failed
2025-03-25 00:27:04.348 -0700 Error: pan_netconfig_d_pre_install(pan_netconfig_d.c:247): error pre-installing interface config2025-03-25 00:27:04.348 -0700 Error: _handle_CONFIG_COMMIT(pan_host.c:688): pan_cfg_readin() failed2025-03-25 00:27:04.348 -0700 Error: pan_host_handle_msg(pan_host.c:1490): Error pre-installing configfailed to handle CONFIG_COMMIT2025-03-25 00:27:04.348 -0700 Error: pan_comm_handle_cfg(pan_host_sysd.c:1009): error in handling 2: Error pre-installing configfailed to handle CONFIG_COMMIT
2025-03-25 00:27:04.348 -0700 Error: pan_comm_do_cfg_commit_dp(pan_host_sysd.c:1402): pan_comm_handle_cfg() failed2025-03-25 00:27:04.348 -0700 Error: pan_comm_cfg_callback(pan_host_sysd.c:3275): pan_comm_handle_cfg_phase2() failed2025-03-25 00:27:04.348 -0700 pan_comm_cfg_callback(pan_host_sysd.c:3303): cfg callback returns -1, takes 0 sec
Resolution
Please check the maximum number of interfaces supported by the product on the following website.
https://www.paloaltonetworks.com/products/product-selection
If necessary, contact support with the latest tech-support file and details of the work you have performed.