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

Plesk login failed with 502 Bad Gateway - nginx, after tried update to #37

Azurel

Silver Pleskian
Hello. Today morning a logged in in plesk without problems and started Fail2Ban and closed it. Now I want logged in and get only 502 bad gateway. All Domains working fine and shell access working fine too.

What happen here? What can I do?
 
# /etc/init.d/psa status
psa is stopped

Next step restart:
# /etc/init.d/psa stopall && /etc/init.d/psa startall
Stopping psa... Stopping sw-engine-fpm: [FAILED]
done
Plesk: Stopping Mail Server... done
Stopping mailer service... not installed
Stopping sw-cp-server service... done
Stopping mysqld service... done
Stopping postgresql service... not installed
Stopping spamassassin service... done
Stopping drwebd service... not installed
Stopping tomcat6 service... not installed
Stopping httpd service... done
Starting psa... Starting sw-engine-fpm: [ OK ]
done
Starting xinetd service... done
Starting sw-cp-server service... done
Starting mysqld service... done
Starting named service... done
Starting postgresql service... not installed
Starting spamassassin service... done
Plesk: Starting Mail Server... done

I found this error /var/log/sw-cp-server/error_log:
2015/02/27 14:55:13 [crit] 30721#0: *1061 connect() to unix:/var/run/sw-engine.sock failed (2: No such file or directory) while connecting to upstream, client: xx.xx.xx.xx, server: , request: "GET /smb/admin-home HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock:", host: "xx.xx.xx.xx:8443"


EDIT:

In plesk I get this notices:
Failed to update Plesk. To solve this problem, you can send the update log to Parallels support. View the update logs (Feb 27, 2015). Copy the logs to your computer before you close this message. To close this message, click here.

update logs:
Execution failed.
Command: autoinstaller
Arguments: Array
(
[0] => --select-product-id
[1] => plesk
[2] => --select-release-current
[3] => --upgrade-installed-components
)

Details: Doing restart of Parallels Installer...
File downloading products.inf3: 100% was finished.
File downloading plesk.inf3: 11%..22%..33%..43%..50%..65%..74%..80%..90%..100% was finished.
File downloading ppsmbe.inf3: 100% was finished.
File downloading sitebuilder.inf3: 74%..100% was finished.
File downloading sso.inf3: 64%..100% was finished.
File downloading setemplates.inf3: 100% was finished.
File downloading pp-sitebuilder.inf3: 15%..33%..47%..65%..82%..94%..100% was finished.
File downloading billing.inf3: 12%..22%..39%..43%..50%..66%..82%..90%..100% was finished.
File downloading mysql.inf3: 100% was finished.
File downloading apache.inf3: 100% was finished.
File downloading nginx.inf3: 72%..100% was finished.
File downloading php56.inf3: 99%..100% was finished.
File downloading php55.inf3: 97%..100% was finished.
File downloading php54.inf3: 100% was finished.
File downloading php53.inf3: 100% was finished.
File downloading php52.inf3: 100% was finished.
Checking for installed packages...
File downloading PSA_12.0.18/plesk-12.0.18-cos6-x86_64.inf3: 20%..47%..55%..61%..85%..100% was finished.
File downloading PSA_12.0.18/plesk-patches-12.0.18-cos6-x86_64.inf3: 12%..26%..38%..45%..60%..75%..81%..100% was finished.
File downloading SITEBUILDER_12.0.7/sitebuilder-12.0.7-rhall-all.inf3: 100% was finished.
File downloading BILLING_12.0.18/billing-12.0.18-rhall-all.inf3: 100% was finished.
File downloading NGINX_1.6.0/nginx-1.6.0-cos6-x86_64.inf3: 100% was finished.
Loaded plugins: fastestmirror, priorities


Detecting installed product components.
Gathering information about installed license key...
Launching component checkers...
File downloading PSA_12.0.18/examiners/panel_preupgrade_checker.php: 18%..29%..30%..41%..58%..61%..73%..84%..96%..100% was finished.
File downloading PSA_12.0.18/examiners/php_launcher.sh: 100% was finished.
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* epel: ftp.uni-koeln.de

PPB_12_0_18-dist | 951 B 00:00

PPB_12_0_18-thirdparty | 951 B 00:00

PSA_12_0_18-dist | 2.9 kB 00:00
http://autoinstall.plesk.com/PSA_12...895e0334d14b1122047871eeb8-primary.sqlite.bz2: [Errno 12] Timeout on http://autoinstall.plesk.com/PSA_12...895e0334d14b1122047871eeb8-primary.sqlite.bz2: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.

PSA_12_0_18-thirdparty | 2.9 kB 00:00
http://autoinstall.plesk.com/SITEBUILDER_12.0.7/dist-rpm-RedHat-all-all/repodata/repomd.xml: [Errno 12] Timeout on http://autoinstall.plesk.com/SITEBUILDER_12.0.7/dist-rpm-RedHat-all-all/repodata/repomd.xml: (28, 'Operation too slow. Less than 1 bytes/sec transfered the last 30 seconds')
Trying other mirror.

SITEBUILDER_12_0_7-thirdparty | 951 B 00:00
Package plesk-l10n-12.0.18-cos6.build1200150204.09.noarch already installed and latest version
Package psa-updates-12.0.18-cos6.build1200150212.11.noarch already installed and latest version
Package plesk-l10n-12.0.18-cos6.build1200150204.09.noarch already installed and latest version
Package psa-updates-12.0.18-cos6.build1200150212.11.noarch already installed and latest version
Package plesk-l10n-12.0.18-cos6.build1200150204.09.noarch already installed and latest version
Package psa-updates-12.0.18-cos6.build1200150212.11.noarch already installed and latest version

Following amount of diskpace required in directories:
/usr/local: 1200.00 Mb.
Total required: 1200.00 Mb, available 453516.00 Mb.

Installing packages
Changing shell for popuser.
Shell not changed.
Changing shell for mhandlers-user.
Shell not changed.
sw-engine-fpm (pid 2955) is running...
Stopping psa... Stopping sw-engine-fpm: [ OK ]
done
===> Cumulative APS controller database (apsc) upgrade has been started.
===> Cumulative upgrade of APS controller database has been completed.
===> Cumulative Plesk database upgrade (revertable stage) has been started.
===> Preparing Plesk database upgrade (revertable stage).
===> Cumulative upgrade of Plesk database (revertable stage) has been completed.
Loaded plugins: fastestmirror, priorities
Loading mirror speeds from cached hostfile
* epel: ftp.uni-koeln.de

SITEBUILDER_12_0_7-dist | 951 B 00:00
Package plesk-l10n-12.0.18-cos6.build1200150204.09.noarch already installed and latest version
Package psa-updates-12.0.18-cos6.build1200150212.11.noarch already installed and latest version
Running rpm_check_debug
Exception: Scriptlet or other non-fatal errors occurred during transaction.

ERROR: Failed to run the Yum utility.
The Yum utility failed to install the required packages.
Attention! Your software might be inoperable.
Please, contact product technical support.


Second notice in plesk panel:

Upgrade failed. To remove this notice, remove the file /var/lock/parallels-panel-upgrade-failure.flag from the server. Repair the failed upgrade or installation.

After run "rapair the failed upgrad":
Internal error.
ERROR: Zend_Db_Adapter_Exception: SQLSTATE[HY000] [2002] No such file or directory (Abstract.php:144)

Search for related Knowledge Base articles


# yum update said only:
---> Package mysql-connector-odbc.x86_64 0:5.1.5r1144-7.el6 will be updated
---> Package mysql-connector-odbc.x86_64 0:5.3.4-1.el6 will be an update
 
Last edited:
Back
Top