Plesk is not accessible: 502 Bad Gateway error

Created:

2017-08-09 10:48:50 UTC

Modified:

2017-08-16 16:11:29 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Plesk is not accessible: 502 Bad Gateway error

Applicable to:

  • Plesk for Linux

Symptoms

Plesk is not accessible with the following error:

502 Bad Gateway error

In /var/log/apt/history.log there is an information that a number of Plesk base packages have been removed:

Start-Date: 2017-08-08  20:17:00

Commandline: apt-get install phpmyadmin
Install: libjs-jquery-mousewheel:amd64 (8-2, automatic), libjs-jquery-metadata:amd64 (8-2, automatic), libjs-jquery-cookie:amd64 (8-2, automatic), libjs-jquery-event-drag:amd64 (8-2, automatic), dbconfig-common:amd64 (1.8.47+nmu1, automatic), php5-mcrypt:amd64 (5.4.6-0ubuntu5, automatic), phpmyadmin:amd64 (4.0.10-1), libjs-jquery:amd64 (1.7.2+dfsg-2ubuntu1, automatic), libjs-jquery-ui:amd64 (1.10.1+dfsg-1, automatic), libjs-underscore:amd64 (1.4.4-2ubuntu1, automatic), libjs-jquery-tablesorter:amd64 (8-2, automatic), php-gettext:amd64 (1.0.11-1, automatic), libjs-codemirror:amd64 (2.23-1, automatic), javascript-common:amd64 (11, automatic)
Remove: plesk-service-node-utilities:amd64 (17.5.3-ubuntu14.04.build1705170317.16), psa-updates:amd64 (17.5.3-ubuntu14.04.build1705170314.14), plesk-dovecot:amd64 (2.2.27-ubuntu14.04.17031716), plesk-wp-upgrade:amd64 (1.0-71.17031415), plesk-mail-pc-driver:amd64 (17.5.3-ubuntu14.04.build1705170317.16), plesk-dovecot-imap-driver:amd64 (17.5.3-ubuntu14.04.build1705170317.16), psa-libxml-proxy:amd64 (2.7.8.1-ubuntu14.04.17031415), psa-locale-base-en-us:amd64 (17.5.3-ubuntu14.04.build1705170615.09), psa-mnemo:amd64 (4.2.12-ubuntu14.04.build1705170314.14), psa-zendframework:amd64 (1.12.17-ubuntu14.04.build1705170314.14), psa-php5-configurator:amd64 (1.7.0-ubuntu14.04.build1705170314.14), plesk-roundcube:amd64 (1.2.5-ubuntu14.04.build1705170711.12), psa-phpfpm-configurator:amd64 (1.0.0-ubuntu14.04.build1705170314.14), libpam-plesk:amd64 (17.5.3-ubuntu14.04.build1705170317.16), psa-logrotate:amd64 (3.8.2-ubuntu14.04.build1705170314.14), plesk-completion:amd64 (17.5.3-ubuntu14.04.build1705170317.16), psa-imp:amd64 (6.2.17-ubuntu14.04.build1705170314.14), psa-ingo:amd64 (3.2.13-ubuntu14.04.build1705170314.14), plesk-dovecot-pigeonhole:amd64 (0.4.16-ubuntu14.04.17031519), psa-horde:amd64 (5.2.13-ubuntu14.04.build1705170314.14), psa-passwd:amd64 (5.0.6-ubuntu14.04.build1705170314.14), psa-vhost:amd64 (17.5.3-ubuntu14.04.build1705170314.14), plesk-config-troubleshooter:amd64 (17.5.3-ubuntu14.04.build1705170317.16), psa-mail-driver-common:amd64 (17.5.3-ubuntu14.04.build1705170317.16), psa-phpmyadmin:amd64 (4.6.6-ubuntu14.04.build1705170314.14), plesk-management-node:amd64 (17.5.3-ubuntu14.04.build1705170317.16), psa-proftpd:amd64 (1.3.5d-ubuntu14.04.build1705170314.14), psa-phppgadmin:amd64 (5.1-ubuntu14.04.build1705170314.14), plesk-base:amd64 (17.5.3-ubuntu14.04.build1705170317.16), psa-kronolith:amd64 (4.2.19-ubuntu14.04.build1705170314.14), plesk-l10n:amd64 (17.5.3-ubuntu14.04.build1705170615.09), psa-turba:amd64 (4.2.18-ubuntu14.04.build1705170314.14), plesk-git-http:amd64 (17.5.3-ubuntu14.04.build1705170314.14), plesk-web-hosting:amd64 (17.5.3-ubuntu14.04.build1705170317.16), plesk-core:amd64 (17.5.3-ubuntu14.04.build1705170317.16), psa-pylibplesk:amd64 (17.5.3-ubuntu14.04.build1705170317.16)
End-Date: 2017-08-08 20:18:37

Cause

During installation of 3rd-party application part of Plesk base packages have been removed.

Resolution

  1. Disable the internal autoinstaller package resolver if there is som:

    # echo 'USE_YUM="YES"' >> /root/.autoinstallerrc
  2. Download autoinstaller from http://autoinstall.plesk.com/

    # wget autoinstall.plesk.com/plesk-installer
  3. Make the installer executable:

    # chmod +x plesk_installer
  4. Back up Plesk database
  5. Start the installer and install the missing packages (they will be chosen automatically).

  6. If installation fails due to missing dependencies, install necessary packages and continue further installation via Plesk Installer

Note: after reinstalling Plesk packages, security key might be regenerated. It will make decrypting old passwords impossible. The passwords can be reset as described in the following KB article .

Have more questions? Submit a request
Please sign in to leave a comment.