SOLVED [CPANEL-20560] Update failure with scripts/update_spamassassin_config

gnetwork-cp

Member
Mar 1, 2016
23
6
3
Australia
cPanel Access Level
Root Administrator
I've seen similar threads here, but mine is happening with spamassassin script:

Maintenance ended; however, it did not exit cleanly (256). The following events were logged: “scripts/update_spamassassin_config”. Review the update logs to determine why the update failed.

Error appeared as:
Code:
[2018-05-19 02:34:28 +1000] E [/usr/local/cpanel/scripts/update_spamassassin_config] The “/usr/local/cpanel/scripts/update_spamassassin_config” command (process 2586) reported error number 255 when it ended.
When I ran the script by command line, “/usr/local/cpanel/scripts/update_spamassassin_config”, I got the following output:
Code:
root@server [~]# /usr/local/cpanel/scripts/update_spamassassin_config
warn [update_spamassassin_config] Failed to update neighbor netblocks because of an error:  at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Net/Whois/IANA.pm line 538.
   ...propagated at /usr/local/cpanel/Cpanel/Net/Whois/IP/Cached.pm line 96.

 at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Net/Whois/IANA.pm line 538.
   ...propagated at /usr/local/cpanel/Cpanel/Net/Whois/IP/Cached.pm line 96.
Now I see the referenced IANA.pm line 538 contains the following:
$query{cidr} = [Net::CIDR::range2cidr(uc($query{inet6num} || $query{inetnum}))];

Is the IPV6 query causing a problem? I don't run IPV6!

Any suggestions?
 

cPanelLauren

Product Owner II
Staff member
Nov 14, 2017
13,266
1,304
363
Houston
Hi @gnetwork-cp

That's definitely an unusual error, I've not seen it before. Can you show me the results of the following:

Code:
 ps faux |grep spam[d]
cat /etc/cpspamd.conf
Thanks!
 

gnetwork-cp

Member
Mar 1, 2016
23
6
3
Australia
cPanel Access Level
Root Administrator
Hi @gnetwork-cp

That's definitely an unusual error, I've not seen it before. Can you show me the results of the following:

Code:
 ps faux |grep spam[d]
cat /etc/cpspamd.conf
Thanks!
Here it is:
Code:
root@server [~]#  ps faux |grep spam[d]
root      1459  0.0  4.9 221484 99456 ?        Ss   02:12   0:10 /usr/local/cpanel/3rdparty/perl/526/bin/perl -T -w /usr/local/cpanel/3rdparty/bin/spamd --max-spare=1 --max-children=3 --allowed-ips=127.0.0.1,::1 --pidfile=/var/run/spamd.pid --listen=5
root      1977  0.0  5.8 247604 116172 ?       S    02:12   0:23  \_ spamd child
root@server [~]# cat /etc/cpspamd.conf
maxspare=1
maxchildren=3
I should mention that yesterday I changed my VPS plan with the provider (reduced resources) but still have the same IP address. Could that be a part of the problem?
 

cliveaustin

Registered
Apr 23, 2010
4
0
51
+1
I'm seeing EXACTLY the same issue... any ideas yet?

running the command by hand gives this...

#/usr/local/cpanel/scripts/update_spamassassin_config --verbose

warn [update_spamassassin_config] Failed to update neighbor netblocks because of an error: at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Net/Whois/IANA.pm line 538.

...propagated at /usr/local/cpanel/Cpanel/Net/Whois/IP/Cached.pm line 96.


at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Net/Whois/IANA.pm line 538.

...propagated at /usr/local/cpanel/Cpanel/Net/Whois/IP/Cached.pm line 96.
 

xanadu

Active Member
Sep 25, 2006
27
2
153
We are experiencing the same problem on both our vps with different vendors and different dc's
 

directsupport

Member
Dec 14, 2010
12
0
51
Same exact error same scenario.

CLOUDLINUX 6.9 VPS v70.0.42

Confirmed.

/usr/local/cpanel/scripts/update_spamassassin_config --verbose
warn [update_spamassassin_config] Failed to update neighbor netblocks because of an error: at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Net/Whois/IANA.pm line 538.
...propagated at /usr/local/cpanel/Cpanel/Net/Whois/IP/Cached.pm line 96.

at /usr/local/cpanel/3rdparty/perl/526/lib64/perl5/cpanel_lib/Net/Whois/IANA.pm line 538.
...propagated at /usr/local/cpanel/Cpanel/Net/Whois/IP/Cached.pm line 96.
 

AndrejP

Registered
May 21, 2018
1
0
0
Croatia
cPanel Access Level
Root Administrator
Yup, this seems to break it
$response = Net::Whois::IANA->new()->whois_query( -ip => $address );

GDPR changes causing issues? I didn't read too much into changes which will be introduced to WHOIS systems due to GDPR, but this could be caused by that. Is there any way to not use whois during the update?
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello,

This is solved in cPanel & WHM version 70.0.46:

Fixed case CPANEL-20560: Avoid exception on invalid whois data.

Version 70.0.46 is now published to the CURRENT build tier. We'll update this thread again once it's published to the RELEASE build tier.

Thank you.
 
  • Like
Reactions: cPanelLauren

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,267
463
Hello,

Version 70.0.46 is now published to the RELEASE release tier.

Thank you.