Skip to main content

Bad address length for Socket transfer tool error

Comments

12 comments

  • 24x7server
    Hi, Error of this type generally occurs when you are using a system without an IPv6-enabled kernel. Please check te ----------------------- ----------------------- cPanel & WHM require to have kernel that includes the ipv6 module, or includes that functionality directly within the kernel. If your kernel does not include it in the ipv6 module, the AF_INET6 address family must also be available. Most distributed kernels include this support by default. However, some users of custom kernels may experience problems. ----------------------- ----------------------- Check if your server has IPv6 enabled in the kernel or not..
    0
  • cPWilliamL
    I concur with the previous comment. You can confirm if IPv6 is disabled in the kernel as below:
    # cat /proc/net/if_inet6 00000000000000000000000000000001 01 80 10 80 lo fe80000000000000f8163efffeae37e6 02 40 20 80 eth0
    If no file is found, then IPv6 is disabled.
    0
  • bryan20171116
    The results as below.
    cat: /proc/net/if_inet6: No such file or directory
    How to enable the IPv6 ?
    0
  • cPanelMichael
    How to enable the IPv6 ?

    You will need to contact your VPS hosting provider to see if they support setting up an IPv6-enabled kernel. Note that you don't actually need an IPv6 address, just support for it in the kernel. Thank you.
    0
  • bryan20171116
    If the VPS hosting provider don't support setting up an IPv6-enabled kernel, Is there any way that can solved the issue?
    0
  • cPanelMichael
    If the VPS hosting provider don't support setting up an IPv6-enabled kernel, Is there any way that can solved the issue?

    No, if the server is already upgraded to cPanel version 68, then your VPS provider will need to facilitate support for an IPv6-enabled kernel to ensure cPanel & WHM operate properly. Thank you.
    0
  • WhiteDog
    I am getting a similar error when resetting a DNS zone. I am also missing the file /proc/net/if_inet6 I'm not on a VPS however. The server is running CentOS 6.9 with the standard kernel + KernelCare. Have this issue on multiple servers. Never did anything specific towards IPv6 on these servers. How to resolve this? I assume some parameter just needs to flipped and the server rebooted... EDIT: Just resolved this. In my case it was the file /etc/modprobe.d/ipv6.conf that contained this:
    # Anaconda disabling ipv6 options ipv6 disable=1
    Set to 0 and rebooted... problems solved ! Assume Anaconda is the system the DC used to install the OS at the time.
    0
  • cPanelMichael
    EDIT: Just resolved this. In my case it was the file /etc/modprobe.d/ipv6.conf that contained this:
    # Anaconda disabling ipv6 options ipv6 disable=1
    Set to 0 and rebooted... problems solved ! Assume Anaconda is the system the DC used to install the OS at the time.

    I'm glad to see you were able to solve the issue. Thank you for sharing the outcome.
    0
  • bryan20171116
    I couldn't find the flie ipv.conf at /etc/modprobe.d/ipv6.conf is this cause the issue ?
    0
  • cPanelMichael
    I couldn't find the flie ipv.conf at /etc/modprobe.d/ipv6.conf is this cause the issue ?

    Hello, Is this a VPS? If so, check with your VPS hosting provider to see if it's possible to enable IPv6 support in the kernel. Thank you.
    0
  • Dave Smith
    Just resolved this. In my case it was the file /etc/modprobe.d/ipv6.conf that contained this:
    # Anaconda disabling ipv6 options ipv6 disable=1
    Set to 0 and rebooted... problems solved ! Assume Anaconda is the system the DC used to install the OS at the time.

    Thank you for posting your fix, it worked for us perfectly after hours of head banging. Really appreciated!
    0
  • GilbertoArias
    Hey hello every one! I have a solution, I was figthing with this one month so the solutions that works for me is: just change the origin server account you want to migrate from "automatic" to "Local" this in th MX records using the WHM interface. save changes and... taran... it works. I have to thanks Daniel A from Godaddy IT team support he toldme that so save my migration domines weekend. my origin server has cpanel 66.0.36 version and the new one 68.0.25 and both of them CentOS base 6.9 obviously hosted those VPS with this provider! Try the solution Log Before change: --- Bad address length for Socket::inet_ntop on AF_INET6; got 4, should be 16 at /usr/local/cpanel/Cpanel/Ips.pm line 49. Removing copied archive "/home/cpmove-sanje.tar.gz.part00001" from the local server " Failed: Account Restore Failed: "Account failure: Bad address length for Socket::inet_ntop on AF_INET6; got 4, should be 16 at /usr/local/cpanel/Cpanel/Ips.pm line 49. " --- Log After change: --- Completed TRANSFER: 1 completed, 0 had warnings, and 0 failed. RESTORE: 1 completed, 0 had warnings, and 0 failed. ---
    0

Please sign in to leave a comment.