When attempting to add a new IP address through the ISPmanager interface (Settings → IP Addresses section), you might encounter the following error message:
Error in IP address module. IP address "x.x.x.x" is already in use.
This issue occurs when an IP address was previously added to the system but wasn't properly removed by the control panel. The database entry remains, preventing the address from being added again.
Connect to your server via SSH.
Launch SQLite and open the IP address module database:
sqlite3 /usr/local/mgr5/etc/ispmgr_ipdb.db
Check for the problematic address in the database tables:
select * from ips;
select * from ranges;
If the IP is present, you'll see entries similar to:
2|123.345.678.901|2|example.com.|off|off2|123.345.678.901|||2|alias
⚠️ Important: Delete entries by their ID (the first number in each line), not by the IP address itself.
Execute the deletion commands, replacing problematic_ip_ID with the actual identifier:
delete from ips where id = "problematic_ip_ID";
delete from ranges where id = "problematic_ip_ID";
Confirm the entries have been removed:
select * from ranges;
select * from ips;
.quit
Terminate the control panel process:
/usr/local/mgr5/sbin/mgrctl -m ispmgr exit
Once ISPmanager restarts, you'll be able to add the IP address through the panel interface without errors.