-
-
Notifications
You must be signed in to change notification settings - Fork 768
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
Undefined constant "Spatie\Backup\Commands\SIGINT" #1288
Comments
I have the same issue after upgrading. I'm also running a windows dev environment. I see that Laravel Backup doesnt support windows servers but I'm hopeful theres a fix that allows me to continue using windows to develop even if it can't ultimately take a backup. Apache (XAMPP) |
Same here |
This particular error is caused by SIGINT not being available on Windows. I'd accept a PR that adds a check for windows to avoid that particular piece of code. If the fix is not too ugly, I'll consider merging it in 👍 |
I have encountered the same problem on my forge machine (linux). It happens when I use the Reproduction:
use App\Console\Commands\MyCommand;
use Illuminate\Support\Facades\Artisan;
Route::get('/reproduction', function () {
Artisan::call(MyCommand::class);
return '👀';
});
OS: Ubuntu 20.04.2 LTS |
Having also the same problem in our CI, running composer in the |
For those who got the same error, since linux php alpine image doesn't have the |
Feel free to PR improvements! |
Hola, yo tengo el mismo problema, la extensión está instalada correctamente y el entorno está en producción con la última versión de Laravel Nova: [2022-08-13 04:12:13] local.ERROR: Undefined constant "Spatie\Backup\Tasks\Backup\SIGINT" {"userId":1,"exception":"[object] (Error(code: 0): Undefined constant "Spatie\Backup\Tasks\Backup\SIGINT" at /home/*************************/public_html/vendor/spatie/laravel-backup/src/Tasks/Backup/BackupJob.php:148) Gracias. |
I fixed this issue by disabling Signals $backupJob = BackupJobFactory::createFromArray(config('backup')); $backupJob->disableSignals(); |
Since 7.3.4 I get this error in the console from composer install/update and any artisan commands.
I reverted to 7.3.3, and it worked, so I think it may be an issue or conflict.
IIS
PHP 8.0.3
laravel/framework 8.36.2
spatie/laravel-backup 7.4
Edit: This may be because of my Windows (development) environment. PCNTL does not work on Windows and is a requirement from the new upstream
spatie/laravel-signal-aware-command
.The text was updated successfully, but these errors were encountered: