• 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

Resolved Backup Warning "pd: Cannot open: Permission denied"

lukas-degan

Basic Pleskian
Hi all,

in backup log i see 3 domains with the following error:
Code:
Warning: Subscription "<domain1>"
Not all the data from /var/www/vhosts/<domain1> was backed up successfully:
  pd: Cannot open: Permission denied
Warning: Subscription "<domain2>"
Not all the data from /var/www/vhosts/<domain2> was backed up successfully:
  pd: Cannot open: Permission denied
Warning: Subscription "<domain3>"
Not all the data from /var/www/vhosts/<domain3> was backed up successfully:
  pd: Cannot open: Permission denied

In vhosts directory i saw that there are symlinks at these domains. ls -lh shows me:
lrwxrwxrwx 1 <user> psacln 41 Jul 26 00:22 conf -> /var/www/vhosts/system/<domain1>/conf
The same thing i noticed with statistics directory.

In others domain directorys i dont found symlinks, so i feel that is the reason?

Can anybode help me please?
 
Hello lukas-degan,

Could you please send some additional details about your installation?

You can use the following commands:
Code:
plesk version
and
Code:
plesk db "select * from upgrade_history;"

Thank you.
 
Hello lukas-degan,

Could you please send some additional details about your installation?

You can use the following commands:
Code:
plesk version
and
Code:
plesk db "select * from upgrade_history;"

Thank you.

Product version: Plesk Obsidian 18.0.31.0
OS version: Debian 10.6 x86_64

+---------------------+--------------+------------+-------------+------+---------------+
| upgrade_date | version_info | db_version | os | mu | update_ticket |
+---------------------+--------------+------------+-------------+------+---------------+
| 2020-07-04 23:37:27 | 18.0.28 | NULL | Debian 10.4 | 1 | |
| 2020-07-07 06:26:56 | 18.0.28 | NULL | Debian 10.4 | 2 | |
| 2020-07-22 12:07:09 | 18.0.28 | NULL | Debian 10.4 | 3 | |
| 2020-08-09 17:20:49 | 18.0.29 | NULL | Debian 10.5 | 0 | |
| 2020-08-27 18:32:16 | 18.0.29 | NULL | Debian 10.5 | 2 | |
| 2020-09-20 21:46:52 | 18.0.30 | NULL | Debian 10.5 | 0 | |
| 2020-09-24 22:34:34 | 18.0.30 | NULL | Debian 10.5 | 1 | |
| 2020-10-13 21:06:17 | 18.0.30 | NULL | Debian 10.6 | 2 | |
| 2020-10-31 23:04:42 | 18.0.31 | NULL | Debian 10.6 | 0 | |
+---------------------+--------------+------------+-------------+------+---------------+
 
Hello lukas-degan,

Thank you for the provided information. You wrote:
In vhosts directory i saw that there are symlinks at these domains. ls -lh shows me:
lrwxrwxrwx 1 <user> psacln 41 Jul 26 00:22 conf -> /var/www/vhosts/system/<domain1>/conf
The same thing i noticed with statistics directory.

In others domain directorys i dont found symlinks, so i feel that is the reason?
Yes, you are right.

The warning messages mean that 'pd' directory was not included in a backup, so the backup itself is not in a 'failed' state.
To workaround the issue you can exclude '/conf' directory from backups. Here is an example of how to do it: How to exclude specific files/directories from a backup in Plesk?

You can also execute and check the information about permissions per domain:
Code:
plesk repair fs <your_domain> -n

'-n' option means 'only check' and nothing will be changed on your system. Please refer to 'plesk repair fs --help' to get additional details.

Regarding the links, in Plesk Obsidian we do not create such vhost structure by default and, as I can see, your installation was not upgraded from old Plesk versions.

Have you performed some actions with these domains before?

Thank you.
 
Hi Aytalina,
thx for your reply and your help.
plesk repair gives me the following:
Code:
 Incorrect permissions on
      /var/www/vhosts/system/<domain>/conf: expected is one of
      0750, actual is 0755
      Incorrect permissions on
      /var/www/vhosts/system/<domain>/statistics: expected is
      one of 0550, actual is 0755
      Incorrect permissions on
      /var/www/vhosts/system/<domain>/conf/httpd.conf: expected
      is one of 0600, actual is 0755
      Incorrect permissions on
      /var/www/vhosts/system/<domain>/conf/nginx.conf: expected
      is one of 0600, actual is 0755

The domains were migrated with plesk migrator from an plesk onyx server few months ago.
But how can i exactly solve my issue now? Can i unlink the symlinks without any trouble? Or must i set the correct permissions?

Thank you
 
lukas-degan,

I suppose that its inconsistency could be a result of previous upgrades (maybe from old Plesk versions, for instance, 10.4.4 to the Onyx).

You can remove these links if there are no absolute paths to 'vhost.conf' in your configuration files.

Then, you can correct permissions automatically by calling 'plesk repair fs <domain_name>'.
 
Back
Top