Comment 6 for bug 1945687

Revision history for this message
vivek1115 (vivek1115) wrote : Re: [Bug 1945687] Re: package php7.4-fpm 7.4.3-4ubuntu2.6 failed to install/upgrade: installed php7.4-fpm package post-installation script subprocess returned error exit status 1

Hi Dan,

You are right. The owner of my / directory was not root but my regular
user. I set it back as root and now the problem is solved. I don't know how
it was changed, because I manually never changed the owner of my /
directory.

Anyway, thank you very much for providing support, solution and bug fix.
I wish you a great time and health ahead.

Yours sincerely,
Vivek Shukla

On Wed, Oct 13, 2021 at 2:30 PM Dan Streetman <email address hidden>
wrote:

> > I notice your /run directory is mounted as a temp filesystem
>
> that's normal, /run is a tmpfs on everyone's system
>
> > Detected unsafe path transition / → /run during canonicalization of
> /run.
>
> This means that the owner of your / and /run directories aren't the
> same, and more specifically that your / directory is probably not owned
> by root, can you check that? If so that is very likely the reason that
> systemd-tmpfiles didn't create the /run dir that php was expecting to
> use.
>
> --
> You received this bug notification because you are subscribed to the bug
> report.
> https://bugs.launchpad.net/bugs/1945687
>
> Title:
> package php7.4-fpm 7.4.3-4ubuntu2.6 failed to install/upgrade:
> installed php7.4-fpm package post-installation script subprocess
> returned error exit status 1
>
> Status in php7.4 package in Ubuntu:
> Incomplete
>
> Bug description:
> No socket file is created for php-fpm
>
> ProblemType: Package
> DistroRelease: Ubuntu 20.04
> Package: php7.4-fpm 7.4.3-4ubuntu2.6
> ProcVersionSignature: Ubuntu 5.4.0-86.97-generic 5.4.133
> Uname: Linux 5.4.0-86-generic x86_64
> ApportVersion: 2.20.11-0ubuntu27.20
> Architecture: amd64
> CasperMD5CheckResult: skip
> Date: Sun Sep 26 22:31:12 2021
> ErrorMessage: installed php7.4-fpm package post-installation script
> subprocess returned error exit status 1
> InstallationDate: Installed on 2018-08-09 (1148 days ago)
> InstallationMedia: Ubuntu 18.04.1 LTS "Bionic Beaver" - Release amd64
> (20180725)
> Python3Details: /usr/bin/python3.8, Python 3.8.10, python3-minimal,
> 3.8.2-0ubuntu2
> PythonDetails: /usr/bin/python2.7, Python 2.7.18, python-is-python2,
> 2.7.17-4
> RelatedPackageVersions:
> dpkg 1.19.7ubuntu3
> apt 2.0.6
> SourcePackage: php7.4
> Title: package php7.4-fpm 7.4.3-4ubuntu2.6 failed to install/upgrade:
> installed php7.4-fpm package post-installation script subprocess returned
> error exit status 1
> UpgradeStatus: Upgraded to focal on 2020-05-31 (486 days ago)
>
>
> Setting up php7.4-fpm (7.4.3-4ubuntu2.6) ...
> NOTICE: Not enabling PHP 7.4 FPM by default.
> NOTICE: To enable PHP 7.4 FPM in Apache2 do:
> NOTICE: a2enmod proxy_fcgi setenvif
> NOTICE: a2enconf php7.4-fpm
> NOTICE: You are seeing this message because you have apache2 package
> installed.
> Detected unsafe path transition / → /run during canonicalization of /run.
> Job for php7.4-fpm.service failed because the control process exited
> with error code.
> See "systemctl status php7.4-fpm.service" and "journalctl -xe" for
> details.
> invoke-rc.d: initscript php7.4-fpm, action "restart" failed.
> [0;1;31m● [0m php7.4-fpm.service - The PHP 7.4 FastCGI Process Manager
> Loaded: loaded (
> ]8;;file://Vivek-PC/lib/systemd/system/php7.4-fpm.service
> /lib/systemd/system/php7.4-fpm.service ]8;; ; enabled; vendor preset:
> enabled)
> Active: [0;1;31mfailed [0m (Result: exit-code) since Sun
> 2021-09-26 22:31:11 CEST; 32ms ago
> Docs: ]8;;man:php-fpm7.4(8) man:php-fpm7.4(8) ]8;;
> Process: 9683 ExecStart=/usr/sbin/php-fpm7.4 --nodaemonize
> --fpm-config /etc/php/7.4/fpm/php-fpm.conf [0;1;31m(code=exited,
> status=78) [0m
> Process: 9686 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove
> /run/php/php-fpm.sock /etc/php/7.4/fpm/pool.d/www.conf 74 (code=exited,
> status=0/SUCCESS)
> Main PID: 9683 (code=exited, status=78)
>
> Sep 26 22:31:11 Vivek-PC systemd[1]: Starting The PHP 7.4 FastCGI
> Process Manager...
> Sep 26 22:31:11 Vivek-PC php-fpm7.4[9683]: [26-Sep-2021 22:31:11] ERROR:
> unable to bind listening socket for address '/run/php/php7.4-fpm.sock': No
> such file or directory (2)
> Sep 26 22:31:11 Vivek-PC php-fpm7.4[9683]: [26-Sep-2021 22:31:11] ERROR:
> FPM initialization failed
> Sep 26 22:31:11 Vivek-PC systemd[1]: [0;1;39m [0;1;31m
> [0;1;39mphp7.4-fpm.service: Main process exited, code=exited,
> status=78/CONFIG [0m
> Sep 26 22:31:11 Vivek-PC systemd[1]: [0;1;38;5;185m [0;1;39m
> [0;1;38;5;185mphp7.4-fpm.service: Failed with result 'exit-code'. [0m
> Sep 26 22:31:11 Vivek-PC systemd[1]: [0;1;31m [0;1;39m [0;1;31mFailed
> to start The PHP 7.4 FastCGI Process Manager. [0m
> dpkg: error processing package php7.4-fpm (--configure):
> installed php7.4-fpm package post-installation script subprocess
> returned error exit status 1
>
> To manage notifications about this bug go to:
>
> https://bugs.launchpad.net/ubuntu/+source/php7.4/+bug/1945687/+subscriptions
>
>