So I dont know why but for some reason the web cron now generates a 500 internal error.
The cron job secret has been setup and been working fine for 1½ year now e.g. https://some-domain.net/webcron?secret=jhkhj78fd44x
And in env. file: WEBCRON_SECRET=jhkhj78fd44x
No, that is the annoying part. We have partitioned a server by using Plesk CP which we have installed to run various web apps for our company and when when you look in the Plesk server log it just states the error above. (See the screenshot).
Not sure how to provoke it to generate more informative errors for us.
One option would be to temporarily set APP_DEBUG to true in the .env file, however in general we don’t recommend using this option in production. If you can cut off public access to you site while it’s enabled it would be best.
Yeah that might be a way I guess.
Invoice Ninja is in production though on our server so we cannot leave that on of hours. But I guess we could do it just for a while and manually run the web cron and se if anything pops up while in debug mode?
So finally I had some time to look into this as the summer is now here. I went to /var/log/plesk-php81-fpm but there is no mentioning about Invoice Ninja.
I’ve enabled debug in the .env file:
Enabling debug doesn’t unfortunately remove the default error splash screen:
I did find this line in the "acess_ssl_log: 83.248.xx.xxx - - [11/Jul/2023:18:31:47 +0200] "GET /webcron?secret=vg45v4grf24 HTTP/1.0" 500 6822 "-" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36"
But that is the olny place where I can find a reference to the web cron job.
Replace the files that run the cron job with a fresh set of files maybe? OR something else?
I’m a bit out of ideas.
Any suggestions guys @david@hillel?
I’m guessing that the files responsible for web cron was corrupted I suppose. Can’t confirm it, but since it is now working it does seem to point that way.
While running the forced update it did end up with an error message:–> “Server Error”.
No specific details.
Is this something I should be concerned with?
Invoice Ninja do seem to be fully operational when browsing through it…
Should I maybe do a manual upload of the installation/ server files from the latest zip here: Simple URL Shortener ?