Unable to download a backup from backup repository : page not found

Refers to:

  • Plesk 12.5 for Linux
  • Plesk 11.5 for Linux
  • Plesk 12.0 for Linux

Created:

2016-11-16 12:39:39 UTC

Modified:

2017-01-20 14:42:10 UTC

1

Was this article helpful?


Have more questions?

Submit a request

Unable to download a backup from backup repository : page not found

Symptoms

  • It is not possible to download a backup from the backup repository: page not found is shown after changing the DUMP_TMP_D location.

  • The problem is as covered in Knowledgebase article ( #119346 ), but the destination directory is not a symbolic link.

    ~# tail -fn0 /var/log/sw-cp-server/error_log

    2014/01/16 08:31:23 [error] 664#0: *361 open() "/usr/local/psa/admin/htdocs/myfolder/dumpsYYmnn.tar" failed (2: No such file or directory), client: 10.50.1.76, server: , request: "POST /plesk/server/backup/local-repository/item@0x6be763c791ed3668d2ac4e806863fe2a/download/?_randomId=753520 HTTP/1.1", upstream: "fastcgi://unix:/var/run/sw-engine.sock", host: "10.39.81.114:8443", referrer: "https://10.39.81.114:8443/plesk/server/backup/local-repository/"

ORAn attempt to download backup archive ended up with error:

    `Browser` can't find the file at     https://example.com:8443/smb/backup/download-dump/domainId/111/id/clients/h-11111/domains/domain.tld/backup_info_1606161210.xml?_randomId=322013.

Cause

DUMP_TMP_D was set to a non-default path.

grep DUMP_TMP_D /etc/psa/psa.conf 
DUMP_TMP_D /new/path/to/tmp

This is considered to be a software issue, with internal request #PPPM-1278 . It will be fixed in a future product update.

Resolution

As a workaround, you can modify the parameters in the /etc/sw-cp-server/conf.d/plesk.inc file:

  1. In /etc/sw-cp-server/conf.d/plesk.inc , find the following code block:

    ~# grep -n -A5 'For backup download via' /etc/sw-cp-server/conf.d/plesk.inc

    # For backup download via X-Accel-Redirect
    location /tmp/ {
    internal;
    alias /tmp/;
    }
  2. Change /tmp/ to the new DUMP_TMP_D value as below:

    # For backup download via X-Accel-Redirect
    location /new/path/to/tmp/ {
    internal;
    alias /new/path/to/tmp/;
    }
    1. Restart sw-cp-server to apply your changes.

      service sw-cp-server restart

or:

     /etc/init.d/sw-cp-server restart

Alternatively, to avoid this issue altogether, change the DUMP_TMP_D directory back to the default /tmp .

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