I install greenbone on VM ubuntu 22.04 LTS, by this doc Greenbone Community Containers 22.4 - Greenbone Community Documentation
all ok, this works. But then I try to install on my server VM ubuntu 22.04,
I start docker container by:
docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition up -d
and check log:
docker compose -f $DOWNLOAD_DIR/docker-compose.yml -p greenbone-community-edition logs -f
In log:|
greenbone-community-edition-ospd-openvas-1 | OSPD[8] 2023-11-23 08:15:56,750: WARNING: (ospd_openvas.messaging.mqtt) Could not connect to MQTT broker, error was: timed out. Trying again in 10s.
greenbone-community-edition-notus-scanner-1 | 2023-11-23 08:16:01,976 notus-scanner: INFO: (notus.scanner.daemon) Starting notus-scanner version 22.6.2.
greenbone-community-edition-notus-scanner-1 | Traceback (most recent call last):
greenbone-community-edition-notus-scanner-1 | File “/usr/local/bin/notus-scanner”, line 8, in
greenbone-community-edition-notus-scanner-1 | sys.exit(main())
greenbone-community-edition-notus-scanner-1 | ^^^^^^
greenbone-community-edition-notus-scanner-1 | File “/usr/local/lib/python3.11/dist-packages/notus/scanner/daemon.py”, line 130, in main
greenbone-community-edition-notus-scanner-1 | run_daemon(
greenbone-community-edition-notus-scanner-1 | File “/usr/local/lib/python3.11/dist-packages/notus/scanner/daemon.py”, line 92, in run_daemon
greenbone-community-edition-notus-scanner-1 | daemon = MQTTDaemon(client)
greenbone-community-edition-notus-scanner-1 | ^^^^^^^^^^^^^^^^^^
greenbone-community-edition-notus-scanner-1 | File “/usr/local/lib/python3.11/dist-packages/notus/scanner/messaging/mqtt.py”, line 148, in init
greenbone-community-edition-notus-scanner-1 | self._client.connect()
greenbone-community-edition-notus-scanner-1 | File “/usr/local/lib/python3.11/dist-packages/notus/scanner/messaging/mqtt.py”, line 54, in connect
greenbone-community-edition-notus-scanner-1 | return super().connect(
greenbone-community-edition-notus-scanner-1 | ^^^^^^^^^^^^^^^^
greenbone-community-edition-notus-scanner-1 | File “/usr/local/lib/python3.11/dist-packages/paho/mqtt/client.py”, line 914, in connect
greenbone-community-edition-notus-scanner-1 | return self.reconnect()
greenbone-community-edition-notus-scanner-1 | ^^^^^^^^^^^^^^^^
greenbone-community-edition-notus-scanner-1 | File “/usr/local/lib/python3.11/dist-packages/paho/mqtt/client.py”, line 1044, in reconnect
greenbone-community-edition-notus-scanner-1 | sock = self._create_socket_connection()
greenbone-community-edition-notus-scanner-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
greenbone-community-edition-notus-scanner-1 | File “/usr/local/lib/python3.11/dist-packages/paho/mqtt/client.py”, line 3685, in _create_socket_connection
greenbone-community-edition-notus-scanner-1 | return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
greenbone-community-edition-notus-scanner-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
greenbone-community-edition-notus-scanner-1 | File “/usr/lib/python3.11/socket.py”, line 851, in create_connection
greenbone-community-edition-notus-scanner-1 | raise exceptions[0]
greenbone-community-edition-notus-scanner-1 | File “/usr/lib/python3.11/socket.py”, line 836, in create_connection
greenbone-community-edition-notus-scanner-1 | sock.connect(sa)
greenbone-community-edition-notus-scanner-1 | TimeoutError: timed out
greenbone-community-edition-notus-scanner-1 | Exception ignored in atexit callback: <function exit_cleanup at 0x7f81f0b16660>
greenbone-community-edition-notus-scanner-1 | Traceback (most recent call last):
greenbone-community-edition-notus-scanner-1 | File “/usr/local/lib/python3.11/dist-packages/notus/scanner/utils.py”, line 104, in exit_cleanup
greenbone-community-edition-notus-scanner-1 | sys.exit()
greenbone-community-edition-notus-scanner-1 | SystemExit:
greenbone-community-edition-notus-scanner-1 exited with code 1
greenbone-community-edition-ospd-openvas-1 | OSPD[8] 2023-11-23 08:16:11,754: WARNING: (ospd_openvas.messaging.mqtt) Could not connect to MQTT broker, error was: timed out. Trying again in 10s.
docker ps
docker logs mqqt
1700722279: mosquitto version 2.0.11 starting
1700722279: Config loaded from /etc/mosquitto.conf.
1700722279: Opening ipv4 listen socket on port 1883.
1700722279: Opening ipv6 listen socket on port 1883.
1700722279: mosquitto version 2.0.11 running
1700725940: mosquitto version 2.0.11 starting
1700725940: Config loaded from /etc/mosquitto.conf.
1700725940: Opening ipv4 listen socket on port 1883.
1700725940: Opening ipv6 listen socket on port 1883.
1700725940: mosquitto version 2.0.11 running
1700725992: mosquitto version 2.0.11 starting
1700725992: Config loaded from /etc/mosquitto.conf.
1700725992: Opening ipv4 listen socket on port 1883.
1700725992: Opening ipv6 listen socket on port 1883.
1700725992: mosquitto version 2.0.11 running
1700726165: mosquitto version 2.0.11 starting
1700726165: Config loaded from /etc/mosquitto.conf.
1700726165: Opening ipv4 listen socket on port 1883.
1700726165: Opening ipv6 listen socket on port 1883.
1700726165: mosquitto version 2.0.11 running
docker logs netscan
Exception ignored in atexit callback: <function exit_cleanup at 0x7f3bce166660>
Traceback (most recent call last):
File “/usr/local/lib/python3.11/dist-packages/notus/scanner/utils.py”, line 104, in exit_cleanup
sys.exit()
SystemExit:
2023-11-23 08:18:13,215 notus-scanner: INFO: (notus.scanner.daemon) Starting notus-scanner version 22.6.2.
Traceback (most recent call last):
File “/usr/local/bin/notus-scanner”, line 8, in
sys.exit(main())
^^^^^^
File “/usr/local/lib/python3.11/dist-packages/notus/scanner/daemon.py”, line 130, in main
run_daemon(
File “/usr/local/lib/python3.11/dist-packages/notus/scanner/daemon.py”, line 92, in run_daemon
daemon = MQTTDaemon(client)
^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/notus/scanner/messaging/mqtt.py”, line 148, in init
self._client.connect()
File “/usr/local/lib/python3.11/dist-packages/notus/scanner/messaging/mqtt.py”, line 54, in connect
return super().connect(
^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/paho/mqtt/client.py”, line 914, in connect
return self.reconnect()
^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/paho/mqtt/client.py”, line 1044, in reconnect
sock = self._create_socket_connection()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/local/lib/python3.11/dist-packages/paho/mqtt/client.py”, line 3685, in _create_socket_connection
return socket.create_connection(addr, timeout=self._connect_timeout, source_address=source)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File “/usr/lib/python3.11/socket.py”, line 851, in create_connection
raise exceptions[0]
File “/usr/lib/python3.11/socket.py”, line 836, in create_connection
sock.connect(sa)
TimeoutError: timed out
Exception ignored in atexit callback: <function exit_cleanup at 0x7f028cd12660>
Traceback (most recent call last):
File “/usr/local/lib/python3.11/dist-packages/notus/scanner/utils.py”, line 104, in exit_cleanup
sys.exit()
there are a lot of these errors, I don’t insert everything (this one repeats)
Re-install don’t help, i delete all containers and volumes, install again, but this don’t help