• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion
  • Inviting everyone to the UX test of a new security feature in the WP Toolkit
    For WordPress site owners, threats posed by hackers are ever-present. Because of this, we are developing a new security feature for the WP Toolkit. If the topic of WordPress website security is relevant to you, we would be grateful if you could share your experience and help us test the usability of this feature. We invite you to join us for a 1-hour online session via Google Meet. Select a convenient meeting time with our friendly UX staff here.

502 Bad Gateway Error when exporting database

netsetter

Basic Pleskian
Hi, it's there again since a while: 502 Bad Gateway error when exporting a database.

Happens by random, but mostly when I switch the database, having a database open in PHPmyAdmin, then I close this tab and open another database from the plesk menu. Then trying to export --> error.

CentOS 6.4, PHP 5.3, Plesk 11.5 #MU13
 
In some cases the database is real big and takes time the dump, thus generating the bad gateway problem.
Why dont you make the backup on command line?
The command goes like this...

mysqldump -u[user_database] -p [database] > [backup_filename].sql

Ommit the "[" and "]" characters, I put them for you to bettter understand the command
Once you hit enter it will ask for the user database passwd
 
I updated to 11.5.30 MU#16 and still getting errors, even if the database is empty. Why isn't anyone looking into it? Command line obviously isn't a solution since you pay for a software to use it :)
 
I can confirm, error still exists in MU#18.

@Peter: They tried to fix this error almost every time it was reported, but it seems it's more complex in some way.

I don't know if it somehow helps or if it's related to this Bad Gateway error, but also sometimes when I am deleting data by selecting rows and hitting the delete button, I am getting a blank screen in the right column of PHPMyAdmin.
 
Okay, a bit more detailed:

When I am in PHPMyAdmin in localhost:3306, hitting export button and selecting the database in the advanced options, exporting works.
But when I am in localhost:3306 » myselected_database, hitting export button and selecting all the tables to export, then I have this 502 Bad Gateway error.
 
Hey

This worked for me (at least so far :) ):

nano /etc/sw-cp-server/config

fastcgi_buffers 32 32k; // was 16 16k
fastcgi_buffer_size 64k; // was 32k

#yum reinstall tzdata // I had to remove timezone info because dumb plesk wouldn't let me login at all after restarting :) You may not need that

service psa restart

nano /usr/local/psa/admin/conf/php.ini
apc.enabled = 1
apc.filters = "-.*phpMyAdmin*"

service sw-engine restart

--
 
Back
Top