• Halloween is coming! To celebrate the occasion, we dusted off a couple of old skins, and even created a brand new one (Pixel).
    To get into the festive spirit, install the Skins extension.
  • The new Python extension is now available. It allows customers to deploy and manage WSGI-based Python applications on their websites directly from Plesk.
  • The Plesk Mobile apps for iOS and Android and the Plesk Mobile Center extension have been deprecated, and are no longer available for new installations. In Plesk Obsidian 18.0.84, the Plesk Mobile Center extension will be removed from servers during the upgrade, and the Plesk Mobile apps will lose their server management features.
  • The Social Login extension has been deprecated and will be removed in Plesk Obsidian 18.0.84. After that, it will no longer be possible to log in to Plesk with a Google, Facebook, GitHub account, or with a passkey. Plesk usernames and passwords, as well as logging in with a WebPros Account, are not affected.

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