Ubuntu Kernel 4.15.0-24.26 causes php7.2-fpm.service to hang at boot

Bug #1779761 reported by Giraffe
22
This bug affects 4 people
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

After updating the kernel on my QEMU based VPS running 18.04 Server to kernel ver. 4.15.0-24.26 i noticed that php7.2-fpm.service was't starting:

● php7.2-fpm.service - The PHP 7.2 FastCGI Process Manager
   Loaded: loaded (/lib/systemd/system/php7.2-fpm.service; enabled; vendor preset: enabled)
   Active: failed (Result: timeout) since Mon 2018-07-02 13:38:07 CEST; 15s ago
     Docs: man:php-fpm7.2(8)
  Process: 595 ExecStart=/usr/sbin/php-fpm7.2 --nodaemonize --fpm-config /etc/php/7.2/fpm/php-fpm.conf (code=killed, signal=TERM)
 Main PID: 595 (code=killed, signal=TERM)

jul 02 13:36:39 www systemd[1]: Starting The PHP 7.2 FastCGI Process Manager...
jul 02 13:38:07 www systemd[1]: php7.2-fpm.service: Start operation timed out. Terminating.
jul 02 13:38:07 www systemd[1]: php7.2-fpm.service: Failed with result 'timeout'.
jul 02 13:38:07 www systemd[1]: Failed to start The PHP 7.2 FastCGI Process Manager.

Setting timeout of php7.2-fpm.service to 300s i and running systemd-analyze blame, after rebooting, i noticed that php7.2-fpm.service takes about 3 minutes to start:
sudo systemd-analyze blame
   2min 54.715s php7.2-fpm.service

This issues is persistent when running kernel 4.15.0-24.26, i have tried multiple reboots.

After downgrading to Kernel ver. 4.15.0-23.25 the issues is gone.
Again I've tried multiple reboots of the server running 4.15.0-23.25 and PHP7.2-fpm.service starts withing seconds after rebooting.
---
ProblemType: Bug
AlsaVersion: Advanced Linux Sound Architecture Driver Version k4.15.0-24-generic.
AplayDevices: Error: [Errno 2] No such file or directory: 'aplay': 'aplay'
ApportVersion: 2.20.9-0ubuntu7.2
Architecture: amd64
ArecordDevices: Error: [Errno 2] No such file or directory: 'arecord': 'arecord'
AudioDevicesInUse: Error: command ['fuser', '-v', '/dev/snd/by-path', '/dev/snd/midiC0D0', '/dev/snd/pcmC0D1p', '/dev/snd/pcmC0D0c', '/dev/snd/pcmC0D0p', '/dev/snd/controlC0', '/dev/snd/seq', '/dev/snd/timer'] failed with exit code 1:
Card0.Amixer.info: Error: [Errno 2] No such file or directory: 'amixer': 'amixer'
Card0.Amixer.values: Error: [Errno 2] No such file or directory: 'amixer': 'amixer'
DistroRelease: Ubuntu 18.04
HibernationDevice: RESUME=UUID=120326fe-9fa7-4c70-95aa-7448f0ba5ed6
IwConfig: Error: [Errno 2] No such file or directory: 'iwconfig': 'iwconfig'
Lsusb:
 Bus 001 Device 002: ID 0627:0001 Adomax Technology Co., Ltd
 Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub
MachineType: QEMU Standard PC (i440FX + PIIX, 1996)
Package: linux (not installed)
ProcFB: 0 EFI VGA
ProcKernelCmdLine: BOOT_IMAGE=/boot/vmlinuz-4.15.0-24-generic root=UUID=56b7f88c-7204-4038-926f-477f130f257a ro
ProcVersionSignature: Ubuntu 4.15.0-24.26-generic 4.15.18
RelatedPackageVersions:
 linux-restricted-modules-4.15.0-24-generic N/A
 linux-backports-modules-4.15.0-24-generic N/A
 linux-firmware 1.173.1
RfKill: Error: [Errno 2] No such file or directory: 'rfkill': 'rfkill'
Tags: bionic
Uname: Linux 4.15.0-24-generic x86_64
UnreportableReason: This report is about a package that is not installed.
UpgradeStatus: Upgraded to bionic on 2018-04-13 (80 days ago)
UserGroups: adm cdrom dip lpadmin plugdev sambashare sudo www-data
_MarkForUpload: False
dmi.bios.date: 04/01/2014
dmi.bios.vendor: SeaBIOS
dmi.bios.version: rel-1.9.1-0-gb3ef39f-prebuilt.qemu-project.org
dmi.chassis.type: 1
dmi.chassis.vendor: QEMU
dmi.chassis.version: pc-i440fx-2.6
dmi.modalias: dmi:bvnSeaBIOS:bvrrel-1.9.1-0-gb3ef39f-prebuilt.qemu-project.org:bd04/01/2014:svnQEMU:pnStandardPC(i440FX+PIIX,1996):pvrpc-i440fx-2.6:cvnQEMU:ct1:cvrpc-i440fx-2.6:
dmi.product.name: Standard PC (i440FX + PIIX, 1996)
dmi.product.version: pc-i440fx-2.6
dmi.sys.vendor: QEMU

Revision history for this message
Giraffe (dodger-forum) wrote :
Revision history for this message
Giraffe (dodger-forum) wrote :

Added output of sudo cat /proc/version_signature > version.log

Revision history for this message
Giraffe (dodger-forum) wrote :

Added output of sudo lspci -vnvn > lspci-vnvn.log

Revision history for this message
Ubuntu Kernel Bot (ubuntu-kernel-bot) wrote : Missing required logs.

This bug is missing log files that will aid in diagnosing the problem. While running an Ubuntu kernel (not a mainline or third-party kernel) please enter the following command in a terminal window:

apport-collect 1779761

and then change the status of the bug to 'Confirmed'.

If, due to the nature of the issue you have encountered, you are unable to run this command, please add a comment stating that fact and change the bug status to 'Confirmed'.

This change has been made by an automated script, maintained by the Ubuntu Kernel Team.

Changed in linux (Ubuntu):
status: New → Incomplete
Revision history for this message
Giraffe (dodger-forum) wrote :

Unfortunately this is a production server and i can't keep rebooting the thing and upgrading and downgrading kernels indefinitely.

If it's absolutely critical to fixing this issue i am, however, willing tot setup a identical VPS and run apport-collect.

Changed in linux (Ubuntu):
status: Incomplete → Confirmed
Revision history for this message
Giraffe (dodger-forum) wrote : AlsaDevices.txt

apport information

tags: added: apport-collected bionic
description: updated
Revision history for this message
Giraffe (dodger-forum) wrote : CRDA.txt

apport information

Revision history for this message
Giraffe (dodger-forum) wrote : CurrentDmesg.txt

apport information

Revision history for this message
Giraffe (dodger-forum) wrote : Lspci.txt

apport information

Revision history for this message
Giraffe (dodger-forum) wrote : PciMultimedia.txt

apport information

Revision history for this message
Giraffe (dodger-forum) wrote : ProcCpuinfoMinimal.txt

apport information

Revision history for this message
Giraffe (dodger-forum) wrote : ProcEnviron.txt

apport information

Revision history for this message
Giraffe (dodger-forum) wrote : ProcInterrupts.txt

apport information

Revision history for this message
Giraffe (dodger-forum) wrote : ProcModules.txt

apport information

Revision history for this message
Giraffe (dodger-forum) wrote : UdevDb.txt

apport information

Revision history for this message
Giraffe (dodger-forum) wrote : WifiSyslog.txt

apport information

Revision history for this message
Nicolas Ramoudt (smoetje) wrote :

I recently experience exactly the same issue on a production server (Linode vps solution). Reading this specific log starts to make sense to me now. Started already a thread on https://www.linode.com/community/questions/17135/php72-fpmservice-failing-after-reboot-nginx-error-502

Issue started after migrating to a new vps plan but slower server. But despite a slower system, the kernel here appeared automatically upgraded to 4.17.17. Previous kernel was < 4.14 (but didn't know the exact number because didn't pay attention to as at that time, it worked fine then).

Symptoms are exactly the same:
php7.2-fpm.service: Start operation timed out. Terminating.
php7.2-fpm.service: Failed with result 'timeout'.
Failed to start The PHP 7.2 FastCGI Process Manager.

ssh login manually, do a "sudo service php7.2-fpm start" and then it works...

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.