Intevation / intelmq-certbund-contact

IntelMQ expert bots to lookup contact information in a database (part of the intelmq-cb-mailgen solution).
GNU Affero General Public License v3.0
3 stars 2 forks source link

Unable to start the bot from IntelMQ-Manager #22

Open kodebrain opened 1 year ago

kodebrain commented 1 year ago

I'm able to run the bot from the terminal by running intelmqctl run CERTBundKontakt-Expert but can't start from the IntelMQ-Manager. Issue is only with the CERTBund bots and every other bots can be started/stopped from the GUI.

Checking the logs from the IntelMQ Monitor tab Logs > Log Level: All doesn't display anything but when I filter it down to Info it list some logs. It should list every type of logs when All is selected ?

sebix commented 1 year ago

What does intelmqctl start CERTBundKontakt-Expert show? That starts the bot as a daemon and is the same command that the Manager (actually the IntelMQ API == the backend) executes.

I suspect that the executable (/usr/(local/)bin/intelmq.bots.experts.certbund_contact.expert) is missing.

kodebrain commented 1 year ago
Starting CERTBundKontakt-Expert...
CERTBundKontakt-Expert: CERTBundKontaktExpertBot initialized with id CERTBundKontakt-Expert and intelmq 3.1.0 and python 3.8.10 (default, Nov 14 2022, 12:59:47) as process 19880.
CERTBundKontakt-Expert: Bot is starting.
CERTBundKontakt-Expert: Loading Harmonization configuration from '/etc/intelmq/harmonization.conf'.
CERTBundKontakt-Expert: Loading source pipeline and queue 'CERTBundKontakt-Expert-queue'.
CERTBundKontakt-Expert: Connected to source queue.
CERTBundKontakt-Expert: Loading destination pipeline and queues {'_default': ['CERTBundRule-Expert-queue']}.
CERTBundKontakt-Expert: Connected to destination queues.
CERTBundKontakt-Expert: Sections: ['source'].
CERTBundKontakt-Expert: Connecting to PostgreSQL: database='contactdb', user='intelmq', host='localhost', port=5432, sslmode='require'.
CERTBundKontakt-Expert: Connected to PostgreSQL.
CERTBundKontakt-Expert: Bot initialization completed.
CERTBundKontakt-Expert: Loading source pipeline and queue 'CERTBundKontakt-Expert-queue'.
CERTBundKontakt-Expert: Connected to source queue.
CERTBundKontakt-Expert: Loading destination pipeline and queues {'_default': ['CERTBundRule-Expert-queue']}.
CERTBundKontakt-Expert: Connected to destination queues.
CERTBundKontakt-Expert: Waiting for incoming message.

I can stop the bot from the Manager after it runs as above but can't start it

sebix commented 1 year ago

This is interesting. Another possible reason could be, that executables of these bots are not in $PATH. What do which intelmq.bots.experts.deduplicator.expert and which intelmq.bots.experts.certbund_contact.expert show?