Send netdisco-users mailing list submissions to
        netdisco-users@lists.sourceforge.net

To subscribe or unsubscribe via the World Wide Web, visit
        https://lists.sourceforge.net/lists/listinfo/netdisco-users
or, via email, send a message with subject or body 'help' to
        netdisco-users-requ...@lists.sourceforge.net

You can reach the person managing the list at
        netdisco-users-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of netdisco-users digest..."
Today's Topics:

   1. Re: netdisco-web fails to bind after upgrade to version
      2.078000 on Debian 11 (Oliver Gorwits)
--- Begin Message ---
Many thanks!

https://github.com/netdisco/netdisco/wiki/Troubleshooting#cant-connect-to-tcp-port-5000-on

On Tue, 3 Sept 2024 at 13:35, Sven Duscha <sven.dus...@tum.de> wrote:

> Hi Oliver,
>
> On 30.08.24 10:45, Oliver Gorwits wrote:
>
> No, I think it unlikely that the IPV default changed; it's been the same
> since 2012. The IPV variable comes from the Net::Server package (socket
> handling) which is in turn used by the Starman package (web server) which
> is in turn used by Netdisco.
>
> My best guess is that Net::Server, when it checks for protocol support in
> the operating system, is still getting the idea that IPv6 is
> enabled/available. Something might have changed in the OS upgrade or
> reinstallation of Netdisco to bring a newer library with different
> behaviour, or there's another setting to set in Debian. I wouldn't know.
>
>
> I see. I would have to check, if I can dig in a Debian 10 version and
> compare it. I'd have to fire up a clone of my netdisco-VM booting the
> backed up disk image. But I am not sure, if I have to the time for that.
>
> And I am not so familiar with Perl packages interna.
>
>
> Perhaps ask Debian support or open a ticket against Net::Server?
> Unfortunately, the Net::Server code isn't easy to follow, and I don't have
> a reproducing system on which to investigate myself, but it's _probably_
> this bit:
> https://metacpan.org/dist/Net-Server/source/lib/Net/Server/Proto.pm#L107,
> in case anyone with a system with the issue wants to have a dig around.
>
>
> Thank you for the hint.
>
>
> Would you be willing/able to add a section to this wiki page with the hint
> for others? https://github.com/netdisco/netdisco/wiki/Troubleshooting
>
>
> This would be my suggestion for the troubleshooting wiki page:
>
>
> When having updated from Debian 10 (Buster) to Debian (Bullseye), in order
> to get Python3 version 3.9.2, because a minimum version of Python3.9 is
> required for netdisco version 2.078000, there is a problem with binding the
> local 5000 port to the server's IP address, if you are using an IPv4
> address.
>
> This can be seen in the netdisco logs, ~/logs/netdisco-web.log, where
> netdisco tries to bind the local TCP port 5000 to an unset IPv6 address:
>
> 2024/08/29-14:55:55 Starman::Server (type Net::Server::PreFork) starting! 
> pid(3862)Resolved [*]:5000 to [::]:5000, IPv6Not including resolved host 
> [0.0.0.0] IPv4 because it will be handled by [::] IPv6Binding to TCP port 
> 5000 on host :: with IPv62024/08/29-14:55:55 Can't connect to TCP port 5000 
> on :: [Invalid argument]  at line 66 in file 
> /home/netdisco/perl5/lib/perl5/Net/Server/Proto/TCP.pm
>
>
> This can be solved by setting the environment variable IPV to 4, before
> starting the netdisco web-frontend:
>
> $ export IPV=4
> $ /home/netdisco/bin/netdisco-web start
>
> The content of IPV can be checked by:
> $ printenv | grep IPV
>
> It is advisable to set the IPV environment variable in your netdisco
> user's .bashrc source script.
>
>
>
>
> Best wishes,
>
> Sven
>
>
> --
> Sven Duscha
> Deutsches Herzzentrum München
> TUM Universitätsklinikum
> Lazarettstraße 36
> 80636 München
> +49 89 1218 2602
>
> _______________________________________________
> Netdisco mailing list
> netdisco-users@lists.sourceforge.net
> https://sourceforge.net/p/netdisco/mailman/netdisco-users/

--- End Message ---
_______________________________________________
Netdisco mailing list - Digest Mode
netdisco-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/netdisco-users

Reply via email to