JItendra Rana
JItendra Rana

Reputation: 141

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

Upvotes: 4

Views: 9290

Answers (1)

Brandon Novick
Brandon Novick

Reputation: 151

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.

Upvotes: 12

Related Questions