Koozali.org: home of the SME Server

php-fpm services down

Offline mab974

  • *
  • 84
  • +1/-0
php-fpm services down
« on: December 12, 2021, 10:00:51 AM »
Hi all,

No access this morning to my php webapps.
It seems that php-fpm services failed to restart at 03:45

Here is the log :
Code: [Select]
-- L'unité (unit) php-fpm.service a commencé à recharger sa configuration.
déc. 12 03:45:04 host.domain.org php-fpm[29602]: [12-Dec-2021 03:45:04] NOTICE: Reloading in progress ...
déc. 12 03:45:04 host.domain.org php-fpm[29602]: [12-Dec-2021 03:45:04] NOTICE: reloading: execvp("/usr/sbin/php-fpm", {"/usr/sbin/php-fpm", "--nodaemonize"})
déc. 12 03:45:04 host.domain.org systemd[1]: Reloaded The PHP FastCGI Process Manager.
-- Subject: L'unité (unit) php-fpm.service a terminé de recharger configuration
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- L'unité (unit) php-fpm.service a terminé de recharger configuration,
-- avec le résultat done.
déc. 12 03:45:04 host.domain.org php-fpm[29602]: Sun Dec 12 03:45:04 2021 (29602): Fatal Error Unable to create lock file: Bad file descriptor (9)
déc. 12 03:45:04 host.domain.org systemd[1]: php-fpm.service: main process exited, code=exited, status=254/n/a
déc. 12 03:45:04 host.domain.org systemd[1]: Unit php-fpm.service entered failed state.
déc. 12 03:45:04 host.domain.org systemd[1]: php-fpm.service failed.

and in php-fpm.log
Code: [Select]
Dec 12 03:45:10 host php-fpm: PHP Fatal error:  apc_mmap: mkstemp on /tmp/apc.CFFYEN failed in Unknown on line 0
Did not see a cron job at this time.... on sunday ??

Any ideas ?

Offline Jean-Philippe Pialasse

  • *
  • 2,743
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: php-fpm services down
« Reply #1 on: December 12, 2021, 10:04:04 AM »
log rotate ?

Offline mab974

  • *
  • 84
  • +1/-0
Re: php-fpm services down
« Reply #2 on: December 12, 2021, 03:24:01 PM »
exactly,
logrotate in cron.daily.
php-fpm reload failed first then all other phpXX-php-fpm also failed.

so what does the following error mean?
 
Quote
apc_mmap: mkstemp on /tmp/apc.CFFYEN failed
Something to do with apcu?

Offline mab974

  • *
  • 84
  • +1/-0
Re: php-fpm services down
« Reply #3 on: December 12, 2021, 03:36:34 PM »
I just saw another error in a cron.daily.
Quote
error: error opening /var/log/php/php/error.log-20210425: Permission non accordée
I’m gonna fix this access problem and test it tonight