nextcloud-cron.service hard-coded to php-legacy
Task Info (Flyspray) | |
---|---|
Opened By | Richard Neumann (rne) |
Task ID | 78324 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-04-28 22:36:36 UTC |
Status | Assigned |
Assignee | Sergej Pupykin (sergej) |
Assignee | David Runge (dvzrv) |
Details
Description: In nextcloud 26.0.1-1 the binary of the systemd unit /usr/lib/systemd/system/nextcloud-cron.service is (still) hard-coded to php-legacy. Since nextcloud 26, nextcloud can be run with php, though, which is what I am doing, resulting in this error:
/srv/http> systemctl status nextcloud-cron.service 04/29/2023 12:20:36 AM × nextcloud-cron.service - Nextcloud; run cron.php Loaded: loaded (/usr/lib/systemd/system/nextcloud-cron.service; static) Active: failed (Result: exit-code) since Sat 2023-04-29 00:20:01 CEST; 2min 9s ago Duration: 2ms TriggeredBy: ● nextcloud-cron.timer Process: 694 ExecStart=/usr/bin/php-legacy -f /usr/share/webapps/nextcloud/cron.php (code=exited, status=203/EXEC) Main PID: 694 (code=exited, status=203/EXEC) CPU: 1ms
Apr 29 00:20:01 srv.richard-neumann.de systemd[1]: Started Nextcloud; run cron.php. Apr 29 00:20:01 srv.richard-neumann.de (p-legacy)[694]: nextcloud-cron.service: Failed to locate executable /usr/bin/php-legacy: No such file or directory Apr 29 00:20:01 srv.richard-neumann.de (p-legacy)[694]: nextcloud-cron.service: Failed at step EXEC spawning /usr/bin/php-legacy: No such file or directory Apr 29 00:20:01 srv.richard-neumann.de systemd[1]: nextcloud-cron.service: Main process exited, code=exited, status=203/EXEC Apr 29 00:20:01 srv.richard-neumann.de systemd[1]: nextcloud-cron.service: Failed with result 'exit-code'.
I worked around this problem for now by systemd-editing the respective unit.