504 Gateway Timeout is shown while accessing Plesk Backup Manager


2016-11-16 13:08:34 UTC


2017-08-16 17:15:18 UTC


Was this article helpful?

Have more questions?

Submit a request

504 Gateway Timeout is shown while accessing Plesk Backup Manager

Applicable to:

  • Plesk 12.5 for Linux
  • Plesk 11.x for Windows
  • Plesk 11.x for Linux
  • Plesk 12.0 for Linux


Unable to access Plesk > Tools & Settings > Backup Manager, 504 Gateway Timeout is shown after some time.

/var/log/sw-cp-server/error_log contains the error below:

[error] 3235#0: *1483 upstream timed out (110: Connection timed out) while reading response header from upstream, client:, server: , request: "GET /plesk/server/backup/local-repository/ HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock", host: "", referrer: ""

It is possible to find such system process while trying to access Backup Manager:

# ps ax | grep pmm
11357 ? R 0:37 /usr/bin/python /usr/local/psa/admin/sbin/pmmcli --get-tasks-list Restore,Backup 5dfb2ce3-1743-4cac-902e-78773bc245d6 any


Backup Manager is trying to get status of backups and it takes to much time to parse the lines and load all errors from the files like /usr/local/psa/PMM/sessions/2013-08-25-030202.954/migration.result . This behavior is considered as bug #PPPM-2035 .

Usually, it contains the "Permission denied" messages:

egrep -lir 'Permission denied' /usr/local/psa/PMM/sessions/ | xargs wc -l
34544 /usr/local/psa/PMM/sessions/2013-11-13-030003.384/migration.result
34544 /usr/local/psa/PMM/sessions/2013-12-22-013005.54/migration.result
34543 /usr/local/psa/PMM/sessions/2013-12-05-013004.227/migration.result
34534 /usr/local/psa/PMM/sessions/2013-11-06-030003.347/migration.result
35502 /usr/local/psa/PMM/sessions/2013-11-10-030003.623/migration.result


  1. Find out the files with incorrect permissions. Backup manager was not able to get the access to content mentioned in migration.result files to place it to archive. See this article to get the instructions.

  2. Backup the current sessions directory before applying any changes:

    mkdir /usr/local/psa/PMM/sessions_backup/
    cp -a /usr/local/psa/PMM/sessions/* /usr/local/psa/PMM/sessions_backup/
  3. Remove the the lines with 'Permission denied' message from /usr/local/psa/PMM/sessions/*/migration.result files:

     grep -lir 'Permission denied' /usr/local/psa/PMM/sessions_copy/ | xargs  sed -i '{;/denied/d;}'
  4. Kill the current pmmcli processes if they do not refers to current migrations and backup processes:

    # ps ax | grep pmmcli | grep -v grep

    12146 ? R 49:39 /usr/bin/python /usr/local/psa/admin/sbin/pmmcli --get-tasks-list Restore,Backup 73406802-7e5a-44e4-9b14-aa2cbf201973 any
    13275 ? R 36:15 /usr/bin/python /usr/local/psa/admin/sbin/pmmcli --get-tasks-list Restore,Backup 73406802-7e5a-44e4-9b14-aa2cbf201973 any

    # kill -9 12146 13275
  5. Check the access to Backup Manager.

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