Yet nothing is going out. It used to work (as recent as a client last month), so I’m not sure what has changed. I have checked, and the server date is:
I’ve reverted back to my backup, and it works again (on 5.6), but when I try and upgrade I get:
"PHP message: PHP Warning: require(): open_basedir restriction in effect. File(/home/ultranerds/web/foobar.co.uk/vendor/autoload.php) is not within the allowed path(s): (/home/ultranerds/.composer:/home/ultranerds/web/foobar.co.uk/public_html:/home/ultranerds/web/foobar.co.uk/private:/home/ultranerds/web/foobar.co.uk/public_shtml:/home/ultranerds/tmp:/tmp:/var/www/html:/bin:/usr/bin:/usr/local/bin:/usr/share:/opt) in /home/ultranerds/web/foobar.co.uk/public_html/index.php on line 26; PHP message: PHP Warning: require(/home/ultranerds/web/foobar.co.uk/vendor/autoload.php): Failed to open stream: Operation not permitted in /home/ultranerds/web/foobar.co.uk/public_html/index.php on line 26; PHP message: PHP Fatal error: Uncaught Error: Failed opening required ‘/home/ultranerds/web/foobar.co.uk/public_html/…/vendor/autoload.php’ (include_path=‘.:/usr/share/php’) in /home/ultranerds/web/foobar.co.uk/public_html/index.php:26
Stack trace:
I fixed this originally when manually uploading the files by editing app/Utils/SystemHealth.php , and commenting out:
// foreach (new \RecursiveIteratorIterator($directoryIterator) as $file) {
// if (strpos($file->getPathname(), '.git') !== false) {
// continue;
// }
// //nlog($file->getPathname());
// if ($file->isFile() && ! $file->isWritable()) {
// return "{$file->getFileName()} is not writable";
// }
// }
That stops that error - but comes up again when you try and do an automatic update (as I guess its downloading the new code, then trying to run it, which then gives the open_basedir error again)
The issue I think comes from it looking in /home/ultranerds/web/foobar.co.uk/logs, and finding that the nginx logs are owned by root - which is normal. Really it should check for fileownership (it seems like fileowner would do this trick - no?)
Anyway - I still can’t get it going (getting the same error message as before)
cd /home/ultranerds/web/invoicesnew.ultranerds.co.uk && php8.2 artisan schedule:run
I just get:
INFO No scheduled commands are ready to run.
Am I missing something? (the one in red should have gone out on the 29th of last month, as you can see, and the other 2 , today)
UPDATE Those 3 invoices just went out ok. Must have needed to wait for the cron to run at a certain point. Hopefully it carries on ticking over happily like it used to now =)