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: How does netdisco-web resolve its hostname? (Oliver Gorwits)
--- Begin Message ---
Hi Stuart
I wonder if IPv6 is interfering. Perhaps try with IPV=4 environment
variable set?
https://github.com/netdisco/netdisco/wiki/Environment-Variables#ipv
Regards
Oliver.
On Wed, 15 Nov 2023 at 18:27, Stuart Kendrick <stua...@alleninstitute.org>
wrote:
> BRIEF
>
> - How does netdisco-web resolve its hostname?
>
>
>
>
>
> BACKGROUND
>
> - I am currently running NetDisco under CentOS 7.9
> - I have a built a new box running Rocky 9.2 and am installing NetDisco
>
>
>
> DETAIL
>
> On the new box (‘new-server’), when I load the Web front-end:
>
>
>
> [netdisco@new-server ~]$ ~/bin/netdisco-web start
>
> Netdisco Web [Started]
>
> config watcher: watching /home/netdisco/environments for updates.
>
> [netdisco@new-server ~]$
>
>
>
> I see the following in /home/netdisco/logs/netdisco-web.log
>
>
>
> Resolved [*]:5000 to [::]:5000, IPv6
>
> Not including resolved host [0.0.0.0] IPv4 because it will be handled by
> [::] IPv6
>
> Binding to TCP port 5000 on host :: with IPv6
>
> 2023/11/14-10:47:44 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
>
> 2023/11/14-10:47:44 Received QUIT. Running a graceful shutdown
>
> 2023/11/14-10:47:44 Worker processes cleaned up
>
> 2023/11/14-10:47:44 Server closing!
>
>
>
> And nothing is listening on TCP 5000
>
>
>
> [root@new-server ~]# lsof -nP -i:5000
>
> [root@new-server ~]#
>
>
>
> So, examining those logs messages … seems to me that the Web front-end is
> having trouble resolving its hostname …
>
>
>
> If I specify host, the Web front-end loads fine:
>
>
>
> [netdisco@new-server ~]$ bin/netdisco-web start --host 127.0.0.1
>
> Netdisco Web [Started]
>
> config watcher: watching /home/netdisco/environments for updates.
>
> [netdisco@new-server ~]$ bin/netdisco-web stop
>
> config watcher: sending TERM to the web server (pid:411033)...
>
> Netdisco Web [Stopped]
>
> [netdisco@new-server ~]$ bin/netdisco-web start --host new-server
>
> config watcher: watching /home/netdisco/environments for updates.
>
> Netdisco Web [Started]
>
> [netdisco@new-server ~]$
>
>
>
> And I see comforting feedback in the log:
>
>
>
> Binding to TCP port 5000 on host 127.0.0.1 with IPv4
>
> [411034] 2023-11-14 22:52:00 warn App::Netdisco 2.069000 web
>
> [411035] 2023-11-14 22:52:00 warn App::Netdisco 2.069000 web
>
> [411038] 2023-11-14 22:52:00 warn App::Netdisco 2.069000 web
>
> [411037] 2023-11-14 22:52:00 warn App::Netdisco 2.069000 web
>
> [411036] 2023-11-14 22:52:00 warn App::Netdisco 2.069000 web
>
> 2023/11/15-09:39:01 Server closing!
>
> 2023/11/15-09:39:14 Starman::Server (type Net::Server::PreFork) starting!
> pid(445758)
>
> Resolved [ganesh]:5000 to [10.1.2.3]:5000, IPv4
>
> Binding to TCP port 5000 on host 10.1.2.3with IPv4
>
> [445760] 2023-11-15 17:39:14 warn App::Netdisco 2.069000 web
>
> [445759] 2023-11-15 17:39:14 warn App::Netdisco 2.069000 web
>
> [445761] 2023-11-15 17:39:14 warn App::Netdisco 2.069000 web
>
> [445762] 2023-11-15 17:39:14 warn App::Netdisco 2.069000 web
>
> [445763] 2023-11-15 17:39:14 warn App::Netdisco 2.069000 web
>
>
>
> And I can point a browser at the appropriate hostname and get in fine:
>
>
>
>
>
>
>
>
>
> How does netdisco-web figure out what IP address to bind to?
>
>
>
> --sk
>
>
>
> Stuart Kendrick
>
>
> _______________________________________________
> 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