PHP8.1 stopped working after reboot with code status=7/BUS

Hello everyone, I’m a newbie on nextcloud and after deploying nextcloudpi 25, creating all my users and setting it the cloud, I reboot my pi and now, got code 503 on my brower.

After checking some services, I found that php8.1 is not running:

root@raspberrypi:/home/zakat# systemctl status php8.1-fpm.service
● php8.1-fpm.service - The PHP 8.1 FastCGI Process Manager
Loaded: loaded (/lib/systemd/system/php8.1-fpm.service; enabled; vendor preset: enabled)
Active: failed (Result: signal) since Tue 2023-04-18 11:32:17 CEST; 1min 26s ago
Docs: man:php-fpm8.1(8)
Process: 3119 ExecStart=/usr/sbin/php-fpm8.1 --nodaemonize --fpm-config /etc/php/8.1/fpm/php-fpm.conf (code=killed, signal=BUS)
Process: 3120 ExecStopPost=/usr/lib/php/php-fpm-socket-helper remove /run/php/php-fpm.sock /etc/php/8.1/fpm/pool.d/www.conf 81 (code=exited, status=0/SUCCESS)
Main PID: 3119 (code=killed, signal=BUS)
CPU: 47ms

Apr 18 11:32:17 raspberrypi systemd[1]: Starting The PHP 8.1 FastCGI Process Manager…
Apr 18 11:32:17 raspberrypi systemd[1]: php8.1-fpm.service: Main process exited, code=killed, status=7/BUS
Apr 18 11:32:17 raspberrypi systemd[1]: php8.1-fpm.service: Failed with result ‘signal’.
Apr 18 11:32:17 raspberrypi systemd[1]: Failed to start The PHP 8.1 FastCGI Process Manager.

I’m not sure about the issue and I don’t even now how it could be possible and how solve it.
Is there anyone who faced the same issue ?

Can you have a look at /var/run/php/ if php8.1-fpm.sock exist?

If so, do you have a line in /etc/php/8.1/fpm/pool.d/www.conf called

listen = /run/php/php8.1-fpm.sock ?

Is the user running the php8.1-fpm process the www-user? (e.g. ubuntu → www-data) ?

Hi,

thanks for the reply.

so for your question:
Can you have a look at /var/run/php/ if php8.1-fpm.sock exist?
the answer is no:
image

For the next point:
If so, do you have a line in /etc/php/8.1/fpm/pool.d/www.conf called

listen = /run/php/php8.1-fpm.sock ?

I have the following result:
root@raspberrypi:/var/run/php# cat /etc/php/8.1/fpm/pool.d/www.conf
[www]
user = www-data
group = www-data
listen = /run/php/php8.1-fpm.sock
listen.owner = www-data
listen.group = www-data
pm = static
pm.max_children = 10
pm.start_servers = 4
pm.min_spare_servers = 4
pm.max_spare_servers = 8
pm.status_path = /status
slowlog = log/$pool.log.slow

When I execute the command sudo php-fpm8.1 -t:
I got:
image

Don’t know from where to start :frowning:

What do you get by command

sudo df -h

Is there enough free space for all working dirs?

do you have enough free memory? (can be checked by)
sudo top
or

sudo watch -n 5 free -m

Do you have old scripts that start automatically on systemboot that use php?

Have you tried to completely reinstall php8.1 with all needed packages for nextcloud?
https://docs.nextcloud.com/server/latest/admin_manual/installation/source_installation.html#prerequisites-for-manual-installation

Hi Chrissi55,

after some tests and GPT chat :smiley:
I reinstall only php8.1-fpm:
sudo apt-get purge php8.1-fpm
sudo apt-get install php8.1-fpm

and it seems to be working now !!

Many thanks

1 Like

Nice :smile: :+1: