What version do you use for this extension?
Sorry - should have included all the versions in my original post.
_tasks
table in vanilla phpBB, at least I haven't found one in several installations._gc
to determine the interval between two cron job runs and _last_gc
to determine the last run of a cron job.Well my hosting provider support got back to me and said this:AndySt wrote: Tue Dec 24, 2024 10:38 am Well miraculously both the digest mailer and the auto backups started working again this morning.
I'm still waiting for some clarity from my hosting service but I know they were looking into the cron job for me so I suspect they found it was stuck and just kicked it off again.
I know I got the 'unusual' syntax from the installation instructions in the FAQ for the Digests extension and it was working fine. I don't really understand the explanation given by the hosting support guy for why it suddenly stopped working but it sounds like something changed on their side which invalidated the command syntax.Hi there,
The only thing that I can guess could have caused this issue was an update to the way the default PHP binary works, by automatically using the version of PHP that is chosen by the PHP selector in cPanel.
Your cron did use unusual syntax it was:
cd /home/fellfixe/public_html/ftfforum && bin/phpbbcli.php cron:run
And it should have been :
/opt/alt/php74/usr/bin/php -l /home/fellfixe/public_html/ftfforum/bin/phpbbcli.php cron:run
Or
/usr/bin/php -l /home/fellfixe/public_html/ftfforum/bin/phpbbcli.php cron:run
As you can see your cron comomand did not specify the application used to run the cron which I believe led to the incompatibility / issue.
There is no phpbb_tasks table in my installation. A cron.lock file does not exist in the /cache directory. The periodic tasks are still enabled in the extensions settings. The cron job appears to be executing but given the issue identified with the command syntax maybe the command is still wrong?thegioiluatsu wrote: Fri Dec 27, 2024 4:04 am The tasks processed by phpBB's cron job are stored in the phpbb_tasks database table... Additionally, check the cron.lock file in the /cache directory; if it exists, delete it to reset the cron lock. Ensure the periodic tasks are still enabled in the settings of the respective extensions, and verify that your system cron job (executing the cron.php file) is running correctly by reviewing logs from your hosting provider once they are available.
Where do I find these variables defined so I can check their values?Mike-on-Tour wrote: Fri Dec 27, 2024 9:41 am There is no_tasks
table in vanilla phpBB, at least I haven't found one in several installations.
AFAIK phpBB uses the config variables ending with_gc
to determine the interval between two cron job runs and_last_gc
to determine the last run of a cron job.
Thanks for that. I wasn't aware of that extension. Sounds very useful.Steve wrote: Sat Dec 28, 2024 7:52 pm This extension is great for viewing cron job status via ACP.
https://www.phpbb.com/customise/db/extension/cronstatus
/opt/alt/php74/usr/bin/php /home/fellfixe/public_html/ftfforum/bin/phpbbcli.php cron:run
and got these errors:In exception_subscriber.php line 51:
Could not obtain cron lock.
In run.php line 97:
CRON_LOCK_ERROR
cron:run [-h|--help] [-q|--quiet] [-v|vv|vvv|--verbose] [-V|--version] [--ansi] [--no-ansi] [-n|--no-interaction] [--safe-mode] [-e|
--env ENV] [--] <command> [<name>]
And what that shows me is there are multiple cron tasks which are coloured red.Steve wrote: Sat Dec 28, 2024 7:52 pm This extension is great for viewing cron job status via ACP.
https://www.phpbb.com/customise/db/extension/cronstatus
Code: Select all
/usr/bin/php /home/fellfixe/public_html/ftfforum/bin/phpbbcli.php cron:run
Yes I figured that but decided I would go with it until I got the main issue resolved. I have a feeling that changing the cron job command was a red herring and the real issue was the cron lock in phpBB.thecoalman wrote: Sat Dec 28, 2024 10:13 pm use:
The one you are using is specific to that php version and will fail when the php version is inevitably removed.Code: Select all
/usr/bin/php /home/fellfixe/public_html/ftfforum/bin/phpbbcli.php cron:run
I found it and have set it to 0 and am just waiting to see if the scheduled Digests mailer and the auto database backups resume later today.thecoalman wrote: Sat Dec 28, 2024 10:13 pm There is entry in phpBB_config table for cron lock, set it to 0.