Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Crowdsec connector seems to be lacking a depedency #1946

Closed
troll-os opened this issue Mar 15, 2024 · 2 comments
Closed

Crowdsec connector seems to be lacking a depedency #1946

troll-os opened this issue Mar 15, 2024 · 2 comments
Labels
bug use for describing something not working as expected community support use to identify an issue related to feature developed & maintained by community. community use to identify PR from community

Comments

@troll-os
Copy link

Description

When running the Crowdsec connector in our envs, the connector fails to start with the stack trace given below

Environment

Filigran

Reproducible Steps

Run the Crowdsec connector, no special configs applied

Expected Output

Connector is alive

Actual Output

Traceback (most recent call last):
  File "/opt/opencti-crowdsec/crowdsec.py", line 11, in <module>
    from pycti import OpenCTIConnectorHelper, get_config_variable
  File "/usr/local/lib/python3.11/site-packages/pycti/__init__.py", line 4, in <module>
    from .api.opencti_api_client import OpenCTIApiClient
  File "/usr/local/lib/python3.11/site-packages/pycti/api/opencti_api_client.py", line 8, in <module>
    import magic
  File "/usr/local/lib/python3.11/site-packages/magic/__init__.py", line 209, in <module>
    libmagic = loader.load_lib()
               ^^^^^^^^^^^^^^^^^
  File "/usr/local/lib/python3.11/site-packages/magic/loader.py", line 49, in load_lib
    raise ImportError('failed to find libmagic.  Check your installation')
@troll-os troll-os added bug use for describing something not working as expected needs triage use to identify issue needing triage from Filigran Product team labels Mar 15, 2024
@nino-filigran
Copy link

@sbs2001 I see that you have created the connector at first. Would you mind having a look if you can?

@nino-filigran nino-filigran added needs more info Intel needed about the use case community use to identify PR from community community support use to identify an issue related to feature developed & maintained by community. and removed needs triage use to identify issue needing triage from Filigran Product team labels Mar 18, 2024
@rr404
Copy link
Contributor

rr404 commented Mar 19, 2024

Pushed a fix: #1953

I indeed had the same error as you @troll-os when I tried a fresh install. the changes in the PR fix the issue

@Jipegien Jipegien removed the needs more info Intel needed about the use case label Mar 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug use for describing something not working as expected community support use to identify an issue related to feature developed & maintained by community. community use to identify PR from community
Projects
None yet
Development

No branches or pull requests

4 participants