Submitted by intruder on Sat, 03/19/2016 - 18:02
Webmin: 1.791
Virtualmin: 5.01.gpl
Most of the webmin perl jobs (like monitor.pl, awstats.pl, etc.) return following errors in console:
Constant subroutine WebminCore::AF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Socket6.pm line 2.
Prototype mismatch: sub WebminCore::AF_INET6 () vs none at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Socket6.pm line 2.
Constant subroutine WebminCore::PF_INET6 redefined at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Socket6.pm line 2.
Prototype mismatch: sub WebminCore::PF_INET6 () vs none at /usr/lib/perl5/5.8.8/Exporter.pm line 65.
at /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi/Socket6.pm line 2.
Not sure if it makes those jobs broken or not, but this creates some huge email traffic in order to notify user. Especially from /etc/webmin/status/monitor.pl which runs each 5 minutes.
Please advise.
Thank you.
Status:
Closed (fixed)
Comments
Submitted by JamieCameron on Sat, 03/19/2016 - 22:26 Comment #1
It looks like those errors are coming from inside the Socket6 perl module - so I'm not sure if Webmin can do anything to fix them.
Which perl version and/or linux distro version are you running there?
Submitted by intruder on Sun, 03/20/2016 - 09:42 Comment #2
It's pretty old box with CentOS 5.11 32bit. Perl version is v5.8.8 built for i386-linux-thread-multi
As far as I understand, the error appeared after webmin was upgraded in Feb 2016
Submitted by JamieCameron on Sun, 03/20/2016 - 12:12 Comment #3
That's odd, because we didn't change anything related to the Socket6 module in this release.
Submitted by intruder on Sun, 03/20/2016 - 14:49 Comment #4
Did you change anything related to it in your previous release? I wasn't upgrading for a while. And upgraded at least twice during past month or so.
So can you replicate it with perl 5.8.8?
Submitted by JamieCameron on Sun, 03/20/2016 - 19:18 Comment #5
I had a look at the code that uses
AF_INET6
in Webmin, and it hasn't changed since 2010!Submitted by intruder on Tue, 03/22/2016 - 12:19 Comment #6
I see. Ok, I spoke to a few perl developers and they're saying that Socket6 itself was a temporary workaround. So a one should use Socket instead, since it fully supports v6 now.
Submitted by intruder on Sun, 07/24/2016 - 12:01 Comment #7
The issue is still present in Virtualmin 5.03/Webmin 1.801. The scripts like /etc/webmin/virtualmin-awstats/awstats.pl, /etc/webmin/webalizer/webalizer.pl and some others - yield those INET6 errors. Did you try to fix that? Thanks.
Submitted by JamieCameron on Sun, 07/24/2016 - 15:12 Comment #8
The next Webmin release will change all of these from Socket6::PF_INET6() to just PF_INET6() , which should solve this issue.
Submitted by JamieCameron on Sun, 07/24/2016 - 15:12 Comment #9