• We value your experience with Plesk during 2024
    Plesk strives to perform even better in 2025. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2024.
    Please take this short survey:

    https://pt-research.typeform.com/to/AmZvSXkx
  • 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.

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