• 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.

Issue 502 Bad Gateway after Plesk upgrade

briceld

New Pleskian
Hi,

I have tried to update my plesk server to the Obsidian version, but the installation failed. Now I can't access plesk anymore.

If I try to restart the service via ssh, I get an error:

----
[root@master ~]# service sw-engine start
Starting 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@master ~]# systemctl status sw-engine.service
* 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 Mon 2019-10-28 01:35:50 CET; 9s ago
Process: 422 ExecStopPost=/usr/bin/find /run/lock/lmlib/ -mindepth 1 -delete (code=exited, status=0/SUCCESS)
Process: 419 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: 419 (code=exited, status=127)

Oct 28 01:35:50 master systemd[1]: Starting Startup script for Panel sw-engine...
Oct 28 01:35:50 master sw-engine-fpm[419]: /usr/sbin/sw-engine-fpm: symbol lookup error: /usr/sbin/sw-engine-fpm: undefined symbol: _ZN3APS7Hosting17ASP_RESOURCE_TYPEE
Oct 28 01:35:50 master systemd[1]: sw-engine.service: main process exited, code=exited, status=127/n/a
Oct 28 01:35:50 master systemd[1]: Failed to start Startup script for Panel sw-engine.
Oct 28 01:35:50 master systemd[1]: Unit sw-engine.service entered failed state.
Oct 28 01:35:50 master systemd[1]: sw-engine.service failed.
----



As additional information, I have tried Plesk repair, this is the error I get:

[root@master]# cat /etc/redhat-release
CentOS Linux release 7.6.1810 (Core)
[root@master]# plesk repair all -y -v
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /lib64/libaps.so.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /lib64/libaps.so.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /lib64/libaps.so.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_system-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_system-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_filesystem-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_filesystem-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_filesystem-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_filesystem-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_regex-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_regex-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_regex-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_regex-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_thread-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_thread-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_serialization-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_serialization-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_date_time-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_date_time-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/sw/librdbmspp.so.2)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib64/sw/librdbmspp.so.2)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/sw/librdbmspp.so.2)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/sw/librdbmspp.so.2)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/sw/libruntime.so.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/sw/libruntime.so.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoFoundation.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoFoundation.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoFoundation.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoNet.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoNet.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoNet.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoUtil.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoUtil.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoUtil.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoXML.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoXML.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoXML.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoJSON.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoJSON.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoJSON.so.60)
exit status 1
---
 
Last edited:
Hi,

I am still not able to access Plesk to manage my websites, please see below even repair installation fails.

How can I fix that or reinstall plesk without losing my website configurations? I have tried plesk installer --select-release-current --reinstall-patch --upgrade-installed-components, but I still get the same error.

Please help,

---
[root@ikmaster]# rpm -qf /lib64/libstdc++.so.6
libstdc++-4.8.5-39.el7.x86_64
[root@ikmaster]# plesk repair installation
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /lib64/libaps.so.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /lib64/libaps.so.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /lib64/libaps.so.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_system-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_system-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_filesystem-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_filesystem-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_filesystem-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_filesystem-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_regex-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_regex-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_regex-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_regex-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_thread-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_thread-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_serialization-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_serialization-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_date_time-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libboost-plesk-1.65/libboost_date_time-plesk.so.1.65.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/sw/librdbmspp.so.2)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.8' not found (required by /usr/lib64/sw/librdbmspp.so.2)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/sw/librdbmspp.so.2)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/sw/librdbmspp.so.2)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/sw/libruntime.so.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/sw/libruntime.so.1)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoFoundation.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoFoundation.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoFoundation.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoNet.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoNet.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoNet.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoUtil.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoUtil.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoUtil.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoXML.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoXML.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoXML.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.20' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoJSON.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoJSON.so.60)
/usr/bin/sw-engine: /lib64/libstdc++.so.6: version `GLIBCXX_3.4.21' not found (required by /usr/lib64/libpoco-plesk-1.9.0/libPocoJSON.so.60)
exit status 1
 
Infos are just all missing. Please read & inform yourself about what infos are needed to give you at least any advice.

And are you trying half a year getting the same Server up and running? Or did it work in the meantime and just now you do have the same error again?
 
Thanks for your answer,

For half a year I have tried to solve the problem by myself without success, then I finally started managing my websites using linux commands. But now it is no more possible because I need to: 1. make advanced update on my websites and create new ones, 2. upgrade plesk because of a fixed security issue in one of its components.

Please could you let me know which kind of information I can add?

To summarize :

1. Trying to upgrade plesk ... Failed because of an error in dovecot.
2. Trying to login to plesk ... 502 bad gateway error
3. Trying to install dovecot component using plesk command tools ... Failed with the error above /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found
4. Trying to run any plesk command (psa, plesk, ...) ... Failed with the error above /lib64/libstdc++.so.6: version `CXXABI_1.3.9' not found

Thanks,
 
No infos needed are more like:

Which OS are you running on?
Which Plesk version is installed, which Plesk Versionw as installed originaly but was updated/upgraded?

Do you still have access to your Server with SSH?
Could you export DB and FTP (in a zip) to migrate to a cleanPlesk Installation?

If you do have access via SSH then you should immediately Backup everything you can and set up a fresh propper Plesk installation and migrate to this to have a fully working fresh Server without any issues.

I can not tell you much about your issue but a lot of people are installing and removing things on their own with their root/admin privileges and thats ok, but in fact in many cases Plesk is not working as expected anymore after such actions.
So I do not know ahat have happened to your Server but first step should be: Backup Backup Backup.

1. Backup your DBs
2. Zip your Files and download them as zips
3. set up a new Server and migrate the Websites one by one manually

After everything is working on your new Server just destroy the old one.
But another question:
befor upgrading/updating Plesk did plesk trigger a warning message of any modifications and you had to accept it so continue?
 
No infos needed are more like:

Which OS are you running on?
Which Plesk version is installed, which Plesk Versionw as installed originaly but was updated/upgraded?

OS: CentOS Linux release 7.6.1810 (Core)

Plesk installed: Plesk Onyx 17.5.3 Update #91

Plesk upgrading to: Plesk 18.0.21

befor upgrading/updating Plesk did plesk trigger a warning message of any modifications and you had to accept it so continue?

No warning before the upgrade.

Do you still have access to your Server with SSH?
Could you export DB and FTP (in a zip) to migrate to a cleanPlesk Installation?

If you do have access via SSH then you should immediately Backup everything you can and set up a fresh propper Plesk installation and migrate to this to have a fully working fresh Server without any issues.
[...]
1. Backup your DBs
2. Zip your Files and download them as zips
3. set up a new Server and migrate the Websites one by one manually

After everything is working on your new Server just destroy the old one.

I still have access to my server via SSH but my host provider is not able to deliver a new server right now. How can I backup my full plesk DBs and files and migrate to a new fresh installation on the same server ?
 
I still have access to my server via SSH but my host provider is not able to deliver a new server right now. How can I backup my full plesk DBs and files and migrate to a new fresh installation on the same server ?

I would recommend not to destroy your running Server atm. As it would be critical if the Backup does not work.
Pls just buy temporary a new VPS (5€ max) with just enough space and ressources to fit all of your applications.

Install Plesk on it and migrate all of your Backups to it.Then if everything is workingon your temp Server you can destroy the old one and recreate it.
Clean install of latest OS (CentOS 8.0) and latest Plesk (18.0.25 as of the date I'm writing this) and migrate back (with Plesk Backup Restore)
After this again worked you can destroy and delete the whole temp Server and you are good to continue. But Never delete a working Server as long as you so not have any alternative!
 
Moving my data to another server will require several days of installation and then cause a service interruption of several hours. I consider this only as the last option.

It should be possible to update libstdc++.so.6, but on the Centos forum it is recommended that the solution comes rather from the application side in order to avoid breaking things on the server.
 
Moving my data to another server will require several days of installation and then cause a service interruption of several hours. I consider this only as the last option.

It should be possible to update libstdc++.so.6, but on the Centos forum it is recommended that the solution comes rather from the application side in order to avoid breaking things on the server.

Even if it works will you ever trust this Server anymore?
I would not.

Changing Servers does cause a interruption of every Webservice... but not for hours! for some seconds!

Use CloudFlare as DNS Hoster and set up the new Server. Then:

1. transfer FTP and DB (also transfer SSL Certs etc) from one WebService/FQDN and redirect it to the new Server on DNS Level.
This on CF takes up to 5s.
Thats it.
2. Move all other one by one and then reDeploy the old server
3. After everything is working on the new Server make a complete Backup and transfer it completely on the fresh deployed Server
4. now point all Domains again to the old (now working) Server and your good to go.

No one will be able to help you here very good as we do not know what you have done with your server before or whatsoever..
The whole migration should take about 2 hours and depends on how many subscriptions you have but do it at night and your good.
Next time just dont f_uck up your server ;)


Alternative:
Backing Up and Migrating goes very fast if you can still use Plesk Backup and just move one complete Plesk Backup to the new Server and restore it completely. This should be possible via SSH aswell, so give this a try
 
Back
Top