I have a functionality where I am sending emails from a Job class file. But it's always going to the faild_jobs table by logging the following ...
ErrorException: file_put_contents(/home/runcloud/webapps/apiv2/storage/framework/views/a3ec55b820a51da4c32fecf3d29285507a159c23.php): failed to open stream: Permission denied in /home/runcloud/webapps/apiv2/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:135
This is what happens when I am trying this on our staging server but in my local, it's working fine.
The same thing is happening when I am trying to Log::info()
from the same job class file.
Also, for sometimes, it's also giving the following issue on the faild_jobs table ...
Illuminate\Queue\MaxAttemptsExceededException: App\Jobs\CurlSendEmail has been attempted too many times or run too long. The job may have previously timed out. in /home/runcloud/webapps/apiv2/vendor/laravel/framework/src/Illuminate/Queue/Worker.php:648
What should I need to do to make it work?