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

[Bug] OTX analyser no requests module on line 4 #818

Closed
asucrews opened this issue Jul 13, 2020 · 6 comments
Closed

[Bug] OTX analyser no requests module on line 4 #818

asucrews opened this issue Jul 13, 2020 · 6 comments
Labels
category:bug Issue is related to a bug scope:analyzer Issue is analyzer related status:waiting-for-reply Waiting for reply from user

Comments

@asucrews
Copy link

asucrews commented Jul 13, 2020

Describe the bug
Analyzers is erroring out with below error using docker images.

{
"errorMessage": "Traceback (most recent call last):\n File "OTXQuery/otxquery.py", line 4, in \n import requests\nModuleNotFoundError: No module named 'requests'\n",
"input": null,
"success": false
}

To Reproduce
Steps to reproduce the behavior:

  1. enable otx analyzer
  2. run otx analyzer
  3. get error

Expected behavior
Results from OTX

Complementary information
{
"errorMessage": "Traceback (most recent call last):\n File "OTXQuery/otxquery.py", line 4, in \n import requests\nModuleNotFoundError: No module named 'requests'\n",
"input": null,
"success": false
}

Work environment

  • Client OS: windows 10
  • Server OS: ubuntu 20.04
  • Browse type and version: Version 83.0.4103.116 (Official Build) (64-bit)
  • Cortex version: 3.0.1-1
  • Cortex Analyzer/Responder name: OTXQuery_2_0
  • Cortex Analyzer/Responder version: 2.0

Possible solutions

Additional context
Works with Proccess runner, just not with docker runner

@asucrews asucrews added the category:bug Issue is related to a bug label Jul 13, 2020
@dadokkio
Copy link
Contributor

The requests module has been added to requirements 7 months ago.
9ff4f1f
Are you using the latest available release?

@asucrews
Copy link
Author

Yes Latest Release, this fresh install last night with the default application config to use docker.
when i disable docker and ran the analyzer non docker method it work.
@dadokkio Could the docker image be missing it?

@jeromeleonard
Copy link
Contributor

@asucrews could you please confirm this is still note working on your side ? Just made a successful test.
here is the docker image info:

cortexneurons/otxquery                 2                   930bf2f9f79d        2 months ago        942MB

@jeromeleonard jeromeleonard added the scope:analyzer Issue is analyzer related label Jul 15, 2020
@asucrews
Copy link
Author

sorry for the delay, this my docker image

REPOSITORY TAG IMAGE ID CREATED SIZE
cortexneurons/otxquery devel c3a6b2a93bb5 2 weeks ago 939MB

@dadokkio
Copy link
Contributor

dadokkio commented Oct 2, 2020

Just tested docker release on thehive4 image and the image for otxquery is the similar to Jerome one.
Not sure why you're pulling the devel image, in my case the link used to download analyzer in "cortex/application.conf" is https://dl.bintray.com/thehive-project/cortexneurons/analyzers.json

@jeromeleonard jeromeleonard added the status:waiting-for-reply Waiting for reply from user label Oct 14, 2020
@dadokkio
Copy link
Contributor

dadokkio commented Jan 8, 2021

Closing since no update.

@dadokkio dadokkio closed this as completed Jan 8, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category:bug Issue is related to a bug scope:analyzer Issue is analyzer related status:waiting-for-reply Waiting for reply from user
Projects
None yet
Development

No branches or pull requests

3 participants