Trying to run demo Event Stream in EDA and it fails with this error. Kind of lost here what needs to be done . Any help would be appreciated
025-01-16 08:26:49,696 - ansible_rulebook.app - INFO - Starting rules
2025-01-16 08:26:49,697 - ansible_rulebook.engine - DEBUG - run_ruleset
2025-01-16 08:26:51,461 - drools.ruleset - INFO - Using jar: /usr/local/lib/python3.12/site-packages/drools/jars/drools-ansible-rulebook-integration-runtime-1.0.6-SNAPSHOT.jar
2025-01-16 08:26:51,581 - drools.ruleset - DEBUG - Creating Drools Ruleset
2025-01-16 08:26:52 009 [main] INFO org.drools.ansible.rulebook.integration.api.rulesengine.AbstractRulesEvaluator - Start automatic pseudo clock with a tick every 100 milliseconds
2025-01-16 08:26:52,013 - drools.ruleset - DEBUG - Ruleset Session ID : 1
2025-01-16 08:26:52,013 - ansible_rulebook.engine - DEBUG - ruleset define: {"name": "Demo Ruleset for Webhook", "hosts": ["all"], "sources": [{"EventSource": {"name": "New Event", "source_name": "ansible.eda.pg_listener", "source_args": {"dsn": "$ANSIBLE_VAULT;1.2;AES256;EDA_SERVER\r\n35346261613361623236336663343435393735356438613330633964653531633162646361356535\r\n3330383437336163376530653937343438313736383735390a373664303464376331373433353237\r\n65343835666130303430316532323039626661633162383237646561306566353963373632613939\r\n6666303663373238370a353830643732396263393634373433356565636466383865393763336465\r\n34636332313662363732306265323466336537323635346261323137353761373332363062616336\r\n30356431366438333131656636663736353565386137666432386132326437393335653363333364\r\n61623835363234336530666563383666666261313231643164666531636435633039613333343364\r\n35336237356461393638353137363834653366333530393638343233373361613436613837663735\r\n32623564343234306465393235633133373462366132353931376536376335663061\r\n", "channels": ["eda_event_stream_bae896b4_1d06_46ea_89ed_6e44c6d13235"]}, "source_filters": []}}], "rules": [{"Rule": {"name": "Run Demo Job Template", "condition": {"AllCondition": [{"EqualsExpression": {"lhs": {"Event": "payload.message"}, "rhs": {"String": "Hello EDA"}}}]}, "actions": [{"Action": {"action": "run_job_template", "action_args": {"name": "Demo Job Template", "organization": "Default"}}}], "enabled": true}}]}
2025-01-16 08:26:52,013 - drools.dispatch - DEBUG - Establishing async channel
2025-01-16 08:26:52,021 - ansible_rulebook.engine - INFO - load source ansible.eda.pg_listener
2025-01-16 08:26:52,359 - ansible_rulebook.engine - INFO - loading source filter eda.builtin.insert_meta_info
2025-01-16 08:26:54,928 - ansible_rulebook.engine - DEBUG - Calling main in ansible.eda.pg_listener
2025-01-16 08:26:54,932 - ansible_rulebook.websocket - INFO - websocket ws://eda-daphne:8001/api/eda/ws/ansible-rulebook
2025-01-16 08:26:54,934 - ansible_rulebook.websocket - INFO - attempt websocket connection
2025-01-16 08:26:54 945 [drools-async-evaluator-thread] INFO org.drools.ansible.rulebook.integration.api.io.RuleExecutorChannel - Async channel connected
2025-01-16 08:26:54,947 - ansible_rulebook.engine - INFO - Waiting for all ruleset tasks to end
2025-01-16 08:26:54 986 [main] INFO org.drools.ansible.rulebook.integration.api.rulesengine.MemoryMonitorUtil - Memory occupation threshold set to 90%
2025-01-16 08:26:54 986 [main] INFO org.drools.ansible.rulebook.integration.api.rulesengine.MemoryMonitorUtil - Memory check event count threshold set to 64
2025-01-16 08:26:54 986 [main] INFO org.drools.ansible.rulebook.integration.api.rulesengine.MemoryMonitorUtil - Exit above memory occupation threshold set to false
2025-01-16 08:26:54,987 - ansible_rulebook.rule_set_runner - INFO - Waiting for actions on events from Demo Ruleset for Webhook
2025-01-16 08:26:54,987 - ansible_rulebook.rule_set_runner - INFO - Waiting for events, ruleset: Demo Ruleset for Webhook
2025-01-16 08:26:54,987 - <run_path> - ERROR - PG Listen operational error
Traceback (most recent call last):
File "/home/runner/.ansible/collections/ansible_collections/ansible/eda/extensions/eda/plugins/event_source/pg_listener.py", line 98, in main
async with await AsyncConnection.connect(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/psycopg/connection_async.py", line 114, in connect
attempts = await conninfo_attempts_async(params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/psycopg/_conninfo_attempts_async.py", line 49, in conninfo_attempts_async
raise e.OperationalError(str(last_exc))
psycopg.OperationalError: [Errno -2] Name or service not known
2025-01-16 08:26:54,988 - ansible_rulebook.engine - ERROR - Source error: OperationalError: Source plugin failed with error message: '[Errno -2] Name or service not known'
2025-01-16 08:26:54,988 - ansible_rulebook.engine - ERROR - Shutting down source: ansible.eda.pg_listener error: OperationalError: Source plugin failed with error message: '[Errno -2] Name or service not known'
2025-01-16 08:26:54,989 - ansible_rulebook.engine - DEBUG - Broadcast shutdown to all source plugins
2025-01-16 08:26:54,989 - ansible_rulebook.engine - DEBUG - Broadcast to queues: [<Queue at 0x7fc8d6b468d0 maxsize=1 _getters[1]>]
2025-01-16 08:26:54,989 - ansible_rulebook.engine - DEBUG - Broadcasting shutdown: Shutdown(message="Shutting down source: ansible.eda.pg_listener error: OperationalError: Source plugin failed with error message: '[Errno -2] Name or service not known'", delay=60.0, kind='graceful', source_plugin='ansible.eda.pg_listener')
** 2025-01-16 08:26:54.989774 [received event] *********************************
Ruleset: Demo Ruleset for Webhook
Event:
Shutdown(message='Shutting down source: ansible.eda.pg_listener error: '
'OperationalError: Source plugin failed with error message: '
"'[Errno -2] Name or service not known'",
delay=60.0,
kind='graceful',
source_plugin='ansible.eda.pg_listener')
********************************************************************************
2025-01-16 08:26:54,990 - ansible_rulebook.rule_set_runner - INFO - Ruleset: Demo Ruleset for Webhook, received shutdown: Shutdown(message="Shutting down source: ansible.eda.pg_listener error: OperationalError: Source plugin failed with error message: '[Errno -2] Name or service not known'", delay=60.0, kind='graceful', source_plugin='ansible.eda.pg_listener')
webook.yaml below
-
name: Demo Ruleset for Webhook
hosts: allsources:
- ansible.eda.webhook:
host: 0.0.0.0
port: 5000
rules:
- name: Run Demo Job Template
condition: event.payload.message == “Hello EDA”
action:
run_job_template:
name: Demo Job Template
organization: Default
- ansible.eda.webhook: