Symptoms
WHM >> Accounts Functions >> Change Site's IP Address fails to change the IP address for a specific account with the following errors:
API failure: Failed to read data: Is a directory at /usr/local/cpanel/Cpanel/LoadFile/ReadFast.pm line 126.\n"
Description
Account related functions depend on having a correct "userdata" file for the corresponding account within /var/cpanel/users/$account where $account is the username of the cPanel account
/var/cpanel/users/$account
To fix the error, make sure the account has a valid IP field within the file:
egrep IP /var/cpanel/users/$account
IP 10.0.0.4
If the account's file is missing the IP address, make sure to edit the file as the root user. You must consider if the server is using a 1:1 NAT configuration or is using direct public IP allocation.
If the server is using 1:1 NAT, the "/var/cpanel/cpnat" file should present, and the IP that should be placed into the "/var/cpanel/users/$account" file is the left one. For example:
cat /var/cpanel/cpnat
172.16.1.19 203.0.113.10
egrep IP /var/cpanel/users/$account
IP 172.16.1.19
If the server is using direct public IP allocation, configure the proper IP address, usually the main IP for the server unless the account was configured to use a dedicated IP.
Comments
0 comments
Article is closed for comments.