• 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 Server Error 502 Bad Gateway /

administrierNix

New Pleskian
Server operating system version
UBUNTU 20.04
Plesk version and microupdate number
latest
When I try to access plesk. I get this errormessage:

Server Error
502 Bad Gateway
Web server received an invalid response while acting as a gateway or proxy server.

===============

I tryed to restart 'sw-engine.service' :

# service sw-engine status
● sw-engine.service - Startup script for Panel sw-engine
Loaded: loaded (/lib/systemd/system/sw-engine.service; enabled; vendor pre>
Drop-In: /usr/lib/systemd/system/sw-engine.service.d
└─respawn.conf
Active: activating (auto-restart) (Result: exit-code) since Thu 2023-09-21>
Process: 55558 ExecStart=/usr/sbin/sw-engine-fpm --fpm-config /etc/sw-engin>
Process: 55559 ExecStopPost=/usr/bin/find /run/lock/lmlib/ -mindepth 1 -del>
Main PID: 55558 (code=exited, status=127)
CPU: 5ms
lines 1-9/9 (END)


===============

The LOGfiles have following entries:
2023/09/21 10:34:22 [crit] 882#0: *13958 connect() to unix:/var/run/sw-engine.sock failed (2: No such file or directory) while connecting to upstream, client: ::1, server: , request: "POST /check-plesk.php HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "localhost:8443"

===============

I tryed also

#plesk installer --select-release-current --reinstall-patch --upgrade-installed-components

this runs through with no errors.

===============
 
additionally in ran
# journalctl -xeu sw-engine.service
Here is the result:



# journalctl -xeu sw-engine.service
Sep 21 11:56:18 xxxx.plesk.page sw-engine-fpm[67546]:>
Sep 21 11:56:18 xxxx.plesk.page systemd[1]: sw-engine>
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ An ExecStart= process belonging to unit sw-engine.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 127.
Sep 21 11:56:18 xxxx.plesk.page systemd[1]: sw-engine>
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ The unit sw-engine.service has entered the 'failed' state with result 'exit->
Sep 21 11:56:18 musing-antonelli.85-215-34-242.plesk.page systemd[1]: Failed to>
░░ Subject: A start job for unit sw-engine.service has failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit sw-engine.service has finished with a failure.
░░
░░ The job identifier is 1980520 and the job result is failed.
lines 6549-6571/6571 (END)
Sep 21 11:56:18 xxxx.plesk.page sw-engine-fpm[67546]: /usr/sbin/sw-engine-fpm: error while loading sh>
Sep 21 11:56:18 xxxx.plesk.page systemd[1]: sw-engine.service: Main process exited, code=exited, stat>
░░ Subject: Unit process exited
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ An ExecStart= process belonging to unit sw-engine.service has exited.
░░
░░ The process' exit code is 'exited' and its exit status is 127.
Sep 21 11:56:18 xxxx.plesk.page systemd[1]: sw-engine.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ The unit sw-engine.service has entered the 'failed' state with result 'exit-code'.
Sep 21 11:56:18 xxxx.plesk.page systemd[1]: Failed to start Startup script for Panel sw-engine.
░░ Subject: A start job for unit sw-engine.service has failed
░░ Defined-By: systemd
░░ Support: Enterprise open source support | Ubuntu
░░
░░ A start job for unit sw-engine.service has finished with a failure.
░░
░░ The job identifier is 1980520 and the job result is failed.
 
I also tryed
# plesk repair all

THe result;
/usr/bin/sw-engine: error while loading shared libraries: libodbc.so.2: cannot open shared object file: No such file or directory
exit status 127
 
So I tryed to install the missing files via


sudo apt update
sudo apt install unixodbc-dev


This is the result:

Hit:1 Index of /KAV_8.9.2 jammy InRelease
Hit:2 Index of /pool/PSA_18.0.55_12681 jammy InRelease
Hit:3 Index of /PHP80_17 jammy InRelease
Hit:4 Index of /PHP82_17 jammy InRelease
Hit:5 Index of /DRWEB_6.0.2.9 jammy InRelease
Hit:6 Index of /ubuntu/20.04/mssql-server-2019/ focal InRelease
Hit:7 Index of /ubuntu/20.04/mssql-server-2022/ focal InRelease
Hit:8 Index of /ubuntu/20.04/prod/ focal InRelease
Get:9 Index of /ubuntu jammy-security InRelease [110 kB]
Hit:10 Index of /ubuntu jammy InRelease
Get:11 Index of /ubuntu jammy-updates InRelease [119 kB]
Hit:12 Index of /kernelcare/kernelcare-debian/11/ kcare InRelease
Get:13 Index of /ubuntu jammy-backports InRelease [109 kB]
Fetched 338 kB in 1s (372 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
5 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-amd64/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-armhf/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-arm64/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Packages (main/binary-all/Packages) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target Translations (main/i18n/Translation-en) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target CNF (main/cnf/Commands-amd64) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
W: Target CNF (main/cnf/Commands-all) is configured multiple times in /etc/apt/sources.list.d/msprod.list:1 and /etc/apt/sources.list.d/mssql-release.list:1
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following package was automatically installed and is no longer required:
libodbccr2
Use 'sudo apt autoremove' to remove it.
The following additional packages will be installed:
libodbc1 odbcinst odbcinst1debian2 unixodbc
Suggested packages:
msodbcsql17 unixodbc-bin
The following packages will be upgraded:
libodbc1 odbcinst odbcinst1debian2 unixodbc unixodbc-dev
5 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Need to get 701 kB of archives.
After this operation, 761 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Get:1 Index of /ubuntu/20.04/prod/ focal/main amd64 libodbc1 amd64 2.3.11-1 [486 kB]
Get:2 Index of /ubuntu/20.04/prod/ focal/main amd64 odbcinst1debian2 amd64 2.3.11-1 [99.8 kB]
Get:3 Index of /ubuntu/20.04/prod/ focal/main amd64 odbcinst amd64 2.3.11-1 [21.3 kB]
Get:4 Index of /ubuntu/20.04/prod/ focal/main amd64 unixodbc amd64 2.3.11-1 [51.5 kB]
Get:5 Index of /ubuntu/20.04/prod/ focal/main amd64 unixodbc-dev amd64 2.3.11-1 [42.4 kB]
Fetched 701 kB in 0s (5587 kB/s)
(Reading database ... 151084 files and directories currently installed.)
Preparing to unpack .../libodbc1_2.3.11-1_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.11-1) over (2.3.9-5) ...
dpkg: error processing archive /var/cache/apt/archives/libodbc1_2.3.11-1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbccr.so.2.0.0', which is also in package libodbccr2:amd64 2.3.9-5
Preparing to unpack .../odbcinst1debian2_2.3.11-1_amd64.deb ...
Unpacking odbcinst1debian2:amd64 (2.3.11-1) over (2.3.9-5) ...
dpkg: error processing archive /var/cache/apt/archives/odbcinst1debian2_2.3.11-1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbcinst.so.2.0.0', which is also in package libodbcinst2:amd64 2.3.9-5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../odbcinst_2.3.11-1_amd64.deb ...
Unpacking odbcinst (2.3.11-1) over (2.3.9-5) ...
Preparing to unpack .../unixodbc_2.3.11-1_amd64.deb ...
Unpacking unixodbc (2.3.11-1) over (2.3.9-5) ...
Preparing to unpack .../unixodbc-dev_2.3.11-1_amd64.deb ...
Unpacking unixodbc-dev (2.3.11-1) over (2.3.9-5) ...
Errors were encountered while processing:
/var/cache/apt/archives/libodbc1_2.3.11-1_amd64.deb
/var/cache/apt/archives/odbcinst1debian2_2.3.11-1_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
ok, now tryed to uninstall with

sudo apt-get remove libodbccr2 libodbcinst2

The result:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
You might want to run 'apt --fix-broken install' to correct these.
The following packages have unmet dependencies:
libodbc1 : Depends: libodbccr2 (= 2.3.9-5) but it is not going to be installed
odbcinst : Depends: odbcinst1debian2 (>= 2.3.11-1) but 2.3.9-5 is to be installed
odbcinst1debian2 : Depends: libodbcinst2 (= 2.3.9-5) but it is not going to be installed
Depends: odbcinst (= 2.3.9-5)
plesk-libmaodbc : Depends: libodbcinst2 (>= 2.3.1) but it is not going to be in stalled
unixodbc : Depends: odbcinst1debian2 (>= 2.3.11-1) but 2.3.9-5 is to be instal ed
Depends: libodbc1 (>= 2.3.11-1) but 2.3.9-5 is to be installed
unixodbc-dev : Depends: odbcinst1debian2 (= 2.3.11-1) but 2.3.9-5 is to be installed
E: Unmet dependencies. Try 'apt --fix-broken install' with no packages (or specify a solution).


============================

# apt --fix-broken install


leads to this message:

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Correcting dependencies... Done
The following package was automatically installed and is no longer required:
libodbccr2
Use 'apt autoremove' to remove it.
The following additional packages will be installed:
libodbc1 odbcinst1debian2
Suggested packages:
msodbcsql17 unixodbc-bin
The following packages will be upgraded:
libodbc1 odbcinst1debian2
2 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
3 not fully installed or removed.
Need to get 0 B/585 kB of archives.
After this operation, 814 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
(Reading database ... 151088 files and directories currently installed.)
Preparing to unpack .../odbcinst1debian2_2.3.11-1_amd64.deb ...
Unpacking odbcinst1debian2:amd64 (2.3.11-1) over (2.3.9-5) ...
dpkg: error processing archive /var/cache/apt/archives/odbcinst1debian2_2.3.11-1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbcinst.so.2.0.0', which is also in package libodbcinst2:amd64 2.3.9-5
dpkg-deb: error: paste subprocess was killed by signal (Broken pipe)
Preparing to unpack .../libodbc1_2.3.11-1_amd64.deb ...
Unpacking libodbc1:amd64 (2.3.11-1) over (2.3.9-5) ...
dpkg: error processing archive /var/cache/apt/archives/libodbc1_2.3.11-1_amd64.deb (--unpack):
trying to overwrite '/usr/lib/x86_64-linux-gnu/libodbccr.so.2.0.0', which is also in package libodbccr2:amd64 2.3.9-5
Errors were encountered while processing:
/var/cache/apt/archives/odbcinst1debian2_2.3.11-1_amd64.deb
/var/cache/apt/archives/libodbc1_2.3.11-1_amd64.deb
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)
 
This is way to complex to solve it theoretically without server access. Please contact Plesk support and allow them to access your server.

To sign-in to support please go to https://support.plesk.com

If you experience login issues, please see this KB article:
https://support.plesk.com/hc/en-us/...rt-plesk-com-and-password-reset-does-not-work

If you bought your license from a reseller, your reseller should provide support for you. If the reseller does not provide support, here is an alternative:
https://support.plesk.com/hc/en-us/articles/12388090147095-How-to-get-support-directly-from-Plesk-
 
I cannot enter the licence key:

plesk bin keyinfo --list | grep plesk_key_id | awk {'print $2'}
/usr/bin/sw-engine: error while loading shared libraries: libodbc.so.2: cannot open shared object file: No such file or directory
exit status 127

What to do now ?
 
Did you buy your license from Plesk? In that case please send me a private message with the email address that you used for it or with the activation code that you got. I'll ask support to create a ticket for you then.

Did you buy your license from a reseller? Then you'll please need to ask the reseller for further assistance. They must provide the proper support.

The issue itself is not caused by the Plesk software, but by an operating system problem on your server. Plesk support tries to help in such cases, too, but we do not provide generic operating system support. The problem is this line: "paste subprocess was killed by signal (Broken pipe)", because it is unclear why this happens. It is for sure an issue on the system. This is very far off Plesk, so you'll probably be better of looking for a solution in StackOverflow or at your provider's support.

Another option could be to spin-up a new server, install a fresh Plesk on it and then restore your data from your backup.
 
ok I purchased the support licence.

And wanted to install the software for Support access.

Welll .... here the result:

# plesk bin extension --install support-access

/usr/bin/sw-engine: error while loading shared libraries: libodbc.so.2: cannot open shared object file: No such file or directory
exit status 127
 
That's expected, because you have this basic operating system issue with that library. No worries on the subscription, it can be cancelled, and the first 30 days are free anyway. Would you mind sending me your activation code for the Plesk license or your email address it was purchased under or the license key in a private message? As said before I'll be happy to initialize a support session from our side. SSH access does not require the support extension. If your server has SSH, there are other ways to arrange that.
 
Back
Top