Skip to main content

IP addresses/netmask screwed up

Comments

10 comments

  • cPanelMichael
    Hello :) Is this server setup on a NAT environment? If so, try running the following command and let us know if it helps:
    /scripts/build_cpnat
    Thank you.
    0
  • jndawson
    ]Hello :) Is this server setup on a NAT environment? If so, try running the following command and let us know if it helps:
    /scripts/build_cpnat
    Thank you.

    No, not a NAT environment, but ran the script anyway:
    [ root@cp1 system># /scripts/build_cpnat info [build_cpnat] 208.110.131.31 => 208.110.131.31 info [build_cpnat] All publicly routeable addresses are the same as the local address. Not a NAT system. Can't use an undefined value as a HASH reference at /usr/local/cpanel/Cpanel/NAT/Object.pm line 54.
    0
  • cPanelMichael
    Does /var/cpanel/cpnat exist on your system? If so, and if you are not on a NAT environment, please delete this file and let us know if the issue persists. Thank you.
    0
  • jndawson
    ]Does /var/cpanel/cpnat exist on your system? If so, and if you are not on a NAT environment, please delete this file and let us know if the issue persists. Thank you.

    That did it - thanks. I figured it would be something simple like that. Sure beats un-tarring the system backup directories to try to figure out what needs to be changed/removed. I'd suggest an easier method to roll back to previous configurations from system backups might be a good idea.
    0
  • cPanelMichael
    I am happy to see the issue is now resolved. Feel free to open a feature request for your system rollback idea via: Submit A Feature Request Thank you.
    0
  • Ayodeji Ibrahim
    I have the same issue, here is what I got
    Can't use an undefined value as a HASH reference at /usr/local/cpanel/Cpanel/NAT/Object.pm line 54. at /usr/local/cpanel/Cpanel/NAT/Object.pm line 54. Cpanel::NAT::Object::load_file(Cpanel::NAT::Object=HASH(0x5daa510)) called at /usr/local/cpanel/Cpanel/NAT/Object.pm line 27 Cpanel::NAT::Object::new("Cpanel::NAT::Object") called at /usr/local/cpanel/Cpanel/NAT.pm line 20 Cpanel::NAT::cpnat() called at /usr/local/cpanel/Cpanel/NAT.pm line 29 Cpanel::NAT::get_public_ip("188.40.77.79") called at whostmgr
    I also tried to restore from backup but I got the same error as below Warning: The system failed to reinstall the MySQL database "default_freshout" as "default_freshout" because of an error: Failed to grant "default" access to "default_freshout": Can't use an undefined value as a HASH reference at /usr/local/cpanel/Cpanel/NAT/Object.pm line 54.
    I ran the code provided above but it did not solve the issue I need help...
    0
  • Ayodeji Ibrahim
    Just a follow up, I ran /scripts/build-cpnat and this is what I got root@server [~]# /scripts/build_cpnat info [build_cpnat] 188.40.77.79 => 188.40.77.79 info [build_cpnat] All publicly routeable addresses are the same as the local address. Not a NAT system. Can't use an undefined value as a HASH reference at /usr/local/cpanel/Cpanel/NAT/Object.pm line 54. root@server [~]#
    And the /var/cpanel/cpnat does not exist, I am not on NAT
    0
  • cPanelMichael
    Are you sure "/var/cpanel/cpnat" does not exist on this system? The error message you posted often occurs when this file exists on a system that does not utilize a NAT environment. Thank you.
    0
  • Ayodeji Ibrahim
    I am very sure, it is probably located on another path, can't find anything like it in /var/cpanel/cpnat
    0
  • cPanelMichael
    Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome. Thank you.
    0

Please sign in to leave a comment.