• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • The Horde webmail has been deprecated. Its complete removal is scheduled for April 2025. For details and recommended actions, see the Feature and Deprecation Plan.
  • We’re working on enhancing the Monitoring feature in Plesk, and we could really use your expertise! If you’re open to sharing your experiences with server and website monitoring or providing feedback, we’d love to have a one-hour online meeting with you.

mailmng-server failed: Fatal error

richard`t

New Pleskian
Hay,

I upgraded from 12 to 12.5.30 all went will until i did a restart.

All sites are on line and mail is working but if i try to login to the admin i get the following error.

ERROR: PleskUtilException
mailmng-server failed: Fatal error: plesk::Exc<&(plesk::ExecCmd::Failed(bool)), plesk::ExDefault>(Execution of /usr/sbin/postconf -d -h mail_version failed with return code 127.
Stderr is
/usr/sbin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
)

Any helps good.

Thanks
 
I just had a look and i do not have the sw directory. I created them, the etc is pointing to them but i am missing these files in the newly created dirs

/sw_libs.conf
/etc/ld.so.conf.d/sw_libs.conf
 
.... yes, the error itself is o.k. and Plesk detected the error.

Please consider READ the mentioned documentation:

...
By default, the utility returns error code 1 on completion if any ERROR level issues are detected, or error code 0 if all detected issues are of the WARNING level, or if no issues are detected at all.
...

Retry at least once or twice, to let Plesk repair the detected errors. ( The blinking cursor shows, that the repair procedure is still active! After completion, your command line will show again "[root@s18147502 ~]# " and you are able to type new commands )

Please note, that you will get error - logs as well for your repair procedures. You will find them at: "/var/log/plesk"
 
Hi richard`t,

I would recommend to re-install the "sw-engine" and "plesk-platform-runtime". Due to the case of missing informations about your current operating system, I can't give you example commands.
 
o.k.... you don't want to provide your CentOS 6 version ( I386 or x86_64 )... up to you... don't blame me, if the commands don't suit your needs and are not the correct ones for your system.


cd /root
mkdir -p /root/plesk/manual_inst
cd /root/plesk/manual_inst

wget http://autoinstall.plesk.com/PSA_12...time-1.0.1-centos6.892097.15021818.x86_64.rpm
wget http://autoinstall.plesk.com/PSA_12...engine-2.16.2-centos6.201510051436.x86_64.rpm

rpm -Uvh plesk-platform-runtime-1.0.1-centos6.892097.15021818.x86_64.rpm
rpm -Uvh sw-engine-2.16.2-centos6.201510051436.x86_64.rpm


If you experience issues, like "package XXX is already installed", you could ignore such errors with the command:

rpm -ivh --replacepkgs plesk-platform-runtime-1.0.1-centos6.892097.15021818.x86_64.rpm
rpm -ivh --replacepkgs sw-engine-2.16.2-centos6.201510051436.x86_64.rpm


If you experience issues, like "error: Failed dependencies", you could solve the issue by including the depending package within your installation.


Finally, I recommend at the end of your SUCCESSFULL installation of the above packages the follwing commands:

/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --reinstall-patch --install-component base
/usr/local/psa/admin/sbin/autoinstaller --select-release-current --upgrade-installed-components
yum clean all
yum update



If you experience issues/problems, please include the error, so that investigations are easier.

 
2.6.32-504.12.2.el6.x86_64 #1 SMP Wed Mar 11 22:03:14 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.6 (Final)
Release: 6.6
Codename: Final
 
Last edited:
Ok ran the first 2 commands

This one did not work -

rpm -Uvh sw-engine-2.16.2-centos6.201510051436.x86_64.rpm
error: open of sw-engine-2.16.2-centos6.201510051436.x86_64.rpm failed: No such file or directory
 
This one did not work -

rpm -Uvh sw-engine-2.16.2-centos6.201510051436.x86_64.rpm
error: open of sw-engine-2.16.2-centos6.201510051436.x86_64.rpm failed: No such file or directory

Please post the output of "ls -lah" from the current folder you are in, when performing the rpm - command.
 
dr-xr-x--- 6 root root 4.0K Nov 28 21:08 .
dr-xr-xr-x 26 root root 4.0K Nov 27 20:06 ..
-rw------- 1 root root 1.3K Jul 11 2011 anaconda-ks.cfg
-rw-r--r-- 1 root root 145K Mar 30 2015 APC-3.1.5.tgz
drwxr-xr-x 2 root root 4.0K Nov 27 20:13 .autoinstaller
-rw------- 1 root root 5.6K Nov 28 21:15 .bash_history
-rw-r--r-- 1 root root 18 May 20 2009 .bash_logout
-rw-r--r-- 1 root root 176 May 20 2009 .bash_profile
-rw-r--r-- 1 root root 176 Sep 23 2004 .bashrc
-rw-r--r-- 1 root root 29 Nov 24 2014 created
-rw-r--r-- 1 root root 100 Sep 23 2004 .cshrc
-rw-r--r-- 1 root root 8.6K Jul 11 2011 install.log
-rw-r--r-- 1 root root 3.1K Jul 11 2011 install.log.syslog
-rw-r--r-- 1 root root 128K Jan 8 2013 kmod-e1000e-2.1.4-1.el6.elrepo.x86_64.rpm
-rw-r--r-- 1 root root 133K Sep 23 2013 kmod-e1000e-2.5.4-1.el6.elrepo.x86_64.rpm
-rw-r--r-- 1 root root 114K Sep 23 2013 kmod-igb-5.0.5-1.el6.elrepo.x86_64.rpm
drwxr-xr-x 37 root root 4.0K Nov 27 20:13 parallels
drwxr-xr-x 3 root root 4.0K Nov 28 21:02 plesk
-rw-r--r-- 1 root root 21K Aug 26 14:30 plesk-platform-runtime-1.0.1-centos6.892097.15021818.x86_64.rpm
-rw-r--r-- 1 root root 1.4K Nov 9 2004 RPM-GPG-KEY.art.txt
-rw-r--r-- 1 root root 1.7K May 28 2013 RPM-GPG-KEY.atomicorp.txt
drwxr-xr-x 3 root root 4.0K Apr 23 2015 setups
-rw-r--r-- 1 root root 0 Nov 27 19:55 sudo
-rw-r--r-- 1 root root 12M Oct 5 10:36 sw-engine-2.16.2-centos6.201510051436.x86_64.rpm

Usage: rpm [-aKfgpWHqVcdilsKiv?] [-a|--all] [-f|--file] [-g|--group]
[-p|--package] [-W|--ftswalk] [--pkgid] [--hdrid] [--fileid]
[--specfile] [--triggeredby] [--whatrequires] [--whatprovides]
[--nomanifest] [-c|--configfiles] [-d|--docfiles] [--dump] [-l|--list]
[--queryformat=QUERYFORMAT] [-s|--state] [--nofiledigest] [--nomd5]
[--nofiles] [--nodeps] [--noscript] [--comfollow] [--logical]
[--nochdir] [--nostat] [--physical] [--seedot] [--xdev]
[--whiteout] [--addsign] [-K|--checksig] [--delsign] [--import]
[--resign] [--nodigest] [--nosignature] [--initdb] [--rebuilddb]
[--aid] [--allfiles] [--allmatches] [--badreloc]
[-e|--erase <package>+] [--excludedocs] [--excludepath=<path>]
[--fileconflicts] [--force] [-F|--freshen <packagefile>+] [-h|--hash]
[--ignorearch] [--ignoreos] [--ignoresize] [-i|--install] [--justdb]
[--nodeps] [--nofiledigest] [--nomd5] [--nocontexts] [--noorder]
[--nosuggest] [--noscripts] [--notriggers] [--oldpackage]
[--percent] [--prefix=<dir>] [--relocate=<old>=<new>]
[--replacefiles] [--replacepkgs] [--test]
[-U|--upgrade <packagefile>+] [--quiet] [-D|--define 'MACRO EXPR']
[-E|--eval 'EXPR'] [--macros=<FILE:...>] [--nodigest] [--nosignature]
[--rcfile=<FILE:...>] [-r|--root ROOT] [--querytags] [--showrc]
[--quiet] [-v|--verbose] [--version] [-?|--help] [--usage]
[--scripts] [--setperms] [--setugids] [--conflicts] [--obsoletes]
[--provides] [--requires] [--info] [--changelog] [--xml]
[--triggers] [--last] [--dupes] [--filesbypkg] [--fileclass]
[--filecolor] [--fscontext] [--fileprovide] [--filerequire]
[--filecaps]
 
ah... I see your issue... you did "copy&paste" and so I will make it easier for your now, by pasting the command in code brackets:

As user root, please perform the commands:
Code:
cd /root
mkdir -p /root/plesk/manual_inst
cd /root/plesk/manual_inst

wget http://autoinstall.plesk.com/PSA_12.5.30/dist-rpm-CentOS-6-x86_64/engine/plesk-platform-runtime-1.0.1-centos6.892097.15021818.x86_64.rpm
wget http://autoinstall.plesk.com/PSA_12.5.30/dist-rpm-CentOS-6-x86_64/engine/sw-engine-2.16.2-centos6.201510051436.x86_64.rpm

rpm -Uvh plesk-platform-runtime-1.0.1-centos6.892097.15021818.x86_64.rpm
rpm -Uvh sw-engine-2.16.2-centos6.201510051436.x86_64.rpm


Next, I copy as well the other commands in code brackets, to avoid copy&paste - issues:

If you experience issues, like "package XXX is already installed", you could ignore such errors with the command:

As user root, please perform the commands:
Code:
cd /root/plesk/manual_inst
rpm -ivh --replacepkgs plesk-platform-runtime-1.0.1-centos6.892097.15021818.x86_64.rpm
rpm -ivh --replacepkgs sw-engine-2.16.2-centos6.201510051436.x86_64.rpm


If you experience issues, like "error: Failed dependencies", you could solve the issue by including the depending package within your installation.


Finally, I recommend at the end of your SUCCESSFULL installation of the above packages the follwing commands:

As user root, please perform the commands:
Code:
/usr/local/psa/admin/bin/autoinstaller --select-product-id plesk --select-release-current --reinstall-patch --install-component base

/usr/local/psa/admin/sbin/autoinstaller --select-release-current --upgrade-installed-components

yum clean all
yum update
 
Last edited by a moderator:
Ok it all ran OK.

I had to go with

cd /root/plesk/manual_inst
rpm -ivh --replacepkgs plesk-platform-runtime-1.0.1-centos6.892097.15021818.x86_64.rpm
rpm -ivh --replacepkgs sw-engine-2.16.2-centos6.201510051436.x86_64.rpm

As it did say it was installed. I did a server restart as well.

Still getting an error on the login page

mailmng-server failed: Fatal error: plesk::Exc<&(plesk::ExecCmd::Failed(bool)), plesk::ExDefault>(Execution of /usr/sbin/postconf -d -h mail_version failed with return code 127.
Stderr is
/usr/sbin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
)
 
Hi richard`t,

mailmng-server failed: Fatal error: plesk::Exc<&(plesk::ExecCmd::Failed(bool)), plesk::ExDefault>(Execution of /usr/sbin/postconf -d -h mail_version failed with return code 127.
Stderr is
/usr/sbin/postconf: error while loading shared libraries: libmysqlclient.so.16: cannot open shared object file: No such file or directory
)

Going back to investigations, please use the following commands:
Code:
sudo yum install mlocate
sudo /etc/cron.daily/mlocate.cron


Afterwards
, please post the output of the commands:
Code:
locate libmysqlclient.so.16

ldd /usr/sbin/postconf
 
Back
Top