FatalErrorException Error: Maximum execution time of 30 seconds exceeded

8.3k views Asked by At

I'm trying to run my symfony 3.3 project in the docker. It's working fine out of docker. All containers are running: nginx:alpine, php-fpm 7.2, PostgreSQL, rabbitMQ.

I'm receiving this error:

(1/1) FatalErrorException
Error: Maximum execution time of 30 seconds exceeded

in AnalyzeServiceReferencesPass.php (line 71)
at AnalyzeServiceReferencesPass->processValue()
in AnalyzeServiceReferencesPass.php (line 118)

dev.log

request.CRITICAL: Uncaught PHP Exception Symfony\Component\Debug\Exception\FatalErrorException: "Error: Maximum execution time of 30 seconds exceeded" at /var/www/html/vendor/twig/twig/lib/Twig/Extension/Core.php line 710 {"exception":"[object] (Symfony\Component\Debug\Exception\FatalErrorException(code: 0): Error: Maximum execution time of 30 seconds exceeded at /var/www/html/vendor/twig/twig/lib/Twig/Extension/Core.php:710)"}

2

There are 2 answers

3
Erwan Sturzenegger On

Its means that your request is very slowly, so you need to increase your max_execution time max_execution_time = 900 or ini_set('max_execution_time', 900); or change driver of request also check if you have a infinite cycles

0
peter On

RUN echo "max_execution_time=900" >> /usr/local/etc/php/conf.d/docker-php-ext-xdebug.ini line added to Docker file made it work.