I see the problem s/15672/5672/ Thanks for giving me the tip.
Config is now:
[MessageQueueing]
host = 10.123.123.67,10.123.123.68
port = 5672
username = datagerry
password = redacted
exchange = datagerry.eventbus
connection_attempts = 2
retry_delay = 6
use_tls = true
And network flows are allowed:
# nc -z 10.123.123.67 5672
# echo $?
0
# nc -z 10.123.123.68 5672
# echo $?
0
I also tried disabling tls and using the ono-tls port, but this gave the same error.
# nc -z 10.123.123.67 5671
# echo $?
0
#
I started it again and got this:
datagerry[222040]: licensed under the terms of the GNU Affero General Public License version 3
datagerry[222040]:
datagerry[222048]: [2024-05-08 11:08:08][INFO ] --- start exportd ... (service.py)
datagerry[222048]: [2024-05-08 11:08:08][INFO ] --- exportd: start run (service.py)
datagerry[222040]: [2024-05-08 11:08:09][INFO ] --- Process manager started: True (__main__.py)
datagerry[222040]: [2024-05-08 11:08:09][INFO ] --- DATAGERRY successfully started (__main__.py)
datagerry[222053]: [2024-05-08 11:08:09][INFO ] --- start webapp ... (service.py)
datagerry[222053]: [2024-05-08 11:08:09][DEBUG ] --- Gunicorn starting with auto reload option (gunicorn.py)
datagerry[222053]: [2024-05-08 11:08:09][INFO ] --- Interfaces started @ http://0.0.0.0:4000 (gunicorn.py)
datagerry[222048]: Exception in thread Thread-1:
datagerry[222048]: Traceback (most recent call last):
datagerry[222048]: File "threading.py", line 980, in _bootstrap_inner
datagerry[222048]: File "cmdb/event_management/event_manager.py", line 199, in run
datagerry[222048]: File "cmdb/event_management/event_manager.py", line 178, in __init_connection
datagerry[222048]: File "pika/adapters/blocking_connection.py", line 377, in __init__
datagerry[222048]: File "pika/adapters/blocking_connection.py", line 416, in _process_io_for_connection_setup
datagerry[222048]: File "pika/adapters/blocking_connection.py", line 469, in _flush_output
datagerry[222048]: File "pika/adapters/base_connection.py", line 174, in _adapter_connect
datagerry[222048]: File "pika/adapters/base_connection.py", line 304, in _getaddrinfo
datagerry[222048]: File "socket.py", line 954, in getaddrinfo
datagerry[222048]: socket.gaierror: [Errno -2] Name or service not known
datagerry[222048]: Exception in thread Thread-2:
datagerry[222048]: Traceback (most recent call last):
datagerry[222048]: File "threading.py", line 980, in _bootstrap_inner
datagerry[222048]: File "cmdb/event_management/event_manager.py", line 321, in run
datagerry[222048]: File "cmdb/event_management/event_manager.py", line 293, in __init_connection
datagerry[222048]: File "pika/adapters/blocking_connection.py", line 377, in __init__
datagerry[222048]: File "pika/adapters/blocking_connection.py", line 416, in _process_io_for_connection_setup
datagerry[222048]: File "pika/adapters/blocking_connection.py", line 469, in _flush_output
datagerry[222048]: File "pika/adapters/base_connection.py", line 174, in _adapter_connect
datagerry[222048]: File "pika/adapters/base_connection.py", line 304, in _getaddrinfo
datagerry[222048]: File "socket.py", line 954, in getaddrinfo
datagerry[222048]: socket.gaierror: [Errno -2] Name or service not known
datagerry[222053]: Exception in thread Thread-2:
datagerry[222053]: Traceback (most recent call last):
datagerry[222053]: File "threading.py", line 980, in _bootstrap_inner
datagerry[222053]: File "cmdb/event_management/event_manager.py", line 199, in run
datagerry[222053]: File "cmdb/event_management/event_manager.py", line 178, in __init_connection
datagerry[222053]: File "pika/adapters/blocking_connection.py", line 377, in __init__
datagerry[222053]: File "pika/adapters/blocking_connection.py", line 416, in _process_io_for_connection_setup
datagerry[222053]: File "pika/adapters/blocking_connection.py", line 469, in _flush_output
datagerry[222053]: File "pika/adapters/base_connection.py", line 174, in _adapter_connect
datagerry[222053]: File "pika/adapters/base_connection.py", line 304, in _getaddrinfo
datagerry[222053]: File "socket.py", line 954, in getaddrinfo
datagerry[222053]: socket.gaierror: [Errno -2] Name or service not known
datagerry[222053]: Exception in thread Thread-3:
datagerry[222053]: Traceback (most recent call last):
datagerry[222053]: File "threading.py", line 980, in _bootstrap_inner
datagerry[222053]: File "cmdb/event_management/event_manager.py", line 321, in run
datagerry[222053]: File "cmdb/event_management/event_manager.py", line 293, in __init_connection
datagerry[222053]: File "pika/adapters/blocking_connection.py", line 377, in __init__
datagerry[222053]: File "pika/adapters/blocking_connection.py", line 416, in _process_io_for_connection_setup
datagerry[222053]: File "pika/adapters/blocking_connection.py", line 469, in _flush_output
datagerry[222053]: File "pika/adapters/base_connection.py", line 174, in _adapter_connect
datagerry[222053]: File "pika/adapters/base_connection.py", line 304, in _getaddrinfo
datagerry[222053]: File "socket.py", line 954, in getaddrinfo
datagerry[222053]: socket.gaierror: [Errno -2] Name or service not known
I tried starting it with just one rabbitmq server, but it did not like it:
[MessageQueueing]
host = 10.123.123.67
…but now it starts and then shuts down immediately.
datagerry[222181]: [2024-05-08 11:16:28][INFO ] --- start exportd ... (service.py)
datagerry[222181]: [2024-05-08 11:16:28][INFO ] --- exportd: start run (service.py)
datagerry[222173]: [2024-05-08 11:16:29][INFO ] --- Process manager started: True (__main__.py)
datagerry[222173]: [2024-05-08 11:16:29][INFO ] --- DATAGERRY successfully started (__main__.py)
datagerry[222186]: [2024-05-08 11:16:29][INFO ] --- start webapp ... (service.py)
datagerry[222186]: [2024-05-08 11:16:29][DEBUG ] --- Gunicorn starting with auto reload option (gunicorn.py)
datagerry[222186]: [2024-05-08 11:16:29][INFO ] --- Interfaces started @ http://0.0.0.0:4000 (gunicorn.py)
datagerry[222181]: [2024-05-08 11:16:34][ERROR ] --- exportd: EventSenderAmqp connection error (event_manager.py)
datagerry[222181]: [2024-05-08 11:16:34][ERROR ] --- exportd: EventReceiverAmqp connection error (event_manager.py)
datagerry[222181]: [2024-05-08 11:16:34][INFO ] --- shutdown exportd ... (service.py)
datagerry[222181]: [2024-05-08 11:16:34][DEBUG ] --- wait for termination of service thread (service.py)
datagerry[222186]: [2024-05-08 11:16:35][ERROR ] --- webapp: EventSenderAmqp connection error (event_manager.py)
datagerry[222186]: [2024-05-08 11:16:35][ERROR ] --- webapp: EventReceiverAmqp connection error (event_manager.py)
datagerry[222181]: [2024-05-08 11:16:35][INFO ] --- exportd: end run (service.py)
datagerry[222181]: [2024-05-08 11:16:35][DEBUG ] --- service thread terminated (service.py)
datagerry[222181]: [2024-05-08 11:16:35][INFO ] --- shutdown exportd completed (service.py)
datagerry[222186]: [2024-05-08 11:16:35][INFO ] --- shutdown webapp ... (service.py)
datagerry[222186]: [2024-05-08 11:16:35][INFO ] --- shutdown webapp completed (service.py)
I used these commands to create the datagerry user etc on RabbitMQ. Does this look correct to you?
rabbitmqctl add_vhost datagerry
rabbitmqctl add_user datagerry
rabbitmqctl set_permissions --vhost datagerry datagerry '.' '.' '.*'