Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't connect to TCP port 4949 on :: [Invalid argument] with default munin-node config "host *" #1625

Open
Perdu opened this issue Jul 2, 2024 · 4 comments

Comments

@Perdu
Copy link

Perdu commented Jul 2, 2024

Describe the bug
My munin-node.service started crashing even though I did not modify the config. The service crashes without displaying any relevant information, but munin-node.log contains:

2024/07/02-17:05:02 Munin::Node::Server (type Net::Server::Fork) starting! pid(739273)
Resolved [*]:4949 to [::]:4949, IPv6
Not including resolved host [0.0.0.0] IPv4 because it will be handled by [::] IPv6
Binding to TCP port 4949 on host :: with IPv6
2024/07/02-17:05:02 Can't connect to TCP port 4949 on :: [Invalid argument]
  at line 66 in file /usr/share/perl5/vendor_perl/Net/Server/Proto/TCP.pm
2024/07/02-17:05:02 Server closing!
shutdown() on unopened socket GEN0 at /usr/lib/perl5/5.38/core_perl/IO/Socket.pm line 327.

Following advices in #1579, I tried modifying the host line in munin-node.conf... And it works again. For some reason, the default host * crashes, but host 127.0.0.1 doesn't.

Desktop (please complete the following information):

  • OS+Distribution Version: arch linux
  • Munin Version: 2.0.76-1
@corbolais
Copy link

Same here.

# cat /etc/debian_version
trixie
# munin-node -V
Version:
This is munin-node v2.0.76

Fixed by using host 0.0.0.0 instead of host *.

thx

@s7m0n
Copy link

s7m0n commented Aug 1, 2024

seeing the same here but apparently using

host *

is only an issue on boot. If i issue a service munin-node restart after boot it works.
Assumption: maybe ipv4 is ready at this time while ipv6 is not yet - and later both are ok.

@baszero
Copy link

baszero commented Aug 12, 2024

I have this config and connections are denied, please help!

log_level 4
log_file /var/log/munin/munin-node.log
pid_file /var/run/munin/munin-node.pid

background 1
setsid 1

user root
group root
ignore_file [\#~]$
ignore_file DEADJOE$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.pod$

address 127.0.0.1
allow ^0\.0\.0\.0/0$

host 0.0.0.0
port 4949

log:
2024/08/12-14:38:45 [16544] Denying connection from: 81.6.44.61

i use version 2

@niclan
Copy link
Contributor

niclan commented Aug 12, 2024

Hi,

allow ^0.0.0.0/0$

allow does string matching. You need allow ^81\.6.\44\.61$. In the docs there is a mention about some module you need to install and then you can use allow_cidr to do network matching.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

5 participants