• Hello,

    Since the update of our FOG server (1.5.9.RC2 to 1.5.9.111). The syslog and daemon file of my Linux machine fills up very quickly with errors concerning FOG services. Each time, the error “PHP Fatal error: Uncaught Exception: Missing one or more extensions. in /var/www/html/fog/commons/init.php:437”.
    I have checked that the PHP dependencies are installed, no problem there. My server version is Debian 10

    Have you already encountered this problem?

    Thank you in advance for your answers !

  • Moderator

    @george1421 Well I’m kind of answering my own question here.

    php -m | grep -e gettext -e mysqli
    

    If they are installed on the OPs system then they should be visible with the php -m command.

  • Moderator

    @captain_adam Ok looking in the code it appears that php needs these two extensions at this point in the code.

    gettext
    mysqli

    @developers how would we check php to see if these two extensions were missing. I would think if the mysqli extension was missing that the web ui would fall flat on it face. I kind of thing the same about gettext


  • @george1421 Here is an extract from the Syslog file:

    Aug 19 13:13:47 SRV-FOG systemd[1]: FOGSnapinReplicator.service: Main process exited, code=exited, status=255/EXCEPTION
    Aug 19 13:13:47 SRV-FOG systemd[1]: FOGSnapinReplicator.service: Failed with result 'exit-code'.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGImageSize.service: Service RestartSec=1s expired, scheduling restart.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGImageSize.service: Scheduled restart job, restart counter is at 12604.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGPingHosts.service: Service RestartSec=1s expired, scheduling restart.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGPingHosts.service: Scheduled restart job, restart counter is at 12605.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGScheduler.service: Service RestartSec=1s expired, scheduling restart.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGScheduler.service: Scheduled restart job, restart counter is at 12605.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGImageReplicator.service: Service RestartSec=1s expired, scheduling restart.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGImageReplicator.service: Scheduled restart job, restart counter is at 12605.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGMulticastManager.service: Service RestartSec=1s expired, scheduling restart.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGMulticastManager.service: Scheduled restart job, restart counter is at 12302.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGSnapinReplicator.service: Service RestartSec=1s expired, scheduling restart.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGSnapinReplicator.service: Scheduled restart job, restart counter is at 12605.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGSnapinHash.service: Service RestartSec=1s expired, scheduling restart.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGSnapinHash.service: Scheduled restart job, restart counter is at 12605.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Stopped FOGSnapinHash.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Started FOGSnapinHash.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Stopped FOGSnapinReplicator.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Started FOGSnapinReplicator.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Stopped FOGMulticastManager.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Started FOGMulticastManager.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Stopped FOGImageReplicator.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Started FOGImageReplicator.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Stopped FOGScheduler.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Started FOGScheduler.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Stopped FOGPingHosts.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Started FOGPingHosts.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Stopped FOGImageSize.
    Aug 19 13:13:49 SRV-FOG systemd[1]: Started FOGImageSize.
    Aug 19 13:13:49 SRV-FOG env[415]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/html/fog/commons/init.php:437
    Aug 19 13:13:49 SRV-FOG env[415]: Stack trace:
    Aug 19 13:13:49 SRV-FOG env[415]: #0 /var/www/html/fog/commons/init.php(304): Initiator::_extCheck()
    Aug 19 13:13:49 SRV-FOG env[415]: #1 /var/www/html/fog/commons/base.inc.php(47): Initiator::startInit()
    Aug 19 13:13:49 SRV-FOG env[415]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/html/f...')
    Aug 19 13:13:49 SRV-FOG env[415]: #3 /opt/fog/service/FOGSnapinHash/FOGSnapinHash(25): require('/opt/fog/servic...')
    Aug 19 13:13:49 SRV-FOG env[415]: #4 {main}
    Aug 19 13:13:49 SRV-FOG env[415]:   thrown in /var/www/html/fog/commons/init.php on line 437
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGSnapinHash.service: Main process exited, code=exited, status=255/EXCEPTION
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGSnapinHash.service: Failed with result 'exit-code'.
    Aug 19 13:13:49 SRV-FOG env[421]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/html/fog/commons/init.php:437
    Aug 19 13:13:49 SRV-FOG env[421]: Stack trace:
    Aug 19 13:13:49 SRV-FOG env[421]: #0 /var/www/html/fog/commons/init.php(304): Initiator::_extCheck()
    Aug 19 13:13:49 SRV-FOG env[421]: #1 /var/www/html/fog/commons/base.inc.php(47): Initiator::startInit()
    Aug 19 13:13:49 SRV-FOG env[421]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/html/f...')
    Aug 19 13:13:49 SRV-FOG env[421]: #3 /opt/fog/service/FOGImageSize/FOGImageSize(25): require('/opt/fog/servic...')
    Aug 19 13:13:49 SRV-FOG env[421]: #4 {main}
    Aug 19 13:13:49 SRV-FOG env[421]:   thrown in /var/www/html/fog/commons/init.php on line 437
    Aug 19 13:13:49 SRV-FOG env[418]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/html/fog/commons/init.php:437
    Aug 19 13:13:49 SRV-FOG env[418]: Stack trace:
    Aug 19 13:13:49 SRV-FOG env[418]: #0 /var/www/html/fog/commons/init.php(304): Initiator::_extCheck()
    Aug 19 13:13:49 SRV-FOG env[418]: #1 /var/www/html/fog/commons/base.inc.php(47): Initiator::startInit()
    Aug 19 13:13:49 SRV-FOG env[418]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/html/f...')
    Aug 19 13:13:49 SRV-FOG env[418]: #3 /opt/fog/service/FOGImageReplicator/FOGImageReplicator(25): require('/opt/fog/servic...')
    Aug 19 13:13:49 SRV-FOG env[418]: #4 {main}
    Aug 19 13:13:49 SRV-FOG env[418]:   thrown in /var/www/html/fog/commons/init.php on line 437
    Aug 19 13:13:49 SRV-FOG env[417]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/html/fog/commons/init.php:437
    Aug 19 13:13:49 SRV-FOG env[417]: Stack trace:
    Aug 19 13:13:49 SRV-FOG env[417]: #0 /var/www/html/fog/commons/init.php(304): Initiator::_extCheck()
    Aug 19 13:13:49 SRV-FOG env[417]: #1 /var/www/html/fog/commons/base.inc.php(47): Initiator::startInit()
    Aug 19 13:13:49 SRV-FOG env[417]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/html/f...')
    Aug 19 13:13:49 SRV-FOG env[417]: #3 /opt/fog/service/FOGMulticastManager/FOGMulticastManager(25): require('/opt/fog/servic...')
    Aug 19 13:13:49 SRV-FOG env[417]: #4 {main}
    Aug 19 13:13:49 SRV-FOG env[417]:   thrown in /var/www/html/fog/commons/init.php on line 437
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGImageReplicator.service: Main process exited, code=exited, status=255/EXCEPTION
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGImageReplicator.service: Failed with result 'exit-code'.
    Aug 19 13:13:49 SRV-FOG env[420]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/html/fog/commons/init.php:437
    Aug 19 13:13:49 SRV-FOG env[420]: Stack trace:
    Aug 19 13:13:49 SRV-FOG env[420]: #0 /var/www/html/fog/commons/init.php(304): Initiator::_extCheck()
    Aug 19 13:13:49 SRV-FOG env[420]: #1 /var/www/html/fog/commons/base.inc.php(47): Initiator::startInit()
    Aug 19 13:13:49 SRV-FOG env[420]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/html/f...')
    Aug 19 13:13:49 SRV-FOG env[420]: #3 /opt/fog/service/FOGPingHosts/FOGPingHosts(25): require('/opt/fog/servic...')
    Aug 19 13:13:49 SRV-FOG env[420]: #4 {main}
    Aug 19 13:13:49 SRV-FOG env[420]:   thrown in /var/www/html/fog/commons/init.php on line 437
    Aug 19 13:13:49 SRV-FOG env[419]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/html/fog/commons/init.php:437
    Aug 19 13:13:49 SRV-FOG env[419]: Stack trace:
    Aug 19 13:13:49 SRV-FOG env[419]: #0 /var/www/html/fog/commons/init.php(304): Initiator::_extCheck()
    Aug 19 13:13:49 SRV-FOG env[419]: #1 /var/www/html/fog/commons/base.inc.php(47): Initiator::startInit()
    Aug 19 13:13:49 SRV-FOG env[419]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/html/f...')
    Aug 19 13:13:49 SRV-FOG env[419]: #3 /opt/fog/service/FOGTaskScheduler/FOGTaskScheduler(25): require('/opt/fog/servic...')
    Aug 19 13:13:49 SRV-FOG env[419]: #4 {main}
    Aug 19 13:13:49 SRV-FOG env[419]:   thrown in /var/www/html/fog/commons/init.php on line 437
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGMulticastManager.service: Main process exited, code=exited, status=255/EXCEPTION
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGMulticastManager.service: Failed with result 'exit-code'.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGPingHosts.service: Main process exited, code=exited, status=255/EXCEPTION
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGPingHosts.service: Failed with result 'exit-code'.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGImageSize.service: Main process exited, code=exited, status=255/EXCEPTION
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGImageSize.service: Failed with result 'exit-code'.
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGScheduler.service: Main process exited, code=exited, status=255/EXCEPTION
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGScheduler.service: Failed with result 'exit-code'.
    Aug 19 13:13:49 SRV-FOG env[416]: PHP Fatal error:  Uncaught Exception: Missing one or more extensions. in /var/www/html/fog/commons/init.php:437
    Aug 19 13:13:49 SRV-FOG env[416]: Stack trace:
    Aug 19 13:13:49 SRV-FOG env[416]: #0 /var/www/html/fog/commons/init.php(304): Initiator::_extCheck()
    Aug 19 13:13:49 SRV-FOG env[416]: #1 /var/www/html/fog/commons/base.inc.php(47): Initiator::startInit()
    Aug 19 13:13:49 SRV-FOG env[416]: #2 /opt/fog/service/lib/service_lib.php(22): require('/var/www/html/f...')
    Aug 19 13:13:49 SRV-FOG env[416]: #3 /opt/fog/service/FOGSnapinReplicator/FOGSnapinReplicator(25): require('/opt/fog/servic...')
    Aug 19 13:13:49 SRV-FOG env[416]: #4 {main}
    Aug 19 13:13:49 SRV-FOG env[416]:   thrown in /var/www/html/fog/commons/init.php on line 437
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGSnapinReplicator.service: Main process exited, code=exited, status=255/EXCEPTION
    Aug 19 13:13:49 SRV-FOG systemd[1]: FOGSnapinReplicator.service: Failed with result 'exit-code'.
    

    I have no error in the PHP-FPM

  • Moderator

    @captain_adam It would be helpful to see the actual error from syslog as well as any errors in the php-fpm log file from the FOG server.

289
Online

8.8k
Users

15.5k
Topics

144.5k
Posts