Closed gdha closed 1 year ago
$ apt-file search /usr/bin/netstat
netstat-nat: /usr/bin/netstat-nat
We did rebuild the container (version v1.5) including netstat-nat (1.4.10-3build1).
After commenting out the resources in the values.yaml
file the pod does not crash anymore.
$ kubectl logs -n ntopng ntopng-7d5d578657-8q4w4
Starting redis-server: redis-server.
03/Mar/2023 13:59:29 [Ntop.cpp:1902] Setting local networks to 127.0.0.0/8
03/Mar/2023 13:59:29 [Redis.cpp:127] Successfully connected to redis 127.0.0.1:6379@0
03/Mar/2023 13:59:29 [Redis.cpp:127] Successfully connected to redis 127.0.0.1:6379@0
03/Mar/2023 13:59:29 [PcapInterface.cpp:93] Reading packets from interface veth9604eace...
03/Mar/2023 13:59:29 [Ntop.cpp:1996] Registered interface veth9604eace [id: 1]
03/Mar/2023 13:59:29 [PcapInterface.cpp:93] Reading packets from interface vethc202a8fa...
03/Mar/2023 13:59:29 [Ntop.cpp:1996] Registered interface vethc202a8fa [id: 2]
sh: 1: netstat: not found
03/Mar/2023 13:59:29 [PcapInterface.cpp:93] Reading packets from interface eth0...
03/Mar/2023 13:59:29 [Ntop.cpp:1996] Registered interface eth0 [id: 3]
sh: 1: netstat: not found
03/Mar/2023 13:59:30 [PcapInterface.cpp:93] Reading packets from interface cni0...
03/Mar/2023 13:59:30 [Ntop.cpp:1996] Registered interface cni0 [id: 4]
sh: 1: netstat: not found
03/Mar/2023 13:59:30 [PcapInterface.cpp:93] Reading packets from interface flannel.1...
03/Mar/2023 13:59:30 [Ntop.cpp:1996] Registered interface flannel.1 [id: 5]
03/Mar/2023 13:59:30 [PcapInterface.cpp:93] Reading packets from interface veth400c1ee1...
03/Mar/2023 13:59:30 [Ntop.cpp:1996] Registered interface veth400c1ee1 [id: 6]
03/Mar/2023 13:59:30 [PcapInterface.cpp:93] Reading packets from interface veth6a939c05...
03/Mar/2023 13:59:30 [Ntop.cpp:1996] Registered interface veth6a939c05 [id: 7]
03/Mar/2023 13:59:30 [PcapInterface.cpp:93] Reading packets from interface veth1db4bb5e...
03/Mar/2023 13:59:30 [Ntop.cpp:1996] Registered interface veth1db4bb5e [id: 8]
03/Mar/2023 13:59:30 [PcapInterface.cpp:93] Reading packets from interface vethf17156a5...
03/Mar/2023 13:59:30 [Ntop.cpp:1996] Registered interface vethf17156a5 [id: 9]
03/Mar/2023 13:59:31 [PcapInterface.cpp:93] Reading packets from interface vethb6e1c3b6...
03/Mar/2023 13:59:31 [Ntop.cpp:1996] Registered interface vethb6e1c3b6 [id: 10]
03/Mar/2023 13:59:31 [PcapInterface.cpp:93] Reading packets from interface vetha2fcf6a6...
03/Mar/2023 13:59:31 [Ntop.cpp:1996] Registered interface vetha2fcf6a6 [id: 11]
03/Mar/2023 13:59:31 [PcapInterface.cpp:93] Reading packets from interface veth90a9abe8...
03/Mar/2023 13:59:31 [Ntop.cpp:1996] Registered interface veth90a9abe8 [id: 12]
03/Mar/2023 13:59:31 [PcapInterface.cpp:93] Reading packets from interface veth2d517a35...
03/Mar/2023 13:59:31 [Ntop.cpp:1996] Registered interface veth2d517a35 [id: 13]
03/Mar/2023 13:59:31 [PcapInterface.cpp:93] Reading packets from interface veth0046db88...
03/Mar/2023 13:59:31 [Ntop.cpp:1996] Registered interface veth0046db88 [id: 14]
03/Mar/2023 13:59:31 [PcapInterface.cpp:93] Reading packets from interface vethb27ba95a...
03/Mar/2023 13:59:31 [Ntop.cpp:1996] Registered interface vethb27ba95a [id: 15]
03/Mar/2023 13:59:31 [PcapInterface.cpp:93] Reading packets from interface vethe869c189...
03/Mar/2023 13:59:31 [Ntop.cpp:1996] Registered interface vethe869c189 [id: 16]
03/Mar/2023 13:59:32 [PcapInterface.cpp:93] Reading packets from interface veth771de371...
03/Mar/2023 13:59:32 [Ntop.cpp:1996] Registered interface veth771de371 [id: 17]
03/Mar/2023 13:59:32 [PcapInterface.cpp:93] Reading packets from interface vethfa1a4434...
03/Mar/2023 13:59:32 [Ntop.cpp:1996] Registered interface vethfa1a4434 [id: 18]
03/Mar/2023 13:59:32 [PcapInterface.cpp:93] Reading packets from interface lo...
03/Mar/2023 13:59:32 [Ntop.cpp:1996] Registered interface lo [id: 19]
sh: 1: netstat: not found
03/Mar/2023 13:59:33 [PcapInterface.cpp:93] Reading packets from interface docker0...
03/Mar/2023 13:59:33 [Ntop.cpp:1996] Registered interface docker0 [id: 20]
03/Mar/2023 13:59:33 [main.cpp:308] PID stored in file /var/run/ntopng.pid
03/Mar/2023 13:59:34 [HTTPserver.cpp:1029] HTTPS Disabled: missing SSL certificate /usr/share/ntopng/httpdocs/ssl/ntopng-cert.pem
03/Mar/2023 13:59:34 [HTTPserver.cpp:1031] Please read https://github.com/ntop/ntopng/blob/dev/doc/README.SSL if you want to enable SSL.
03/Mar/2023 13:59:34 [Utils.cpp:563] WARNING: Unable to retain privileges for privileged file writing
03/Mar/2023 13:59:34 [Utils.cpp:592] User changed to ntopng
03/Mar/2023 13:59:34 [HTTPserver.cpp:1198] Web server dirs [/usr/share/ntopng/httpdocs][/usr/share/ntopng/scripts]
03/Mar/2023 13:59:34 [HTTPserver.cpp:1201] HTTP server listening on 3000
03/Mar/2023 13:59:36 [main.cpp:390] Working directory: /var/lib/ntopng
03/Mar/2023 13:59:36 [main.cpp:392] Scripts/HTML pages directory: /usr/share/ntopng
03/Mar/2023 13:59:36 [Ntop.cpp:403] Welcome to ntopng aarch64 v.3.8.190813 - (C) 1998-18 ntop.org
03/Mar/2023 13:59:36 [Ntop.cpp:717] Adding 127.0.0.1/32 as IPv4 interface address for lo
03/Mar/2023 13:59:36 [Ntop.cpp:725] Adding 127.0.0.0/8 as IPv4 local network for lo
03/Mar/2023 13:59:36 [Ntop.cpp:717] Adding 192.168.0.205/32 as IPv4 interface address for eth0
03/Mar/2023 13:59:36 [Ntop.cpp:725] Adding 192.168.0.0/24 as IPv4 local network for eth0
03/Mar/2023 13:59:36 [Ntop.cpp:717] Adding 172.17.0.1/32 as IPv4 interface address for docker0
03/Mar/2023 13:59:36 [Ntop.cpp:725] Adding 172.17.0.0/16 as IPv4 local network for docker0
03/Mar/2023 13:59:36 [Ntop.cpp:717] Adding 10.42.4.0/32 as IPv4 interface address for flannel.1
03/Mar/2023 13:59:36 [Ntop.cpp:725] Adding 10.42.4.0/32 as IPv4 local network for flannel.1
03/Mar/2023 13:59:36 [Ntop.cpp:717] Adding 10.42.4.1/32 as IPv4 interface address for cni0
03/Mar/2023 13:59:36 [Ntop.cpp:725] Adding 10.42.4.0/24 as IPv4 local network for cni0
03/Mar/2023 13:59:36 [Ntop.cpp:744] Adding fd28:f4dd:39e1:0:dea6:32ff:fe6a:a0de/128 as IPv6 interface address for eth0
03/Mar/2023 13:59:36 [Ntop.cpp:753] Adding fd28:f4dd:39e1:0:dea6:32ff:fe6a:a0de/64 as IPv6 local network for eth0
03/Mar/2023 13:59:36 [Ntop.cpp:744] Adding 2a02:a03f:837b:a800:dea6:32ff:fe6a:a0de/128 as IPv6 interface address for eth0
03/Mar/2023 13:59:36 [Ntop.cpp:753] Adding 2a02:a03f:837b:a800:dea6:32ff:fe6a:a0de/64 as IPv6 local network for eth0
03/Mar/2023 13:59:36 [Ntop.cpp:744] Adding fe80::dea6:32ff:fe6a:a0de/128 as IPv6 interface address for eth0
03/Mar/2023 13:59:36 [Ntop.cpp:753] Adding fe80::dea6:32ff:fe6a:a0de/64 as IPv6 local network for eth0
03/Mar/2023 14:00:15 [PeriodicActivities.cpp:72] Started periodic activities loop...
03/Mar/2023 14:00:16 [PeriodicActivities.cpp:113] Each periodic activity script will use 5 threads
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface veth9604eace [id: 1]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface vethc202a8fa [id: 2]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface eth0 [id: 3]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface cni0 [id: 4]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface flannel.1 [id: 5]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface veth400c1ee1 [id: 6]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface veth6a939c05 [id: 7]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface veth1db4bb5e [id: 8]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface vethf17156a5 [id: 9]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface vethb6e1c3b6 [id: 10]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface vetha2fcf6a6 [id: 11]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface veth90a9abe8 [id: 12]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface veth2d517a35 [id: 13]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface veth0046db88 [id: 14]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface vethb27ba95a [id: 15]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface vethe869c189 [id: 16]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface veth771de371 [id: 17]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface vethfa1a4434 [id: 18]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface lo [id: 19]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2577] Started packet polling on interface docker0 [id: 20]...
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2007] Invalid packet received [len: 2201][max len: 1468].
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K vethb6e1c3b6 gro off gso off tso off
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2007] Invalid packet received [len: 4162][max len: 1468].
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2007] Invalid packet received [len: 4188][max len: 1468].
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K cni0 gro off gso off tso off
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K flannel.1 gro off gso off tso off
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2007] Invalid packet received [len: 3037][max len: 1518].
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K eth0 gro off gso off tso off
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2007] Invalid packet received [len: 2764][max len: 1468].
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:00:16 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K vethfa1a4434 gro off gso off tso off
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2007] Invalid packet received [len: 2862][max len: 1468].
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K vethc202a8fa gro off gso off tso off
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2007] Invalid packet received [len: 5658][max len: 1468].
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K veth2d517a35 gro off gso off tso off
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2007] Invalid packet received [len: 2862][max len: 1468].
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K vethf17156a5 gro off gso off tso off
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2007] Invalid packet received [len: 4162][max len: 1468].
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:00:17 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K vetha2fcf6a6 gro off gso off tso off
03/Mar/2023 14:00:29 [NetworkInterface.cpp:2007] Invalid packet received [len: 6018][max len: 1468].
03/Mar/2023 14:00:29 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:00:29 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K veth90a9abe8 gro off gso off tso off
03/Mar/2023 14:00:44 [NetworkInterface.cpp:2007] Invalid packet received [len: 2764][max len: 1468].
03/Mar/2023 14:00:44 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:00:44 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K vethe869c189 gro off gso off tso off
03/Mar/2023 14:08:38 [NetworkInterface.cpp:2007] Invalid packet received [len: 5658][max len: 1468].
03/Mar/2023 14:08:38 [NetworkInterface.cpp:2008] WARNING: If you have TSO/GRO enabled, please disable it
03/Mar/2023 14:08:38 [NetworkInterface.cpp:2010] WARNING: Use sudo ethtool -K vethb27ba95a gro off gso off tso off
However, the output still shows netstat not found, but the application seems to work well.
The docker image works fine (no crash), but when we try the same after the kubernetes helm did run successfully we get a nice admin login screen, but the log from the pod shows that it got killed immediately as seen from below output:
The container image showed
netstat
executable not found and why was the ntopng process killed (perhaps lack of resources?)