-
-
Notifications
You must be signed in to change notification settings - Fork 34
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
PHP_TIMEOUT doesn't update max_execution_time in php.ini #61
Comments
This should absolutely be resolved. Let me patch this up. |
Interesting, one of my clients has also been suffering for a few months with freescout (100 mailboxes, couple hundred users) with Signal 15 issues that would randomly appear, and techs have been unable to diagnose. If this resolves I'm sure they will be very pleased to hear that this no longer needs their attention. |
While this did fix the signal 15 issue for most installations, it didn't for one with 50+ mailboxes (mixed google and self-hosted IMAP servers). However, what seems to have fixed the issue in the end, was installing a separate cron job for the
Yes, the timezone is hard coded, could use the respective variable for it. Then map the asset in the docker compose file:
Bring down the stack and bring it back up using This has fixed the issue and for the past 12 hours, the I also set It's worth noting that multiple Not much love for laravel from my end. A lot of laravel based applications seem to be suffering from this. |
Darn. Yes this sounds like exactly what my client is seeing after moving to somewhere around freescout 1.8.71. We'll have to get a report into the developers on this one as unfortunately there doesn't seem to be a pattern to reproduce. EDIT: Also, if you'd like I can have a member of my team reach out to compare notes and double up to get an issue out onto the freescout repository. |
Summary
$PHP_TIMEOUT
variable only setsphp_admin_value[max_execution_time]
in/etc/phpXX/php-fpm.conf
but does not updatemax_execution_time
inphp.ini
.Steps to reproduce
Set
PHP_TIMEOUT=1200
environment variable for app container in docker compose file and fire up a new stack.Spawn a shell in that app container and verify:
In the case of the
tiredofit/freescout
image, the scheduler and queue processes are executed using the php-cli binary, which relies on the settings specified in/etc/phpXX/php.ini
. This works alright for smaller installations, but causes problems when using dozens of mailboxes. In that case, the fetch mail process gets interrupted with signal 15 once the timeout is reached.What is the expected correct behavior?
Possible fixes
Setting
PHP_MEMORY_LIMIT=3G
does update both,php-fpm.conf
andphp.ini
:Proposing to update the PHP-FPM scripts to set
max_execution_time
inphp.ini
based on$PHP_TIMEOUT
.Temporary Workaround
As specified in issue #50 .
env variables of the app container in the compose file now contains this:
which "works" ...
The text was updated successfully, but these errors were encountered: