Php8.2-fpm php-fpm8.2: error while loading shared libraries: /lib/aarch64-linux-gnu/libssl.so.3

Creating a bug report/issue

I have searched the existing open and closed issues

Required Information

  • DietPi version | cat /boot/dietpi/.version
    G_DIETPI_VERSION_CORE=9
    G_DIETPI_VERSION_SUB=7
    G_DIETPI_VERSION_RC=1
    G_GITBRANCH=‘master’
    G_GITOWNER=‘MichaIng’

  • Distro version | echo $G_DISTRO_NAME $G_RASPBIAN
    bookworm 0

  • Kernel version | uname --all
    Linux DietPi 6.1.21-v8+ #1642 SMP PREEMPT Mon Apr 3 17:24:16 BST 2023 aarch64 GNU/Linux

  • Architecture | dpkg --print-architecture
    arm64

  • SBC model | echo $G_HW_MODEL_NAME or (EG: RPi3)
    RPi 3 Model B (aarch64)

  • Power supply used | (EG: 5V 1A RAVpower)
    raspberry default

  • SD card used | (EG: SanDisk ultra)
    Lexar 256 gb

Additional Information (if applicable)

  • Software title | php
  • Was the software title installed freshly or updated/migrated?
    update
  • Can this issue be replicated on a fresh installation of DietPi?
    Sending bug report │
│  - Command: curl --connect-timeout 8 --retry 1 --retry-delay 4 -sSvT 82b019e4-5b8f-44fd-bae9-50a91a91a2cf.7z         │ 
│ sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com:29248/bugreport/                                                   │ 
│  - Exit code: 127                                                                                                    │ 
│  - DietPi version: v9.7.1 (MichaIng/master) | HW_MODEL: 3 | HW_ARCH: 3 | DISTRO: 7                                   │ 
│  - Error log:                                                                                                        │ 
│ curl: /lib/aarch64-linux-gnu/libssl.so.3: unsupported version 0 of Verdef record                                     │ 
│ curl: error while loading shared libraries: /lib/aarch64-linux-gnu/libssl.so.3: unsupported version 0 of Verneed     │ 
│ record
  • Bug report ID | echo $G_HW_UUID

here the copy paste:

 Sending bug report                                                                                                   │ 
│  - Command: curl --connect-timeout 8 --retry 1 --retry-delay 4 -sSvT 82b019e4-5b8f-44fd-bae9-50a91a91a2cf.7z         │ 
│ sftp://dietpi-survey:upload2dietpi@ssh.dietpi.com:29248/bugreport/                                                   │ 
│  - Exit code: 127                                                                                                    │ 
│  - DietPi version: v9.7.1 (MichaIng/master) | HW_MODEL: 3 | HW_ARCH: 3 | DISTRO: 7                                   │ 
│  - Error log:                                                                                                        │ 
│ curl: /lib/aarch64-linux-gnu/libssl.so.3: unsupported version 0 of Verdef record                                     │ 
│ curl: error while loading shared libraries: /lib/aarch64-linux-gnu/libssl.so.3: unsupported version 0 of Verneed     │ 
│ record

Steps to reproduce

php8.2-fpm not starting.

systemctl start php8.2-fpm.service 
Job for php8.2-fpm.service failed because the control process exited with error code.
See "systemctl status php8.2-fpm.service" and "journalctl -xeu php8.2-fpm.service" for details.

journalclt log:

Sep 17 10:49:36 DietPi php-fpm8.2[5102]: /usr/sbin/php-fpm8.2: /lib/aarch64-linux-gnu/libssl.so.3: unsupported version 0 of Verdef record
Sep 17 10:49:36 DietPi php-fpm8.2[5102]: /usr/sbin/php-fpm8.2: error while loading shared libraries: /lib/aarch64-linux-gnu/libssl.so.3: unsupported version 0 of Verneed record
Sep 17 10:49:36 DietPi systemd[1]: php8.2-fpm.service: Main process exited, code=exited, status=127/n/a

Expected behaviour

Actual behaviour

pihole not working since php8.2-fpm not running.

Extra details

n.a.

You could try to reinstall libssl3 package

apt install --reinstall libssl3

PiHole adblocking should be working still, just web interface is not reachable.

@Joulinar i’ve ran the command. Then the service was failing.
I reinstalled pihole and unbound after purging php8.2-fpm and i got this error:

/boot/dietpi/dietpi-software: line 3765: * 3 : syntax error: operand expected (error token is "* 3 ")

can you check for kernel error messages

dmesg -l 0,1,2,3

I’ve tried to reinstall the packages and ran

and that is the output

# dmesg -l 0,1,2,3
[    1.024982] bcm2708_fb soc:fb: Unable to determine number of FBs. Disabling driver.

… Should I re-install dietpi either look for another OS?

usually it should work. At least you are the only one reporting issues with PHP. I did a test installation of Nextcloud on RPi4 without issues

root@DietPi4:~# systemctl status php8.2-fpm
● php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager
     Loaded: loaded (/lib/systemd/system/php8.2-fpm.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/php8.2-fpm.service.d
             └─dietpi.conf
     Active: active (running) since Tue 2024-10-08 12:20:17 CEST; 15s ago
       Docs: man:php-fpm8.2(8)
    Process: 20172 ExecStartPost=/usr/lib/php/php-fpm-socket-helper install /run/php/php-fpm.sock /etc/php/8.2/fpm/pool.d/www.conf 82 (code=exited, status=0/SUCCESS)
   Main PID: 20161 (php-fpm8.2)
     Status: "Processes active: 0, idle: 4, Requests: 0, slow: 0, Traffic: 0.00req/sec"
      Tasks: 5 (limit: 9352)
        CPU: 234ms
     CGroup: /system.slice/php8.2-fpm.service
             ├─20161 "php-fpm: master process (/etc/php/8.2/fpm/php-fpm.conf)"
             ├─20168 "php-fpm: pool www"
             ├─20169 "php-fpm: pool www"
             ├─20170 "php-fpm: pool www"
             └─20171 "php-fpm: pool www"

Oct 08 12:20:17 DietPi4 systemd[1]: Starting php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...
Oct 08 12:20:17 DietPi4 systemd[1]: Started php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager.
root@DietPi4:~# journalctl -u php8.2-fpm
Oct 08 12:16:59 DietPi4 systemd[1]: Starting php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...
Oct 08 12:16:59 DietPi4 systemd[1]: Started php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager.
Oct 08 12:16:59 DietPi4 systemd[1]: Stopping php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...
Oct 08 12:17:00 DietPi4 systemd[1]: php8.2-fpm.service: Deactivated successfully.
Oct 08 12:17:00 DietPi4 systemd[1]: Stopped php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager.
Oct 08 12:17:00 DietPi4 systemd[1]: Starting php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...
Oct 08 12:17:00 DietPi4 systemd[1]: Started php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager.
Oct 08 12:17:00 DietPi4 systemd[1]: Stopping php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...
Oct 08 12:17:00 DietPi4 systemd[1]: php8.2-fpm.service: Deactivated successfully.
Oct 08 12:17:00 DietPi4 systemd[1]: Stopped php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager.
Oct 08 12:17:20 DietPi4 systemd[1]: Starting php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...
Oct 08 12:17:20 DietPi4 systemd[1]: Started php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager.
Oct 08 12:20:17 DietPi4 systemd[1]: Stopping php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...
Oct 08 12:20:17 DietPi4 systemd[1]: php8.2-fpm.service: Deactivated successfully.
Oct 08 12:20:17 DietPi4 systemd[1]: Stopped php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager.
Oct 08 12:20:17 DietPi4 systemd[1]: Starting php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager...
Oct 08 12:20:17 DietPi4 systemd[1]: Started php8.2-fpm.service - The PHP 8.2 FastCGI Process Manager.

Have you installed PHP8.2 alone or together with another application? At least from our side, we only install the php-fpm service together with one of the web server applications

I only installed unbound + pihole and it fails.

is that a new system? Would it be possible to start with a fresh image? Maybe using a different SD card or USB pen stick?

Can you please show the curl and libssl package versions:

dpkg -l | grep -E 'curl|libssl'

And does curl fail in general?

curl --version

[ OK ] DietPi-Software | rm -Rf /etc/php//apache2 /var/lib/php/modules//apache2
/boot/dietpi/dietpi-software: line 3765: * 3 : syntax error: operand expected (error token is "* 3 ")
the line that has the error is:

 G_CONFIG_INJECT 'pm.max_children[[:blank:]=]' "pm.max_children = $(( $G_HW_CPU_CORES * 3 ))" "/etc/php/$PHP_VERSION/fpm/pool.d/www.conf"

i checked my file:

cat /etc/php/8.2/fpm/pool.d/www.conf | grep pm.max_children
pm.max_children = 5

so why this command is failing?

ps. flashing and reinstalling is not my favourite option.

The variable seems to not be set:

echo $G_HW_CPU_CORES

Can you show the content of this file:

cat /boot/dietpi/.hw_model
echo $G_HW_CPU_CORES

 cat /boot/dietpi/.hw_model
G_HW_MODEL=3
G_HW_MODEL_NAME='RPi 3 Model B (aarch64)'
G_HW_ARCH=3
G_HW_ARCH_NAME='aarch64'
G_HW_CPUID=0
G_HW_CPU_CORES=
G_DISTRO=7
G_DISTRO_NAME='bookworm'
G_ROOTFS_DEV='/dev/mmcblk0p2'
G_HW_UUID='82b019e4-5b8f-44fd-bae9-50a91a91a2cf'
G_RASPBIAN=0
G_HW_ONBOARD_WIFI=1
G_HW_REVISION='a02082'
G_HW_PCB_REVISION=2
G_HW_MEMORY_SIZE=1024
G_HW_MANUFACTURER='Sony UK'

yes $G_HW_CPU_CORES is not set.

and I can add this:

cat /proc/device-tree/model
Raspberry Pi 3 Model B Rev 1.2

Can you show the output of this:

nproc --all

nproc was not available, something went wrong while reinstalling kernel. i’m flashing. i’m defeated.

Hmm that is part of the “essential” “coreutils” package, hence is forcefully installed with every APT action:

apt install --reinstall coreutils

This topic was automatically closed 178 days after the last reply. New replies are no longer allowed.