!Friendica Admins I've switched to PHP 8.2 for the cronjob after updating my instance to 2023.04-1. Since then I receive e-mails from cron with the content "Terminated".
The cron entry looks like this:
*/5 * * * * cd /path-to-installation/htdocs/ && /usr/bin/php8.2 --define apc.enable_cli=1 -f bin/worker.php
Any idea what might be wrong? Or is it normal to receive "Terminated" with PHP 8.2? I'm happy for any resource pointing me to more info as well.
reshared this
Michael Vogel
•Friendica Admins reshared this.
Daniel Siepmann
Friendica Admins reshared this.
utzer [Friendica]
•@Daniel Siepmann I'd probably do that. Or maybe there is a way to just start it and then abandon it?
Did you consider using the daemon instead, you could try it by manually starting it (disable the cron job first) and see how that works.
You need something like this in the config:
'pidfile' => '/tmp/friendica_daemon.pid',
@Michael Vogel
Friendica Admins reshared this.
utzer [Friendica]
•Friendica Admins reshared this.
Daniel Siepmann
php_path
option, as suggested in another answer here.Thanks for your suggestion.
Roland Häder likes this.
Friendica Admins reshared this.
utzer [Friendica]
•@Daniel Siepmann also check the timeout setting for cli is long and maybe also check that in the Friendica config you also use the same path for php as in the cron job.
'php_path' => '/usr/bin/php8.2',
I think it does not matter to have no such parameter, but in case you use php_path it should probably be the same value for this as the php 8.2 path.
Roland Häder likes this.
Friendica Admins reshared this.
Daniel Siepmann
Friendica Admins reshared this.
utzer [Friendica]
•Daniel Siepmann likes this.
Friendica Admins reshared this.
Daniel Siepmann
utzer [Friendica] likes this.
Friendica Admins reshared this.
Roland Häder
•--define apc.enable_cli=1
part from it?Friendica Admins reshared this.
Daniel Siepmann
php_path
option, as suggested in another answer here.Thanks for your suggestion.
Roland Häder likes this.
Friendica Admins reshared this.