OpenCTI-Platform / connectors

OpenCTI Connectors
https://www.opencti.io
Apache License 2.0
380 stars 412 forks source link

MISP feed and connector not connecting to opencti #2466

Closed campbellmcgregor closed 2 months ago

campbellmcgregor commented 3 months ago

Description

Trying to connect the MISP feed to opencti. The docker compose is separate but is on the same docker network as the opencti docker compose. After launching the docker container the following errors appear:

ERROR Error pinging the API | timestamp=2024-08-08T14:14:11.986325Z name=MISP Feed CIRL Osint exc_info=Traceback (most recent call last): File "/usr/local/lib/python3.11/site-packages/pycti/connector/opencti_connector_helper.py", line 454, in ping result = self.api.connector.ping( ^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pycti/api/opencti_api_connector.py", line 112, in ping result = self.api.query( ^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.11/site-packages/pycti/api/opencti_api_client.py", line 363, in query raise ValueError(value_error) ValueError: {'name': 'Unknown type "ConnectorInfoInput". Did you mean "ConnectorConfig", "ConnectorType", "CountryAddInput", "DirectoryAddInput", or "SectorAddInput"?', 'error_message': 'Unknown type "ConnectorInfoInput". Did you mean "ConnectorConfig", "ConnectorType", "CountryAddInput", "DirectoryAddInput", or "SectorAddInput"?'} attributes={"reason":"{'name': 'Unknown type \"ConnectorInfoInput\". Did you mean \"ConnectorConfig\", \"ConnectorType\", \"CountryAddInput\", \"DirectoryAddInput\", or \"SectorAddInput\"?', 'error_message': 'Unknown type \"ConnectorInfoInput\". Did you mean \"ConnectorConfig\", \"ConnectorType\", \"CountryAddInput\", \"DirectoryAddInput\", or \"SectorAddInput\"?'}"}

I can see the access logs for the connector account but there is nothing being imported.

Environment

  1. OS (where OpenCTI server runs): Ubuntu 22.04 Docker
  2. OpenCTI version: 6.2.5
  3. OpenCTI client: frontend
  4. Other environment details: docker compose for opencti and it's stack connectors are in a separate docker compose

Reproducible Steps

Steps to create the smallest reproducible scenario: Using the following docker compose

`version: '3' services: connector-misp-feed: image: opencti/connector-misp-feed:6.2.12 environment:

networks: docker_default: external: true`

Expected Output

The MISP connector to pull in from the feed to OpenCTI

Actual Output

Error message as above

Additional information

Screenshots (optional)

campbellmcgregor commented 3 months ago

I have just checked a few other connectors and they are all saying it:

File "/usr/local/lib/python3.11/site-packages/pycti/api/opencti_api_client.py", line 363, in query raise ValueError(value_error) ValueError: {'name': 'Unknown type "ConnectorInfoInput". Did you mean "ConnectorConfig", "ConnectorType", "CountryAddInput", "DirectoryAddInput", or "SectorAddInput"?',

Megafredo commented 3 months ago

Hi @campbellmcgregor, this error is due to a change on the OpenCTI side, but also on client-python side, so it affects all connectors. Can you update and rebuild your client-python ? This should fix your problem. https://github.com/OpenCTI-Platform/client-python

campbellmcgregor commented 3 months ago

Ok cool let me do that and come back to you thanks

Megafredo commented 2 months ago

Hello @campbellmcgregor, can you tell me if this solved your problem ? if so I will close this issue.