-
-
Notifications
You must be signed in to change notification settings - Fork 445
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
Celery not working in develop branch #2554
Comments
🤔 you right let me check |
no nevermind kidding I am not replicating the same issue. Things work like expected. Have you tried again? Did you change anything regarding name queues for instance in the Sharing your personal configuration could help identify the issue if you didn't manage to solve it |
I haven’t changed anything except the variables related to AWS, but only those for secrets and IAM. I am running on an Ubuntu machine in the AWS infrastructure; the web application runs normally, but due to Celery errors, the jobs never finish. The secrets could be obtained as they should, and that’s the only problem. I am starting the application with the command |
It looks like the |
can you share the exact same config that you have for the ah one thing: which kind of SQS queues have you configured? Cause fifo ones are required. Standard ones won't work |
I didn't configured any SQS queues... Probably this is the problem? SQS queues are required when running on the AWS infrastructure? When running the
|
No. Anyway I tried to run IntelOwl from the Could it be possible that you changed something by hand in some files? |
Well then I'm gonna try again by cloning and changing only the env_file_app and the env_file_postgres. No logs appear even with the |
|
I'm sorry about not saying about this detail. Yes, actually I got this error when I use this option. |
that flag should not affect the output. That flag should help in understanding possible problems at build time in case the image did not build properly. Anyway I have just tried to build with that flag and in my test env it works. 🤔 It is very difficult to help if I can't replicate. The code affected is here and I thought that the queue names could have affected them. Otherwise there is no reason why it does not start. Last questions to see if that could be the case:
|
I will clone again and paste any erros that I get. Also, are you being able to create jobs? I can create them but they never get analyzed. Here are the answers for your questions:
|
did you build the image after moving to the
I think that you are still using the old image related to the bug in the develop branch that I solved. |
It looks like the variables in the |
any updates? The error in the build happens because you don't have any local build of the IntelOwl Project so that's normal if you have pruned everything locally. In that case, you should run I tried again with your env variables and this time I managed to replicate your error. There's some exception triggered by the AWS python library that is not correctly managed by the code. I am opening a PR soon about that |
reference: #2567 I merged it in |
Another exception has occurred, this time with the variable “ELASTIC_HOST,” which is not found in the settings object. This is likely the reason the errors in Celery still persist. Only the beat had the error.
|
can you please add |
ah and also re-build from the last commit, I added a little change |
honestly I don't get it, it should work the same for all the celery containers. Can you try to populate the env var |
Hi arakakiv, I changed the env var for elastic from I reverted the env var names and the names you are using are correct again, so your problem should be solved. Let me know if you have other problems. |
Just cloned everything again, removed all containers, volumes and images. Now, this error is occurring again. I started the application with the following commands: ./start test build
./start test up -- --build I am currently using the same environment configuration as I stated above. For some reason this error is occurring again |
This is quite strange, i didn't modify anything related to aws. Just one question: analysis are working correctly, aren't they ? |
I tried again, but the error with the aws_sqs variable has returned. I’m not sure what’s causing it; I checked the latest commits, and it doesn’t seem like this variable was modified at all. |
No, please set the env var in the
|
The same error continues, even when using |
I run
Then i run It works, let me know if this solve your problem. |
What happened
The celery components aren't working as expected; no job can be successfully executed by the GUI.
Environment
Latest changes in the
develop
branch.What did you expect to happen
No error being thrown just like the
prod
environment.How to reproduce your issue
Just run the start script in
test
mode.Error messages and logs
For both
celery_beat
andcelery_default
:The text was updated successfully, but these errors were encountered: