• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Resolved httpdmng liblog4cplus-1.1.so.9: cannot open shared object file

ESTUGO

Basic Pleskian
Hi there,
Hi IgorG,

we have a big problem with some plesk server (CentOS7.3), which we have upgrade from plesk 12.5 to plesk 17:


[root@74 ~]# /usr/local/psa/admin/bin/httpdmng --help
/usr/bin/sw-engine: error while loading shared libraries: liblog4cplus-1.1.so.9: cannot open shared object file: No such file or directory

[root@74 ~]# rpm -qi log4cplus | grep Vendor
Vendor : Fedora Project


Some server does not have this problem:

[root@ ~]# rpm -qi log4cplus | grep Vendor"
70: Vendor : Plesk
71: Vendor : Plesk
72: Vendor : Fedora Project
73: Vendor : Fedora Project
74: Vendor : Fedora Project

[root@ ~]# "yum list installed | grep log4cplus"
70: log4cplus.x86_64 1.1.2-centos7.16071418 @PLESK_17_0_17-dist
71: log4cplus.x86_64 1.1.2-centos7.16071418 @PLESK_17_0_17-dist
72: log4cplus.x86_64 1.1.3-0.4.rc3.el7 @epel
73: log4cplus.x86_64 1.1.3-0.4.rc3.el7 @epel
74: log4cplus.x86_64 1.1.3-0.4.rc3.el7 @epel


What can i do to fix this issue? We have uninstalled epel, before we upgraded plesk 12.5 to plesk 17.
 
On my test Plesk Onyx server on CentOS 7.2 I see following:

# rpm -qf /usr/lib64/liblog4cplus-1.1.so.9
log4cplus-1.1.2-centos7.16071418.x86_64

# rpm -qi log4cplus | grep Vendor
Vendor : Plesk

You need to install package log4cplus-1.1.2-cent..>
 
Hi IgorG,

thank you, but how can i install this package?

[~]# wget http://autoinstall.plesk.com/PSA_17...e/log4cplus-1.1.2-centos7.16071418.x86_64.rpm

[ ~]# rpm -i http://autoinstall.plesk.com/PSA_17...e/log4cplus-1.1.2-centos7.16071418.x86_64.rpm
package log4cplus-1.1.3-0.4.rc3.el7.x86_64 (which is newer than log4cplus-1.1.2-centos7.16071418.x86_64) is already installed
file /usr/lib64/liblog4cplus-1.1.so.9 from install of log4cplus-1.1.2-centos7.16071418.x86_64 conflicts with file from package log4cplus-1.1.3-0.4.rc3.el7.x86_64

[~]# rpm -e log4cplus-1.1.3-0.4.rc3.el7.x86_64
error: Failed dependencies:
liblog4cplus-1.1.so.9()(64bit) is needed by (installed) plesk-lmlib-0.2.3-centos7.825.16102518.x86_64
 
As you can see, missing liblog4cplus-1.1.so.9 is just symlink to real liblog4cplus-1.1.so.9.0.0 file:

# ll /usr/lib64/liblog4cplus-1.1.so.9
lrwxrwxrwx 1 root root 25 Jan 26 04:33 /usr/lib64/liblog4cplus-1.1.so.9 -> liblog4cplus-1.1.so.9.0.0

So, you can try to create the same symlink to appropriate file from your log4cplus-1.1.3-0.4.rc3.el7.x86_64 package.
But consequences are unpredictable. I think that problems with the upgrade will occur.
Another way is installation original package with force. Or remove log4cplus-1.1.3-0.4.rc3.el7.x86_64 with --nodeps and --justdb options and then install original log4cplus-1.1.2-centos7.16071418.x86_64
You can try it on your own risk.
 
Hi IgorG,

thank you, but it does not work :(

lrwxrwxrwx 1 root root 25 Jan 26 16:00 /usr/lib64/liblog4cplus-1.1.so.9 -> liblog4cplus-1.1.so.9.0.1
[root@www74 ~]# /usr/local/psa/admin/bin/httpdmng --help
/usr/bin/sw-engine: error while loading shared libraries: liblog4cplus-1.1.so.9: cannot open shared object file: Error 40

Removing with --nodeps and --justdb 's options are too risky.

I think it is a problem with epel-release and MU #12/13:
https://talk.plesk.com/threads/plesk-is-not-compatible-with-libopendkim-update.340991/
 
Same Probleme IN MU 15

Starting sw_engine service... failed

We have PLESK Onyx and we cannot start it

/usr/bin/sw-engine: error while loading shared libraries: liblog4cplus-1.1.so.9: cannot open shared object file: No such file or directory

Thanks
 
OS: CentOS Linux release 7.3.1611 (Core)
Plesk: psa-17.0.17-cos7.build1700161028.14.x86_64

I think i have the same problem. After updating the following packages from command line using yum update

Feb 24 15:48:36 Updated: python-perf-3.10.0-514.6.2.el7.x86_64
Feb 24 15:55:08 Updated: kernel-tools-libs-3.10.0-514.6.2.el7.x86_64
Feb 24 15:55:10 Updated: kernel-tools-3.10.0-514.6.2.el7.x86_64
Feb 24 15:55:12 Updated: 1:perl-JSON-XS-3.01-2.el7.x86_64
Feb 24 15:55:12 Updated: log4cplus-1.1.3-0.4.rc3.el7.x86_64
Feb 24 15:55:13 Updated: php-imap-5.4.16-7.el7.x86_64
Feb 24 15:55:16 Updated: kernel-headers-3.10.0-514.6.2.el7.x86_64
Feb 24 15:55:30 Installed: kernel-3.10.0-514.6.2.el7.x86_64

and rebooted i got 502 Bad Gateway / nginx error when trying to login to plesk Onyx https://host02.xxx.xxx:8443 (i have the latest version of plesk). Web sites are working ok. Just the plesk login page doesn't work.

Trying to restart plesk, i got the following:

[root@host02 bin]# /etc/init.d/psa restart
Plesk is down, performing full restart.
Starting sw_engine service... failed
Starting sw_cp_server service... already started
Starting mysql service... already started
Starting named service... already started
Starting mailer service... done
Starting spamfilter service... already started
Starting drweb service... done
Starting tomcat service... unused
Starting apache service... already started
Starting xinetd service... already started

[root@host02 bin]# /etc/init.d/sw-engine restart
Restarting sw-engine (via systemctl): Job for sw-engine.service failed because the control process exited with error code. See "systemctl status sw-engine.service" and "journalctl -xe" for details.
[FAILED]

[root@host02 bin]# systemctl status sw-engine.service -l
β sw-engine.service - Startup script for Panel sw-engine
Loaded: loaded (/usr/lib/systemd/system/sw-engine.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Fri 2017-02-24 16:51:50 EET; 2min 21s ago
Process: 5144 ExecStopPost=/usr/bin/find /run/lock/lmlib/ -mindepth 1 -delete (code=exited, status=0/SUCCESS)
Process: 5141 ExecStart=/usr/sbin/sw-engine-fpm --fpm-config /etc/sw-engine/sw-engine-fpm.conf -c /usr/local/psa/admin/conf/php.ini --nodaemonize --pid /run/sw-engine.pid (code=exited, status=127)
Main PID: 5141 (code=exited, status=127)

Feb 24 16:51:50 host02.xxx.xxx systemd[1]: Starting Startup script for Panel sw-engine...
Feb 24 16:51:50 host02.xxx.xxx sw-engine-fpm[5141]: /usr/sbin/sw-engine-fpm: error while loading shared libraries: liblog4cplus-1.1.so.9: cannot open shared object file: No such file or directory
Feb 24 16:51:50 host02.xxx.xxx systemd[1]: sw-engine.service: main process exited, code=exited, status=127/n/a
Feb 24 16:51:50 host02.xxx.xxx systemd[1]: Failed to start Startup script for Panel sw-engine.
Feb 24 16:51:50 host02.xxx.xxx systemd[1]: Unit sw-engine.service entered failed state.
Feb 24 16:51:50 host02.xxx.xxx systemd[1]: sw-engine.service failed.

I also have fail2ban, modsecurity and Google Autheticator enabled if that helps.

Any help would be appreciated.
 
Last edited:
Back
Top