MISP / MISP-Taxii-Server

An OpenTAXII Configuration for MISP
BSD 3-Clause "New" or "Revised" License
80 stars 30 forks source link

"ERROR: FAILURE: There was a failure while executing the message handler" #33

Closed advancedeng closed 6 years ago

advancedeng commented 6 years ago

Getting this annoying generic error message, just can't put my finger on it if it has to do with hooks.py or something else. Here are the details, hope I haven't missed anything. Appreciate your help!

Config file: config.txt

Command run: taxii-push --path http://localhost:9000/services/inbox -f sample.xml -v
\ --dest collection --username xxxxx --password xxxxx

Output: ... 2018-01-04 15:20:16,560 urllib3.connectionpool DEBUG: Starting new HTTP connection (1): localhost 2018-01-04 15:20:16,669 urllib3.connectionpool DEBUG: http://localhost:9000 "POST /services/inbox HTTP/1.1" 200 457 2018-01-04 15:20:16,670 cabby.dispatcher DEBUG: Response:

There was a failure while executing the message handler 2018-01-04 15:20:16,671 cabby.cli.commons ERROR: FAILURE: There was a failure while executing the message handler Traceback (most recent call last): File "/usr/local/lib/python3.4/dist-packages/cabby-0.1.18-py3.4.egg/cabby/cli/commons.py", line 171, in run_client run_func(client, args.uri, args) File "/usr/local/lib/python3.4/dist-packages/cabby-0.1.18-py3.4.egg/cabby/cli/push.py", line 51, in _runner client.push(content, binding, collection_names=args.collections, uri=path) File "/usr/local/lib/python3.4/dist-packages/cabby-0.1.18-py3.4.egg/cabby/client11.py", line 332, in push service_type=const.SVC_INBOX) File "/usr/local/lib/python3.4/dist-packages/cabby-0.1.18-py3.4.egg/cabby/abstract.py", line 205, in _execute_request timeout=self.timeout) File "/usr/local/lib/python3.4/dist-packages/cabby-0.1.18-py3.4.egg/cabby/dispatcher.py", line 91, in send_taxii_request raise UnsuccessfulStatusError(obj) cabby.exceptions.UnsuccessfulStatusError: FAILURE: There was a failure while executing the message handler
FloatingGhost commented 6 years ago

Any error message will be in the server log, this is only the client log

Could you get that one for me? If you're just running it with opentaxii-run-dev then it should be on the terminal output

advancedeng commented 6 years ago

Sorry, it was the session issue. I ran the exports from scratch again (below) which seem to have fixed the issue.

_export OPENTAXIICONFIG=/path/to/config.yaml export PYTHONPATH=.

Thank you, appreciate your prompt reply.