Issue with Laravel Background Jobs in Laravel Forge
Hello everyone,
I am experiencing an issue with the background jobs in my Laravel application hosted on Laravel Forge. These jobs were working correctly for a few months, but recently I started receiving the following error:
Warning: require(/home/forge/feinesweb.ingenieros-im3.com/vendor/composer/../spatie/flare-client-php/src/helpers.php): Failed to open stream: No such file or directory in /home/forge/feinesweb.ingenieros-im3.com/vendor/composer/autoload_real.php on line 41
Fatal error: Uncaught Error: Failed opening required '/home/forge/feinesweb.ingenieros-im3.com/vendor/composer/../spatie/flare-client-php/src/helpers.php' (include_path='.:/usr/share/php') in /home/forge/feinesweb.ingenieros-im3.com/vendor/composer/autoload_real.php:41 Stack trace: #0 /home/forge/feinesweb.ingenieros-im3.com/vendor/composer/autoload_real.php(45): {closure}() #1 /home/forge/feinesweb.ingenieros-im3.com/vendor/autoload.php(25): ComposerAutoloaderInit1d7f5c186e26c3c00cdb9104d38791a1::getLoader() #2 /home/forge/feinesweb.ingenieros-im3.com/artisan(18): require('...') #3 {main} thrown in /home/forge/feinesweb.ingenieros-im3.com/vendor/composer/autoload_real.php on line 41
Warning: require(/home/forge/feinesweb.ingenieros-im3.com/vendor/composer/../spatie/flare-client-php/src/helpers.php): Failed to open stream: No such file or directory in /home/forge/feinesweb.ingenieros-im3.com/vendor/composer/autoload_real.php on line 41
Fatal error: Uncaught Error: Failed opening required '/home/forge/feinesweb.ingenieros-im3.com/vendor/composer/../spatie/flare-client-php/src/helpers.php' (include_path='.:/usr/share/php') in /home/forge/feinesweb.ingenieros-im3.com/vendor/composer/autoload_real.php:41 Stack trace: #0 /home/forge/feinesweb.ingenieros-im3.com/vendor/composer/autoload_real.php(45): {closure}() #1 /home/forge/feinesweb.ingenieros-im3.com/vendor/autoload.php(25): ComposerAutoloaderInit1d7f5c186e26c3c00cdb9104d38791a1::getLoader() #2 /home/forge/feinesweb.ingenieros-im3.com/artisan(18): require('...') #3 {main} thrown in /home/forge/feinesweb.ingenieros-im3.com/vendor/composer/autoload_real.php on line 41
I have tried several solutions to resolve this issue:
Manually installing the library: I ran composer install and composer update, but the error persists. Restarting the workers: I restarted the workers through Laravel Forge, which temporarily fixes the jobs, but they eventually fail again. I suspect that the issue might be related to the jobs' resource consumption, but I am unsure how to diagnose or solve this problem.
Has anyone faced a similar issue or has any suggestions on how I can resolve this error? Any help or advice would be greatly appreciated.
Thank you in advance!
Please or to participate in this conversation.