-
Notifications
You must be signed in to change notification settings - Fork 645
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
Horizon dies after few seconds #375
Comments
Changed OS to Ubuntu 18.04 - this solved the problem. But some logging on horizon would be useful anyway. |
If someone has the same problem, mine was crashing because of this: |
@spwin how did you fix it? Or did PHP due to the upgrade just use less memory and it auto-fixed itself. |
@mfn I couldn't find other way than just comment
Works fine on local machine. If it's happening in production for you I think it's not a solution and you should increase memory on the server. |
Hardcoded memory usage checks are never awesome; I think it would be very interesting what |
Now it's
|
Im having same issue any resolution team.Can anybody explain how this calculation calculating --> |
You can see for yourself: horizon/src/MasterSupervisor.php Lines 322 to 325 in cc67213
What does Maybe the hardcoded value in horizon/src/Listeners/MonitorMasterSupervisorMemory.php Lines 19 to 21 in cc67213
|
Yeah we could maybe make this configurable. |
I have create a pull request. |
It would be nice to add an error of what’s happening as it just dies silently which is not helpful at all |
@spwin I agree. Maybe writing to a log could be useful. Can you create a separate issue and/or PR for this? |
The PR to make this configurable was merged. |
I wish the error was added... 3am last night I had to setup worker daemons because I couldn't work out why horizon was just shutting down. Then today only realizing the problem because of this issue. |
Hey,
I am trying to set up the local environment. I can see horizon dashboard with
Inactive
status.When I am running
php artisan horizon
the status changes toActive
for a second and then changes back toInactive
again. I tried usingsupervisor
to run horizon but the same problem. From the supervisor logs I can see that it's running for a second, then restarting and starting again all the time. Is there any way to debug horizon and check why is it dying? I tried runningphp artisan horizon -vvv
but every time the output is the same: Horizon started successfully. and then terminating the process. I can also confirm the queue is working fine when I run it usingphp artisan horizon:work
.Environment details:
Using Apache as a server on
Ubuntu 16.04.
Laravel version: 5.6.14
PHP version: 7.2
Redis server version: 4.0.11
Horizon version: 1.3
Configuration
config/queue.php
config/horizon.php
.env
Any suggestions?
The text was updated successfully, but these errors were encountered: