Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

pcntl_async_signals() has been disabled for security reasons || Ubuntu 16 - Laravel 5.6

I have a server running on Ubuntu 16.04 running Laravel app version 5.6.29 on PHP version 7.2.8.

I have set up some queue jobs to upload videos to the server and compile them and upload to s3 bucket. Suddenly from the past few hours,I am facing the following issue.

pcntl_async_signals() has been disabled for security reasons

I have also tried the solution from this thread https://stackoverflow.com/a/16262922
It's not helping either.

enter image description here


Edit : I also tried restarting queue worker, Running the queue worker manually. Also tried restarting supervisorctl.

sudo supervisorctl restart all
php artisan queue:restart
php artisan queue:work
like image 265
JItendra Rana Avatar asked Sep 04 '25 03:09

JItendra Rana


1 Answers

Check your php.ini configuration. You'll find a line:

disable_functions = pcntl_alarm,pcntl_fork,pcntl_waitpid........

You'll need to remove any functions that are called by the queue driver, such as pcntl_async_signals, pcntl_async_signals, pcntl_alarm, pcntl_signal.

like image 165
Brandon Novick Avatar answered Sep 06 '25 00:09

Brandon Novick



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!