ntop / ntopng

Web-based Traffic and Security Network Traffic Monitoring
http://www.ntop.org
GNU General Public License v3.0
6.31k stars 658 forks source link

ntopng 6.2 as Docker container on Synology NAS not working #8798

Closed G-3-3-R-T closed 2 weeks ago

G-3-3-R-T commented 3 weeks ago

Environment: Synology DS1815+ with DSM 7.1.1 Docker version 20.10.3-1308 Interface: bond0

What happened: In the past it has worked and I recenly noticed that it does not work anymore.

If I look in the logs I see that ntop always aborts with this message:

05/Nov/2024 21:04:58 [startup.lua:253] Completed startup.lua

Fatal glibc error: cannot get entropy for arc4random

/run.sh: line 3:    17 Aborted                 (core dumped) ntopng "$@" $NTOP_CONFIG

How did you reproduce it?

This is the Docker compose I use:

version: '3.9'
services: 
 ntopng:
    hostname: ntopng
    image: ntop/ntopng:stable
    container_name: ntopng
    mem_limit: 4g
    cpu_shares: 768
    security_opt:
      - no-new-privileges:true
    restart: on-failure:5
    volumes:
      - /volume1/docker/ntopng:/var/lib/ntopng:rw
    network_mode: host
    command: --community

Debug Information:

05/Nov/2024 21:04:58 [startup.lua:253] Completed startup.lua

Fatal glibc error: cannot get entropy for arc4random

/run.sh: line 3:    17 Aborted                 (core dumped) ntopng "$@" $NTOP_CONFIG
cardigliano commented 3 weeks ago

The latest ntop/ntopng:stable image seems to be working fine for me. I guess it is related to the host OS (I am running on Ubuntu 22.04)

$ sudo docker run -it -v $(pwd)/ntopng.license:/etc/ntopng.license:ro --net=host ntop/ntopng:stable --version Starting redis-server: redis-server. Version: 6.2.241025 [Enterprise/Professional build] GIT rev: 6.2-stable:7ac2e318cdc24b70124c9fb1c32e0d7bfd1ee41b:20241025 Pro rev: r6784 Built on: Ubuntu 24.04.1 LTS

lucaderi commented 2 weeks ago

@G-3-3-R-T If crashing we can provide you with a debug build if you can specify the exact OS distribution you are using

G-3-3-R-T commented 2 weeks ago

@G-3-3-R-T If crashing we can provide you with a debug build if you can specify the exact OS distribution you are using

uname -a Linux DiskStation 3.10.108 #42962 SMP Fri Mar 24 00:28:41 CST 2023 x86_64 GNU/Linux synology_avoton_1515+

cat /proc/version Linux version 3.10.108 (root@build7) (gcc version 8.5.0 (GCC) ) #42962 SMP Fri Mar 24 00:28:41 CST 2023