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] Worker cannot be run #595

Closed
miguelfaldutti87 opened this issue Jan 23, 2020 · 9 comments
Closed

[Bug] Worker cannot be run #595

miguelfaldutti87 opened this issue Jan 23, 2020 · 9 comments
Assignees
Labels
category:bug Issue is related to a bug scope:analyzer Issue is analyzer related status:waiting-for-upstream

Comments

@miguelfaldutti87
Copy link

Describe the bug
When I try to analyze a file using HybridAnalysis Analyzer I get this error: "errorMessage": "Worker cannot be run",.

To Reproduce
I go to "Analyzers" and select "Run" on HybridAnalysis Analyzer. Then I choose a file and then accept.
I get a pop messages that says that the process started okay and after a couple of seconds I get the error message.

Work environment

  • Server OS: Ubuntu 18.04
    Cortex 3.0.1-1
    Elastic4Play 1.11.5
    Play 2.6.23
    Elastic 4s6.5.1
    ElasticSearch clien t6.5.2
@miguelfaldutti87 miguelfaldutti87 added the category:bug Issue is related to a bug label Jan 23, 2020
@jeromeleonard jeromeleonard self-assigned this Feb 28, 2020
@jeromeleonard jeromeleonard added this to the 2.6.0 milestone Feb 28, 2020
@jeromeleonard
Copy link
Contributor

Could you please copy the error message you get in the job history page of Cortex ?
Thanks.

@miguelfaldutti87
Copy link
Author

Yes. I get this:

"errorMessage": "Worker cannot be run".

@jeromeleonard
Copy link
Contributor

are you trying to use Docker?
In this case maybe your cortex user in not autorise to access docker.

@jeromeleonard jeromeleonard modified the milestones: 2.6.0, 2.7.0 Mar 10, 2020
@miguelfaldutti87
Copy link
Author

Nop, I'm running all on the same Virtual Machine. I'm not using docker.

@jeromeleonard
Copy link
Contributor

Please, provide us more details :

  • related logs from cortex from /var/log/cortex/application.log
  • /opt/Cortex-Analyzers/analyzers/HybridAnalysis/HybridAnalysis_analyzer.py is executable and Cortex user has permissions to do that ?
  • try it with this in the Cortex configuration file:
[..]
job {
  timeout = 30 minutes
  runners = [process]
}
## ANALYZERS
# 
[..]
``` 

@dadokkio
Copy link
Contributor

can this issue be related TheHive-Project/Cortex#248 ??

@jeromeleonard
Copy link
Contributor

without reply we close this issue. Please, tell us if the problem still exist and we reopen it.

@jeromeleonard jeromeleonard removed this from the 2.7.0 milestone Apr 24, 2020
@niomictomi
Copy link

the problem still exist, Please help me !

@saraomd93
Copy link

I'm getting this exact same issue. please reply
Error: Worker cannot be run
Non-Docker Deployment mode
Unable to load pymisp properly: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.10/collections/init.py)Traceback (most recent call last): File "/opt/Cortex-Analyzers/analyzers/MISP/misp.py", line 3, in from mispclient import MISPClient, MISPClientError File "/opt/Cortex-Analyzers/analyzers/MISP/mispclient.py", line 2, in import pymisp File "/usr/local/lib/python3.10/dist-packages/pymisp/init.py", line 64, in class ExpandedPyMISP(PyMISP):NameError: name 'PyMISP' is not defined

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-upstream
Projects
None yet
Development

No branches or pull requests

5 participants