Failed PHP interpreter update on Ubuntu 20.04  [SOLVED]

Have you discovered a bug? Tell us about it.
Post Reply
Eoler
Posts: 17
Joined: Tue 2. Jul 2019, 01:20

Failed PHP interpreter update on Ubuntu 20.04

Post by Eoler »

I'm sure the cause of the problem is within KeyHelp
System Logs tell that KeyHelp PHP interpreters update failed.


Server operating system + version
Ubuntu 20.04


Server virtualization technology used
KVM on Hetzner


KeyHelp version + build number
23.1.1 Build 3016


Problem description / error messages
PHP CRON jobs are failing with:

Code: Select all

/opt/keyhelp/php/7.4/bin/php: error while loading shared libraries: libpq.so.5: cannot open shared object file: No such file or directory
for all KeyHelp installed PHP interpreters


Additional information
Control panel/Logs:

Code: Select all

[28-Jun-2023 04:12:46] INFO | step: update php versions
[28-Jun-2023 04:12:46] INFO | update version from "8.1.18_20230508164738" to "8.1.20_20230626150903"
[28-Jun-2023 04:12:46] INFO | update tmpfs for full access to /tmp
[28-Jun-2023 04:13:02] ERROR | failed to install version "8.1" (Syntax error in keyhelp-php81-fpm after update.)
[28-Jun-2023 04:13:02] INFO | update version from "8.0.28_20230508162553" to "8.0.29_20230626144854"
[28-Jun-2023 04:13:02] INFO | update tmpfs for full access to /tmp
[28-Jun-2023 04:13:27] ERROR | failed to install version "8.0" (Syntax error in keyhelp-php80-fpm after update.)
[28-Jun-2023 04:13:28] INFO | update version from "7.4.33_20230124105026" to "7.4.33_20230626143011"
[28-Jun-2023 04:13:28] INFO | update tmpfs for full access to /tmp
[28-Jun-2023 04:13:44] ERROR | failed to install version "7.4" (Syntax error in keyhelp-php74-fpm after update.)
[28-Jun-2023 04:13:44] INFO | update version from "7.3.33_20230124125320" to "7.3.33_20230626141042"
[28-Jun-2023 04:13:44] INFO | update tmpfs for full access to /tmp
[28-Jun-2023 04:14:00] ERROR | failed to install version "7.3" (Syntax error in keyhelp-php73-fpm after update.)
[28-Jun-2023 04:14:00] INFO | update version from "7.0.33_20230124115414" to "7.0.33_20230626131134"
[28-Jun-2023 04:14:00] INFO | update tmpfs for full access to /tmp
[28-Jun-2023 04:14:18] ERROR | failed to install version "7.0" (Syntax error in keyhelp-php70-fpm after update.)
[28-Jun-2023 04:14:18] INFO | step: install new php versions
User avatar
Fezzi
Posts: 132
Joined: Wed 12. Dec 2018, 04:04

Re: Failed PHP interpreter update on Ubuntu 20.04  [SOLVED]

Post by Fezzi »

A colleague in another forum had this issue as well he found a fix:
The problem could be solved with

apt-get install libpq5

and only happened to me with Ubuntu 20.04 Server.
Not with Debian Buster.

In my opinion, this is not correct, I informed Keyhelp Support.
I hope that helps
Gruss

Fezzi

Everyone can do something, no one can do everything.
User avatar
Alexander
Keyweb AG
Posts: 3842
Joined: Wed 20. Jan 2016, 02:23

Re: Failed PHP interpreter update on Ubuntu 20.04

Post by Alexander »

This package is installed during the installation routine of the PHP-interpreters. If it cannot be installed (due to issues on the server), then it is caused by an already existing problem (at that time) with apt on the system.

Like Fezzi said, "apt install libpq5" is the correct solution.

---

Edit-1: I am currently recompiling with additional countermeasures against the occurring issue for Ubuntu 20 systems. The new interpreters will go live in the next 1-2 hours.

Edit-2: Typo fixed.

Edit-3: Recompiled Interpreter for Ubuntu 20 released.
Mit freundlichen Grüßen / Best regards
Alexander Mahr

**************************************************************
Keyweb AG - Die Hosting Marke
Neuwerkstr. 45/46, 99084 Erfurt / Germany
http://www.keyweb.de - http://www.keyhelp.de
**************************************************************
select name from me;
Posts: 579
Joined: Tue 9. Feb 2016, 16:44

Re: Failed PHP interpreter update on Ubuntu 20.04

Post by select name from me; »

I had the same issue on one of our servers (Ubuntu 20.04.06). Other servers with the same OS had no issues.

"apt update; apt install libpg5" ends with an error: E: Unable to locate package libpg5

"apt install libpq-dev" and a reboot fixed the problem.
Viele Grüße, Christian
select name from me;
Posts: 579
Joined: Tue 9. Feb 2016, 16:44

Re: Failed PHP interpreter update on Ubuntu 20.04

Post by select name from me; »

There is a typo in the two posts above. It should be apt-get install libpq5 instead of libpg.

However, "apt list --installed | grep pq" shows that the package libpq5/focal-updates is installed on my server with this issue.
The issue was fixed on my server only after installing libpq-dev and rebooting.

I hope this helps.
Viele Grüße, Christian
Post Reply