"Can't locate Net/LibIDN.pm (DNSONLY) [case 59129]

Archmactrix

Well-Known Member
Jan 20, 2012
138
2
68
cPanel Access Level
Root Administrator
After cPanel upgrade (11.32.2.15) I got this message from my server with this subject line:

Cron <[email protected]> /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl --notify

Code:
Can't locate Net/LibIDN.pm in @INC (@INC contains: /usr/local/cpanel /usr/local/cpanel/cpaddons /usr/local/cpanel /usr/local/cpanel/whostmgr/docroot/cgi /usr/local/cpanel/cpaddons /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at /usr/local/cpanel/Cpanel/Encoder/Punycode.pm line 10.
Compilation failed in require at /usr/local/cpanel/Cpanel/DomainTools.pm line 13.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/DomainTools.pm line 13.
Compilation failed in require at /usr/local/cpanel/Cpanel/CheckData.pm line 8.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/CheckData.pm line 8.
Compilation failed in require at /usr/local/cpanel/Cpanel/cPAddons.pm line 39.
BEGIN failed--compilation aborted at /usr/local/cpanel/Cpanel/cPAddons.pm line 39.
Compilation failed in require at /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl line 12.
BEGIN failed--compilation aborted at /usr/local/cpanel/whostmgr/docroot/cgi/cpaddons_report.pl line 12.
I got also one other with this subject line:

[checkperlmodules] The perl module IO::Interactive::Tiny could not be installed.

Code:
This module is required by cPanel, and the system may not function correctly until it is installed, and functional.  Below is the results of the auto-install attempt:

Test Run
==============
Can't locate IO/Interactive/Tiny.pm in @INC (@INC contains: /usr/local/lib/perl5/5.8.8/x86_64-linux /usr/local/lib/perl5/5.8.8 /usr/local/lib/perl5/site_perl/5.8.8/x86_64-linux /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl .) at - line 1.
BEGIN failed--compilation aborted at - line 1.


Installer Run
==============
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
re: "Can't locate Net/LibIDN.pm (DNSONLY) [case 59129]

Your best bet here would be to open a ticket.

However, by chance do you have two diffrent version of perl installed ?

Code:
ls -l /usr/bin/perl /usr/local/bin/perl
 

Archmactrix

Well-Known Member
Jan 20, 2012
138
2
68
cPanel Access Level
Root Administrator
re: "Can't locate Net/LibIDN.pm (DNSONLY) [case 59129]

Your best bet here would be to open a ticket.

However, by chance do you have two diffrent version of perl installed ?

Code:
ls -l /usr/bin/perl /usr/local/bin/perl
I get this:

Code:
lrwxrwxrwx 1 root root    17 Dec 21 19:31 /usr/bin/perl -> ../local/bin/perl*
-rwxr-xr-x 2 root root 17326 Dec 21 19:31 /usr/local/bin/perl*
 

Archmactrix

Well-Known Member
Jan 20, 2012
138
2
68
cPanel Access Level
Root Administrator
re: "Can't locate Net/LibIDN.pm (DNSONLY) [case 59129]

This seems to be solved now as I got report for upcp this evening that says that these two that I mentioned, was installed successfully.

Even csf control panel is up now (internal server error 500 for the page, after the upgrade yesterday).
 

brainyron

Member
Apr 7, 2008
19
0
51
Seattle, WA
cPanel Access Level
Root Administrator
Net::LibIDN bug

This afternoon I had a client report to me that he was unable to create a new subdomain for his site. It wasn't erroring out for him but any attempt to access the site was dumping to the cPanel default page. I checked the cPanel error log and found that /usr/local/cpanel/scripts/ensure_vhost_includes was failing due to Net::LibIDN being missing. I tried to build the Net::LibIDN module but it refused to install, insisting that I did not have GNU LibIDN installed on the system. I verified that the system did indeed have LibIDN and LibIDN-Devel installed but could not get the cPanel module installer to install this module, always failing with the same error. Even an upcp --force failed to fix the issue. Finally I manually downloaded the package for Net::LibIDN and was able to get this installed the first time around.

I'm now in the process of cleaning up a bunch of bad entries in my httpd.conf due to this issue.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Re: Net::LibIDN bug

What version of cPanel are you using?

Code:
cat /usr/local/cpanel/version
We had a case (50132) where this was reported as occurring, but it should be fixed as of 11.31.0.8 and higher.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
40
248
somewhere over the rainbow
cPanel Access Level
Root Administrator
Re: Net::LibIDN bug

STABLE is on 11.30.6.6 right now:

Downloads - cPanel Inc.

You are likely using the RELEASE tier, which can be determined in WHM > Update Preferences area (or by checking /etc/cpupdate.conf file for the CPANEL= line). Anyway, based on your version, that issue should have been fixed.
 

lorio

Well-Known Member
Feb 25, 2004
313
21
168
cPanel Access Level
Root Administrator
Re: Net::LibIDN bug

STABLE is on 11.30.6.6 right now:
Anyway, based on your version, that issue should have been fixed.
Is that fixed on the cpanel dns only branch too?
11.32.2.18 under Centos 5.8 is showing this problem with cpanel dns only.
 

dexus

Well-Known Member
Jan 14, 2006
180
11
168
cPanel Access Level
Root Administrator
re: "Can't locate Net/LibIDN.pm (DNSONLY) [case 59129]

Yes, this issue exist on cPanel "DNS Only" from today. Here are the steps to fix the problem...

Code:
# yum install libidn libidn-devel
# /scripts/perlinstaller Net::LibIDN
 

lorio

Well-Known Member
Feb 25, 2004
313
21
168
cPanel Access Level
Root Administrator
Re: Net::LibIDN bug

Just got the same issue on DNS only now that this has been rolled out to stable. Did you submit a ticket?
No, i didn't submit a ticket. I fixed the problem via yum and the related perl libs. The solution posted above is the better idea. It all depends on your OS.
 

inteliport

Member
Dec 31, 2002
10
0
151
re: "Can't locate Net/LibIDN.pm (DNSONLY) [case 59129]

Yes, this issue exist on cPanel "DNS Only" from today. Here are the steps to fix the problem...

Code:
# yum install libidn libidn-devel
# /scripts/perlinstaller Net::LibIDN
This corrected the issue on a DNS only box...

Thanks
 

Dathorn_ADT

Active Member
Nov 16, 2002
41
1
158
cPanel Access Level
Root Administrator
re: "Can't locate Net/LibIDN.pm (DNSONLY) [case 59129]

It is indeed a trivial fix (our servers were only missing the devel package). I was just wondering if you had submitted a ticket so that they could resolve this in their build. Surely with all of these additional reports they can finally take a look and get it resolved....
 

dexus

Well-Known Member
Jan 14, 2006
180
11
168
cPanel Access Level
Root Administrator
re: "Can't locate Net/LibIDN.pm (DNSONLY) [case 59129]

It is indeed a trivial fix (our servers were only missing the devel package). I was just wondering if you had submitted a ticket so that they could resolve this in their build. Surely with all of these additional reports they can finally take a look and get it resolved....
If you are asking me, no I didn't submited ticket. I hope that cPanelTristan is following this discussion so he will probably notify the developers...
 

cPanelNick

Administrator
Staff member
Mar 9, 2015
3,481
35
208
cPanel Access Level
DataCenter Provider
re: "Can't locate Net/LibIDN.pm (DNSONLY) [case 59129]

libidn-devel is installed from /usr/local/cpanel/scripts/sysup. Are there any indications of failure in your update logs in /var/cpanel/upatelogs?


Code:
# grep libidn-devel /usr/local/cpanel/scripts/sysup
      libidn-devel
Code:
# /usr/local/cpanel/scripts/sysup
centos 5 (Linux) detected.
All Needed RPMS are installed.
 

dexus

Well-Known Member
Jan 14, 2006
180
11
168
cPanel Access Level
Root Administrator
re: "Can't locate Net/LibIDN.pm (DNSONLY) [case 59129]

No, I don't see any attempts to install libidn-devel in update logs. Only attempts to install Net::LibIDN perl module which failed because of missing idn library.
 

Dathorn_ADT

Active Member
Nov 16, 2002
41
1
158
cPanel Access Level
Root Administrator
re: "Can't locate Net/LibIDN.pm (DNSONLY) [case 59129]

No, I don't see any attempts to install libidn-devel in update logs. Only attempts to install Net::LibIDN perl module which failed because of missing idn library.
Same. Yum doesn't appear to run at all during our upcps. We always run it manually to apply OS updates on our DNS only servers. I'm guessing this is a legacy issue from when you had the ability to disable automatic updates in the WHM interface on DNS only.