Menu

#5379 Undefined subroutine @miniserv::inet_ntop

1.940
closed-fixed
nobody
None
5
2020-06-13
2020-06-09
No

Hi,
my installation consists of Webmin 1.941 on opensuse Leap 15.1 with perl v5.26.1 and to be started by xinetd. When I call http://localhost/10000 I get the error message "connection reset by peer" and /var/webmin/miniserv.error contains ten lines saying :
Undefined subroutine &miniserv::inet_ntop called at /usr/libexec/webmin/miniserv.pl line 3876.
Searching the net I couldn't find any applicable info but the hint to test if the Socket library is installed. So I ran "perl -e "use Socket;" and it return a zero exit status which means the Socket lib is properly installed.
Please advise how to get this done.
Many thanks for your help ... Michael Vinnemeier

PS: Pls find attached the miniserf.conf used

1 Attachments

Discussion

  • Ilia

    Ilia - 2020-06-09

    Hi,

    What about IO::Socket::INET6 package?

     
  • Jamie Cameron

    Jamie Cameron - 2020-06-10

    Do you have the full version of Perl installed there? It's odd that the inet_ntop function is missing, when it's supported to be part of the Socket module.

     
  • Michael Vinnemeier

    Strange things happen but Webmin works now : at first sight the problem is with xinetd which starts any service with a prefix of "::ffff:" added to an ip address. I think ths shouldnt happen since IPv6 is not enabled. Xinetd has just two services enabled : vsftpd and webmin. While vsftpd worls fine with an ipv6-looking address, webmin doesnt. To make Webmin run I added the line "flags = IPV4" to its service description which forces xinetd to use an ipv4 address and Webmin comes up.
    Attached are some lines from syslog to show details.
    Thanks for your help.

    Regards ... Michael

     
  • Michael Vinnemeier

    The missing file.... Sorry.

     
  • Michael Vinnemeier

    By the way, I did install Socket6 and IO::Socket::INET6 as suggested but with no success.

     
  • Jamie Cameron

    Jamie Cameron - 2020-06-11

    Ok, the issue here is that Webmin doesn't know it's operating in IPv6 mode due to being behind inetd. The work-around is to edit /etc/webmin/miniserv.conf and add the line ipv6=1

     
  • Michael Vinnemeier

    Ok, it works. I reinstalled only Socket6, added the ipv6=1 line and removed "flags = IPV4" rom the xinetd service description and Webmin works like a charm... Thank you very much.

     
  • Jamie Cameron

    Jamie Cameron - 2020-06-13
    • status: open --> closed-fixed
     

Log in to post a comment.