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
Support: Split frontend/background workers #8616
Comments
I have the same issue when running both the frontend and the workers within the same container. |
Yes, it should be possible to move the workers to a backend. The error you are getting is strange, could it be that you have installed supervisor:^5.0 ? version 5 is for PHP 8, won't work on PHP 7.4. It should be Also, for using the SimpleBackgroundJobs check on the coolacid/docker-misp check this repo: coolacid/docker-misp#184, @ostefano did a great job for properly configuring it, unfortunately it hasn't been merged yet |
The user of the worker processes comes from here: https://github.com/MISP/MISP/blob/2.4/app/Lib/Tools/BackgroundJobsTool.php#L720 Could you check/debug what is that function returning? |
If I look at the code you gave, I think it will never work as it's trying to gather information from the worker's process on the same host whereas my worker is working somewhere else. What do you think ? |
You are correct, the PID will not exist or will not match the correct process, the code should be refactored to properly diagnose workers running in a different host. |
I was correct:
For this "hacked" code:
|
…bled Will help to solve MISP#8616
…bled Will help to solve MISP#8616
…bled Will help to solve MISP#8616
…bled Will help to solve MISP#8616
…bled Will help to solve MISP#8616
…bled Will help to solve MISP#8616
Support Questions
Hi folks,
In a fork of the misp-docker from CoolAcid, I'm trying the split the workers from the frontend.
From version 2.4.151, using the SimpleBackgroundJobs configuration, would it possible to run the workers away from the rest of the frontend ?
I already tried but I'm getting PHP errors (see below)
Thanks for your help
MISP version
2.4.161
Operating System
Ubuntu
Operating System version
bullseys
PHP version
7.4
Browser
Chrome
Browser version
No response
Relevant log output
Extra attachments
No response
Code of Conduct
The text was updated successfully, but these errors were encountered: