-
Notifications
You must be signed in to change notification settings - Fork 237
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
Can't run any analyzer #353
Comments
I have the same error |
I'm seeing the same issue with the Shodan integration. |
I have the same issue. What is happening is that Cortex don't seem to pass the JSON object to the analyzers. I tried to login to the container and run an analyzer manually with the command line and it works. So the issue don't come from the analyzer but from how cortex call them. Here is a how I successfully ran an analyzer from the container: ./myAnalyzer.py |
My issue was caused by our custom Docker configuration in
Both of these settings together broke how Cortex runs stuff via Docker. |
I solved this issue by upgrading cortexutlils Python library. |
Cortex 3 passes in this data via a file now. See: #176 Cortex 3 now calls your analyzer with Otherwise, I believe omitting the job-directory environment variable and settings reverts Cortex to passing the input data in via stdin. I haven't confirmed this though. Another note, if you're mounting a host directory to the job directory within the container --- make sure the permissions are set correctly to allow the account running cortex within the container to access the directory. |
Describe the bug
Running any analyzer in cortex gives the following error :
To Reproduce
Steps to reproduce the behavior:
Start Cortex version 3.1.1-1

Add any analyzer
run analyzer
Expected behavior
Analyzer return a report for the observables
Environment:
-Docker version 20.10.5, build 55c4c88
Additional Context
docker-compose.yml
The text was updated successfully, but these errors were encountered: