سلام
دوستان من برای ارسال پیامک چون سیستم درگی میشد و منتظر جواب میموند از صف استفاده کردم
توی لوکال که خب باید از دستور زیر استفاده کرد
php artisan queue:work
من توی هاست اشتراکی انجام میدم با چند مدل cron job اما اتفاقی نمیفته
سایت در addon domain قرار داره ک توی تصاویر میتونید ببینید
مشکل کجاست و چطور کد رو باید تغییر بدم؟


@salar.mohammad2013
دوست عزیز مشکل دوستمون همین طور که گفت این توابع امنیتی هستن و هر کدومشون یک ایراد دارند شرکت ها میان این توابع ها رو تو disable_fuction .ini قرار میدن تا جلوی حملات رو بگیرن ی کامند دیگه میفرستم اینو تست کن (path درست خودت قرار بده) :
php -d disable_functions="" ....path.../artisan schedule:run
اگر مشکلت برطرف نشد دستور queue:work تست کن ببین اجرا میشه.
شرکت هام این توابع را فعال نمیکنن
دیدی دیگه نمیشه بهم ایمیل بزنی ی هاست بهت بدم مشکلت برطرف بشه
golshahimohammadreza@gmail.com
شاید پاسخ شما همینجا باشد
همه ی کد های زیر رو هم تست کردم چیزی نشد
* * * * * cd /home/test-salar.ir && php artisan schedule:run >> /dev/null 2>&1
* * * * * /usr/local/bin/ea-php73 -q /home/test-salar.ir/artisan published:episode >/dev/null 2>&1
* * * * * /usr/local/bin/ea-php73 -q /home/test-salar/artisan schedule:run >/dev/null 2>&1
* * * * * /usr/local/bin/ea-php73 /home/salarcod/test-salar.ir/artisan schedule:run >> /dev/null 2>&1
* * * * * php /home/salarcod/test-salar.ir/artisan schedule:run >> /dev/null 2>&1
* * * * * /usr/local/bin/ea-php73 /home/salarcod/public_html/test-salar.ir && php artisan schedule:run >> /dev/null 2>&1
توی kernel هم کد زیر رو قرار دادم
protected function schedule(Schedule $schedule)
{
$schedule->command('queue:work --tries=3')
->cron('* * * * *')
->withoutOverlapping();
}
@mohaligateway
@Rp76
@muhammad
@mrn
@samanzdev
@juza66
@websaz
@hosseinshirinegad98
@rezajahangir
@ali.bayat
@hesammousavi
@mhyeganeh
@Alimotreb
@AliValinejad
@ali.bayat سلام و متشکر
طبق مستندات لاراول با دستور زیر توی کران جاب schedule اجرا میشه و توی او من گفتم ک صف ها کارشون انجام شه مثلا
* * * * * cd /path-to-your-project && php artisan schedule:run >> /dev/null 2>&1
من تست کردم و سرور به تابعی که توی console>kernel تعریف کردیم ارتباط میده و کد زیر هر یک دقیقه اجرا میشه و با log تست کردمش
protected function schedule(Schedule $schedule)
{
$schedule->command('queue:work')->everyMinute()->withoutOverlapping();
}
دوست عزیز من دقیقا برای صف میخوام این کار رو انجام بدم و schedule رو واسه اون استفاده کردم
راه دیگه ای هست بتونم صفم رو اجرا کنم توی هاست اشتراکی؟
job ها توی database هست و انجام نمیشن
توی لوکال ب جای queue:work از schedule run استفاده میکنم تا شبیه ساز کد بالا برای سرور باشه و قشنگ اجرا میشه
اما توی هاست کار نمیکنه
cache:clear هم کردم
راهی هست صف توی هاست اشتراکی اجرا بشه؟ @ali.bayat
@mehdi.shahabbasian
خب من log داخل kernel و schedule قرار دادم و توی هاست با همون کران جاب اجرا میشد و لاگ گرفته میشد
مورد متفاوت دیگری رو داره اجازه ران php که فرمودید؟؟؟
یک مورد دیگه هم بگم که وقتی cash:clear میکنم یه خطایی برای من لاگ میگیره در رابطه با یک تابع که غیر فعال شده توی php.ini سرور
خطا ی لاگ گرفته شده رو در انتها میزارم اما ب این ربطی نداره ب نظرم چون تابع رو خودم توی لوکال غیر فعال کردم prog_get_status و خط ب خط ارور هاست رو بهم دقیق توی لوکال لاگ گرفت اما کدم اجرا میشد صف اجرا میشد
ایا توی هاست موضوع متفاوته ؟
@ali.bayat @mehdi.shahabbasian
[2021-06-23 02:36:04] local.ERROR: pcntl_signal() has been disabled for security reasons {"exception":"[object] (ErrorException(code: 0): pcntl_signal() has been disabled for security reasons at /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:578)
[stacktrace]
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'pcntl_signal() ...', '/home/salarcod/...', 578, Array)
#1 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(578): pcntl_signal(15, Object(Closure))
#2 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(102): Illuminate\\Queue\\Worker->listenForSignals()
#3 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(112): Illuminate\\Queue\\Worker->daemon('database', 'default', Object(Illuminate\\Queue\\WorkerOptions))
#4 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(96): Illuminate\\Queue\\Console\\WorkCommand->runWorker('database', 'default')
#5 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()
#6 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#7 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#8 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#9 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Container.php(596): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#10 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call(Array)
#11 /home/salarcod/test-salar.ir/vendor/symfony/console/Command/Command.php(256): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#12 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#13 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(971): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#14 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(290): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#15 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(166): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#16 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#17 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#18 /home/salarcod/test-salar.ir/artisan(36): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#19 {main}
"} دو تا تابع بوده من یکیو تست کردم
تابع دوم رو میزنم اروری بهم نمیده زمپ رو هم دوباره استارت میکنم کش رو هم پاک میکنم کار میکنه بازم
این خطای هاست منه
@mehdi.shahabbasian @ali.bayat
ربطی داره ب نظرتون؟
[2021-06-23 02:36:03] local.ERROR: proc_get_status() has been disabled for security reasons {"exception":"[object] (ErrorException(code: 0): proc_get_status() has been disabled for security reasons at /home/salarcod/test-salar.ir/vendor/symfony/process/Process.php:1354)
[stacktrace]
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'proc_get_status...', '/home/salarcod/...', 1354, Array)
#1 /home/salarcod/test-salar.ir/vendor/symfony/process/Process.php(1354): proc_get_status(Resource id #701)
#2 /home/salarcod/test-salar.ir/vendor/symfony/process/Process.php(362): Symfony\\Component\\Process\\Process->updateStatus(false)
#3 /home/salarcod/test-salar.ir/vendor/symfony/process/Process.php(247): Symfony\\Component\\Process\\Process->start(NULL, Array)
#4 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/Event.php(223): Symfony\\Component\\Process\\Process->run()
#5 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/Event.php(200): Illuminate\\Console\\Scheduling\\Event->runCommandInForeground(Object(Illuminate\\Foundation\\Application))
#6 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php(143): Illuminate\\Console\\Scheduling\\Event->run(Object(Illuminate\\Foundation\\Application))
#7 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php(102): Illuminate\\Console\\Scheduling\\ScheduleRunCommand->runEvent(Object(Illuminate\\Console\\Scheduling\\Event))
#8 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Console\\Scheduling\\ScheduleRunCommand->handle(Object(Illuminate\\Console\\Scheduling\\Schedule), Object(Illuminate\\Events\\Dispatcher), Object(App\\Exceptions\\Handler))
#9 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#10 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#11 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#12 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Container.php(596): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#13 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call(Array)
#14 /home/salarcod/test-salar.ir/vendor/symfony/console/Command/Command.php(256): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#15 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#16 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(971): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#17 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(290): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Console\\Scheduling\\ScheduleRunCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#18 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(166): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#19 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#20 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#21 /home/salarcod/test-salar.ir/artisan(36): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#22 {main}
"}
[2021-06-23 02:36:04] local.ERROR: pcntl_signal() has been disabled for security reasons {"exception":"[object] (ErrorException(code: 0): pcntl_signal() has been disabled for security reasons at /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:578)
[stacktrace]
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'pcntl_signal() ...', '/home/salarcod/...', 578, Array)
#1 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(578): pcntl_signal(15, Object(Closure))
#2 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(102): Illuminate\\Queue\\Worker->listenForSignals()
#3 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(112): Illuminate\\Queue\\Worker->daemon('database', 'default', Object(Illuminate\\Queue\\WorkerOptions))
#4 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(96): Illuminate\\Queue\\Console\\WorkCommand->runWorker('database', 'default')
#5 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()
#6 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#7 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#8 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#9 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Container.php(596): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#10 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call(Array)
#11 /home/salarcod/test-salar.ir/vendor/symfony/console/Command/Command.php(256): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#12 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#13 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(971): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#14 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(290): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#15 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(166): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#16 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#17 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#18 /home/salarcod/test-salar.ir/artisan(36): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#19 {main}
"} دستور زیر رو اجرا کردم برای توابعی که هاستم بلاک کرده و خروجیش ب شکل زیر بود
<?php
echo ini_get('disable_functions');
?>
shell, mail, symlink, ini_restore, mysql_list_dbs, popen, socket_select, socket_create, socket_create_listen, socket_create_pair, socket_listen, socket_accept, socket_bind, socket_strerror, socket_clear_error, socket_close, socket_connect, socket_get_option, socket_getpeername, socket_getsockname, socket_last_error, socket_read, socket_recv, socket_recvfrom, socket_send, socket_sendto, socket_set_block, socket_set_nonblock, socket_set_option, socket_shutdown, socket_write, readlink, symlink, link, pfsockopen, ini_alter, dl, openlog, syslog, pcntl_exec, pcntl_fork, pcntl_signal, pcntl_waitpid, pcntl_wexitstatus, pcntl_wifexited, pcntl_wifsignaled, pcntl_wifstopped, pcntl_wstopsig, pcntl_wtermsig, system, passthru, exec, proc_close, proc_get_status, proc_nice, proc_terminate, shell_exec, posix_access, posix_ctermid, posix_errno, posix_get_last_error, posix_getcwd, posix_getegid, posix_geteuid, posix_getgid, posix_getgrnam, posix_getgroups, posix_getlogin, posix_getpgid, posix_getpgrp, posix_getpid, posix_getppid, posix_getpwnam, posix_getrlimit, posix_getsid, posix_initgroups, posix_isatty, posix_kill, posix_mkfifo, posix_mknod, posix_setegid, posix_seteuid, posix_setgid, posix_setpgid, posix_setsid, posix_setuid, posix_strerror, posix_times, posix_ttyname, posix_uname, diskfreespace, disk_free_space, disk_total_space, sys_getloadavg, curl_multi_add_handle, curl_multi_close, curl_multi_exec, curl_multi_getcontent, curl_multi_info_read, curl_multi_init, curl_multi_remove_handle, curl_multi_select, phpinfoسلام
دوست عزیز @salar.mohammad2013
/usr/local/bin/ea-php73 /home/salarcod/test-salar.ir/artisan schedule:run
این کامند باید کار کنه مگر اینکه مسیر php که دارین بهش اشاره میکنید اشتباه باشه یا path پروژه . در هر صورت برای شما log به ایمیلتون ارسال میشه
@golshahimohammadreza
سپاس دوست عزیز بله مشکل cron حل شد ولی عمل انجام نمیشه
دو پیام اخر بنده رو ببینید لطفا
اول ک ارور داد ک ادرس رو پیدا نمیکنه قبل usr اسلش گذاشتم
الان هر دقیقه بهم ایمیل میکنه از طفش خطا داره با متن زیر
Running scheduled command: '/opt/cpanel/ea-php73/root/usr/bin/php.cagefs' 'artisan' queue:work > '/dev/null' 2>&1
عنوان ایمیل هم
Cron <salarcod@cloud84> /usr/local/bin/ea-php73 -d disable_functions=proc_open,proc_close /home/salarcod/test-salar.ir/artisan schedule:run
@salar.mohammad2013
کد رو به شکل زیر تغییر دادم دیگ ایمیل نیومد اتفاقی هم نیفتاد ولی
/usr/local/bin/ea-php73 -d disable_functions=proc_open,proc_close /home/salarcod/test-salar.ir/artisan schedule:run >> /dev/null 2>&1
کش رو هم پاک کردم لاگ جدید ب شکل زیره
[2021-06-23 14:27:02] production.ERROR: The Process class relies on proc_open, which is not available on your PHP installation. {"exception":"[object] (Symfony\\Component\\Process\\Exception\\LogicException(code: 0): The Process class relies on proc_open, which is not available on your PHP installation. at /home/salarcod/test-salar.ir/vendor/symfony/process/Process.php:144)
[stacktrace]
#0 /home/salarcod/test-salar.ir/vendor/symfony/process/Process.php(192): Symfony\\Component\\Process\\Process->__construct(Array, '/home/salarcod/...', NULL, NULL, NULL)
#1 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/Event.php(223): Symfony\\Component\\Process\\Process::fromShellCommandline(''/opt/cpanel/ea...', '/home/salarcod/...', NULL, NULL, NULL)
#2 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/Event.php(200): Illuminate\\Console\\Scheduling\\Event->runCommandInForeground(Object(Illuminate\\Foundation\\Application))
#3 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php(143): Illuminate\\Console\\Scheduling\\Event->run(Object(Illuminate\\Foundation\\Application))
#4 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php(102): Illuminate\\Console\\Scheduling\\ScheduleRunCommand->runEvent(Object(Illuminate\\Console\\Scheduling\\Event))
#5 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Console\\Scheduling\\ScheduleRunCommand->handle(Object(Illuminate\\Console\\Scheduling\\Schedule), Object(Illuminate\\Events\\Dispatcher), Object(NunoMaduro\\Collision\\Adapters\\Laravel\\ExceptionHandler))
#6 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#7 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#8 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#9 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Container.php(596): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#10 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call(Array)
#11 /home/salarcod/test-salar.ir/vendor/symfony/console/Command/Command.php(256): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#12 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#13 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(971): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#14 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(290): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Console\\Scheduling\\ScheduleRunCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#15 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(166): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#16 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#17 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#18 /home/salarcod/test-salar.ir/artisan(37): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#19 {main}
"}
[2021-06-23 14:27:02] production.ERROR: proc_get_status() has been disabled for security reasons {"exception":"[object] (ErrorException(code: 0): proc_get_status() has been disabled for security reasons at /home/salarcod/test-salar.ir/vendor/symfony/process/Process.php:1354)
[stacktrace]
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'proc_get_status...', '/home/salarcod/...', 1354, Array)
#1 /home/salarcod/test-salar.ir/vendor/symfony/process/Process.php(1354): proc_get_status(Resource id #701)
#2 /home/salarcod/test-salar.ir/vendor/symfony/process/Process.php(362): Symfony\\Component\\Process\\Process->updateStatus(false)
#3 /home/salarcod/test-salar.ir/vendor/symfony/process/Process.php(247): Symfony\\Component\\Process\\Process->start(NULL, Array)
#4 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/Event.php(223): Symfony\\Component\\Process\\Process->run()
#5 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/Event.php(200): Illuminate\\Console\\Scheduling\\Event->runCommandInForeground(Object(Illuminate\\Foundation\\Application))
#6 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php(143): Illuminate\\Console\\Scheduling\\Event->run(Object(Illuminate\\Foundation\\Application))
#7 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Scheduling/ScheduleRunCommand.php(102): Illuminate\\Console\\Scheduling\\ScheduleRunCommand->runEvent(Object(Illuminate\\Console\\Scheduling\\Event))
#8 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Console\\Scheduling\\ScheduleRunCommand->handle(Object(Illuminate\\Console\\Scheduling\\Schedule), Object(Illuminate\\Events\\Dispatcher), Object(App\\Exceptions\\Handler))
#9 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#10 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#11 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#12 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Container.php(596): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#13 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call(Array)
#14 /home/salarcod/test-salar.ir/vendor/symfony/console/Command/Command.php(256): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#15 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#16 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(971): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#17 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(290): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Console\\Scheduling\\ScheduleRunCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#18 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(166): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#19 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#20 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#21 /home/salarcod/test-salar.ir/artisan(36): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#22 {main}
"}
[2021-06-23 14:27:03] production.ERROR: pcntl_signal() has been disabled for security reasons {"exception":"[object] (ErrorException(code: 0): pcntl_signal() has been disabled for security reasons at /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:578)
[stacktrace]
#0 [internal function]: Illuminate\\Foundation\\Bootstrap\\HandleExceptions->handleError(2, 'pcntl_signal() ...', '/home/salarcod/...', 578, Array)
#1 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(578): pcntl_signal(15, Object(Closure))
#2 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Worker.php(102): Illuminate\\Queue\\Worker->listenForSignals()
#3 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(112): Illuminate\\Queue\\Worker->daemon('database', 'default', Object(Illuminate\\Queue\\WorkerOptions))
#4 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Queue/Console/WorkCommand.php(96): Illuminate\\Queue\\Console\\WorkCommand->runWorker('database', 'default')
#5 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(36): Illuminate\\Queue\\Console\\WorkCommand->handle()
#6 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Util.php(37): Illuminate\\Container\\BoundMethod::Illuminate\\Container\\{closure}()
#7 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(93): Illuminate\\Container\\Util::unwrapIfClosure(Object(Closure))
#8 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/BoundMethod.php(37): Illuminate\\Container\\BoundMethod::callBoundMethod(Object(Illuminate\\Foundation\\Application), Array, Object(Closure))
#9 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Container/Container.php(596): Illuminate\\Container\\BoundMethod::call(Object(Illuminate\\Foundation\\Application), Array, Array, NULL)
#10 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(134): Illuminate\\Container\\Container->call(Array)
#11 /home/salarcod/test-salar.ir/vendor/symfony/console/Command/Command.php(256): Illuminate\\Console\\Command->execute(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#12 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Command.php(121): Symfony\\Component\\Console\\Command\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Illuminate\\Console\\OutputStyle))
#13 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(971): Illuminate\\Console\\Command->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#14 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(290): Symfony\\Component\\Console\\Application->doRunCommand(Object(Illuminate\\Queue\\Console\\WorkCommand), Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#15 /home/salarcod/test-salar.ir/vendor/symfony/console/Application.php(166): Symfony\\Component\\Console\\Application->doRun(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#16 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Console/Application.php(93): Symfony\\Component\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#17 /home/salarcod/test-salar.ir/vendor/laravel/framework/src/Illuminate/Foundation/Console/Kernel.php(129): Illuminate\\Console\\Application->run(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#18 /home/salarcod/test-salar.ir/artisan(36): Illuminate\\Foundation\\Console\\Kernel->handle(Object(Symfony\\Component\\Console\\Input\\ArgvInput), Object(Symfony\\Component\\Console\\Output\\ConsoleOutput))
#19 {main}
"} @mehdi.shahabbasian سپاس دوست عزیز
یعنی مشکل من همینه؟ راهی نیست صف من اجرا شه؟
میدونید من ارسال پیامک دارم در هنگام ثبت سفارش
چون تابع ارسال پیامک منتظر جواب سمت سرور میمونه ک عملیات موفقیت امیز بوده یا نه چهار پنج ثانیه من رو نگه میداره در انجام عمل بعدیم توی سرور
برای همین از صف استفاده کردم و مشکلم بر طرف شده و ب راحتی کار میکنه
راه حل دیگه ای ذهنتون میرسه ک مشکلم حل شه؟
یا هاستی ک این توابع رو بلاک نکرده باشه سراغ دارید ک استفاده شده باشه؟