Remote User Account Transfer Error: Bad address length for Socket

ctroyp123

Registered
Nov 20, 2017
3
0
1
EDT
cPanel Access Level
Website Owner
I am receiving an error (twice now) when trying to migrate from one *Daddy VPS to another *Daddy VPS.
Bad address length for Socket::inet_ntop on AF_INET6; got 4, should be 16 at /usr/local/cpanel/Cpanel/Ips.pm line 49.

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.
I do not have IPV6 configured on the source or destination VPS or accounts. Using WHM v68.0.14 and CentOS7.

Is there a way to get around the issue? Is IPV6 required to be configured for the accounts?
 

ctroyp123

Registered
Nov 20, 2017
3
0
1
EDT
cPanel Access Level
Website Owner
More info:

The transfer created a ~15GB file as the backup on the source. It was copied to the destination server and the restore process completed, but failed at the end with the aforementioned error. Point being that it appears that the transfer was working and effectively completed until it hits the IPv6 issue.

Again, IPv6 is not configured or desired for either source or the destination account.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

There's a thread on this topic at:

Bad address length for Socket transfer tool error

Per that thread, IPv6 kernel support was disabled. It must be enabled per our documentation at:

Installation Guide - System Requirements - Version 68 Documentation - cPanel Documentation

IPv6 kernel support
cPanel & WHM and cPanel DNSONLY require that your kernel 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.
Warning:
If your kernel does not include the appropriate IPv6 support, the installation will fail.
Thank you.
 

ctroyp123

Registered
Nov 20, 2017
3
0
1
EDT
cPanel Access Level
Website Owner
Hi Michael! Thanks for the confirmation. I had seen that post, but the OP did not have an answer as to how to make it work. He specifically asked how to enable IPv6, but in my case, I need to just make the family available rather than including it within the kernel.

Would you have any info on the minimum that I need to do to get the AF_INET6 family "available-enough" to get the transfer to complete?

Again, thanks!
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

You mentioned using a GoDaddy VPS. You will need to contact them 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.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
939
22
168
Just noticed this today...

Bad address length for Socket::inet_ntop on AF_INET6

Recently updated CL kernels due to intel CPU issues. Was never a problem before but started happening since updating.

Today I updated to

2.6.32-896.16.1.lve1.4.51.el6.x86_64

Anyone else having this issue since updating to recent kernels? ipv6 seems to be loaded...

lsmod | grep ipv6
ipv6 340741 0
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Recently updated CL kernels due to intel CPU issues. Was never a problem before but started happening since updating.

Today I updated to

2.6.32-896.16.1.lve1.4.51.el6.x86_64

Anyone else having this issue since updating to recent kernels? ipv6 seems to be loaded...
Hi @4u123,

I'm unable to find any additional reports of this issue from customers updating to the new CloudLinux 6 kernel (it was published on January 18th, 2018). Could you open a support ticket so we can take a closer look?

Thank you.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
939
22
168
Interestingly it only seems to be happening on one server. I'll keep looking.
 

4u123

Well-Known Member
PartnerNOC
Jan 2, 2006
939
22
168
Thanks Dave I noticed that post. if you're referring to the presence of some settings in /etc/modprobe.d/ipv6.conf - that file doesn't exist on my servers, they are mostly CentOS 6 converted to CL. I'm not experiencing any issues with this server other than the above error but I'm concerned enough to raise a ticket if I can't get it resolved within 24 hours. The problem is that I'm getting this error in a third party backup addon, although it seems to be using the cpanel process to perform a restore. I'll keep looking.