@Sebastian-Roth I collected the journalctl log as you suggested and found this:
First there are many of this entry:
Nov 17 11:29:39 host systemd[1]: Started FOGSnapinHash.
Nov 17 11:29:39 host env[26388]: /usr/bin/env: ‘php’: No such file or directory
Nov 17 11:29:39 host systemd[1]: FOGSnapinHash.service: Main process exited, code=exited, status=127/n/a
Nov 17 11:29:39 host systemd[1]: FOGSnapinHash.service: Failed with result 'exit-code'.
Nov 17 11:29:40 host systemd[1]: FOGSnapinHash.service: Scheduled restart job, restart counter is at 762.
Nov 17 11:29:40 host systemd[1]: Stopped FOGSnapinHash.
The problem here is that /lib/systemd/system/FOGSnapinHash.service
says:
ExecStart=/usr/bin/env php /opt/fog/service/FOGSnapinHash/FOGSnapinHash
but it doesn’t find php
this way, probably because at this point a full shell isn’t available yet (?).
I remember reading about this issue in FOG project years ago, I don’t know if it was fixed?
There are more errors in the log afterwards, they all look like this:
Nov 17 11:29:42 host systemd[1]: Started FOGSnapinHash.
Nov 17 11:29:42 host env[27676]: PHP Fatal error: Uncaught Exception: Missing one or more extensions. in /var/www/fog/commons/init.php:439
Nov 17 11:29:42 host env[27676]: Stack trace:
Nov 17 11:29:42 host env[27676]: #0 /var/www/fog/commons/init.php(306): Initiator::_extCheck()
Nov 17 11:29:42 host env[27676]: #1 /var/www/fog/commons/base.inc.php(46): Initiator::startInit()
Nov 17 11:29:42 host env[27676]: #2 /opt/fog/service/lib/service_lib.php(22): require('...')
Nov 17 11:29:42 host env[27676]: #3 /opt/fog/service/FOGSnapinHash/FOGSnapinHash(25): require('...')
Nov 17 11:29:42 host env[27676]: #4 {main}
Nov 17 11:29:42 host env[27676]: thrown in /var/www/fog/commons/init.php on line 439
Nov 17 11:29:42 host systemd[1]: FOGSnapinHash.service: Main process exited, code=exited, status=255/EXCEPTION
Nov 17 11:29:42 host systemd[1]: FOGSnapinHash.service: Failed with result 'exit-code'.
Nov 17 11:29:43 host systemd[1]: FOGSnapinHash.service: Scheduled restart job, restart counter is at 764.
Nov 17 11:29:43 host systemd[1]: Stopped FOGSnapinHash.
I check the code in init.php
, but the extension mentioned there are loaded in PHP (mysqli, gettext).
I assume it is related to the other error.