• Our team is looking to connect with folks who use email services provided by Plesk, or a premium service. If you'd like to be part of the discovery process and share your experiences, we invite you to complete this short screening survey. If your responses match the persona we are looking for, you'll receive a link to schedule a call at your convenience. We look forward to hearing from you!
  • The BIND DNS server has already been deprecated and removed from Plesk for Windows.
    If a Plesk for Windows server is still using BIND, the upgrade to Plesk Obsidian 18.0.70 will be unavailable until the administrator switches the DNS server to Microsoft DNS. We strongly recommend transitioning to Microsoft DNS within the next 6 weeks, before the Plesk 18.0.70 release.
  • The Horde component is removed from Plesk Installer. We recommend switching to another webmail software supported in Plesk.

Issue 502 Bad Gateway afterstartinga backup download

Status
Not open for further replies.

mmandmppro

Basic Pleskian
Server operating system version
Debian 10 "Buster"
Plesk version and microupdate number
20
Hello

I am getting

Server Error

502 Bad Gateway​

Web server received an invalid response while acting as a gateway or proxy server.


I cant run repair kit as it says its missingi have tried in ssh

I noticed a file was renamed to ervice sw-engine start I dontknow if the file name is meantto have an s at the start

my websites are running is this because im lacking storage space? im deleting files from the server but i cant log on to my CP
 
Could you please rephrase your question? Are you asking why there is no storage space left or how to free space?
 
If I'm reading correctly, plesk panel is giving him an HTTP error 502.

If you're able to connect via ssh I'd recommend trying to run: plesk repair installation
 
I am getting

Server Error

502 Bad Gateway​

Web server received an invalid response while acting as a gateway or proxy server.


https://15.235.83.79:8443

and then i said is it because of lackof space, i included a linkto my server which says an eror, i do notknow how to repharse this questionScreenshot 2023-05-01 at 08-33-08 502 Bad Gateway.png
 
Running
# plesk repair
is "missing"? What is the exact output when you run it?

Have you already freed space on disk, e.g. by removing no longer needed log files from /var/log?
 
Running
# plesk repair
is "missing"? What is the exact output when you run it?

Have you already freed space on disk, e.g. by removing no longer needed log files from /var/log?
I noticed a file was renamed to ervice sw-engine start I dont know if the file name is meant to have an s at the start

it says

service sw-engine is missing
 
root@ns5016732:~# plesk repair all
/usr/bin/sw-engine: error while loading shared libraries: libaps.so.1: cannot open shared object file: No such file or directory
 
Running
# plesk repair
is "missing"? What is the exact output when you run it?

Have you already freed space on disk, e.g. by removing no longer needed log files from /var/log?
I have deleted no log files as i donot know what log files i would need to delete, the error started after i tried to download a 1.2 tb backup and got a time out
 
Cause: /usr/lib64/libaps.so.1 is a symlink to /usr/lib64/libaps.so.1.0, which does not exist.

Your installation seems badly damaged, because if PSA database is missing AND files are missing, probably more than just the above mentioned file is missing or corrupt. You can try to fix that one file as follows:

# ls -l /usr/lib64/libaps.so.1.0
ls: cannot access /usr/lib64/libaps.so.1.0: No such file or directory

Resolution:
Connect to the server via SSH
Create a temporary directory and navigate to it;
# mkdir plesktmp ; cd plesktmp

Download the libaps from http://autoinstall.plesk.com/PSA_[PLESK VERSION]/dist-deb-Debian-10.0-x86_64/engine/libaps*, for example, for Plesk 18.0.52 and Debian 10:
# wget http://autoinstall.plesk.com/PSA_18...libaps_1.0.12-debian.10.230222.0826_amd64.deb

Copy the new file to the live directory:
# cp -a usr/lib64/libaps.so.1.0 /usr/lib64/

Restart the psa service:
# systemctl restart psa

Important: You named "Plesk 20" as your Plesk version, but there is no Plesk 20. The latest version is 18.0.52. You must know the Plesk version to apply the above commands. In the above commands I assume that you have Plesk 18.0.52. If not, please replace the PSA_18.0.52 with your correct version.

If further errors exist I strongly recommend creating a ticket with Plesk support.
 
Last edited:
Product version: Plesk Obsidian 18.0.49.2
OS version: Debian 10.13 x86_64
Build date: 2023/04/04 10:00
Revision: 5f28ac65ab7698d3411bcb7b25e11dabc0d59dd9
 
i deleted a load of files from psa thinking they were just dump files from my back ups i do not know if i have a copy of them
 
i deleted a load of files from psa
In that case you need to reinstall your server and restore contents from a backup.

root@ns5016732:~# mkdir plesktmp ; cd plesktmp
root@ns5016732:~/plesktmp# http://autoinstall.plesk.com/PSA_18.0.49.2
-bash: http://autoinstall.plesk.com/PSA_18.0.49.2: No such file or directory
You're missing the "wget".

But again: If you have removed not only that one file, you will very likely need to reinstall the server, install a fresh Plesk on it and then restore your content from a backup.
 
Status
Not open for further replies.
Back
Top