• Please be aware: Kaspersky Anti-Virus has been deprecated
    With the upgrade to Plesk Obsidian 18.0.64, "Kaspersky Anti-Virus for Servers" will be automatically removed from the servers it is installed on. We recommend that you migrate to Sophos Anti-Virus for Servers.
  • 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.

Resolved Backup Warning: httpdocs/vhost-saved.conf: Cannot open: Permission denied

mostcla

New Pleskian
Server operating system version
Ubuntu 22.04.1 LTS
Plesk version and microupdate number
Plesk Obsidian Version 18.0.47
Hello dear,
I was trying to do backup and it says like :
Not all the data from /var/www/vhosts/glamsty.com was backed up successfully:
Code:
Not all the data from /var/www/vhosts/glamsty.com was backed up successfully:
  httpdocs/vhost-saved.conf: Cannot open: Permission denied

When i try to change permission i see another issue:

Code:
filemng failed: chmod: changing permissions of '/var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf': Operation not permitted chmod: changing permissions of '/var/www/vhosts/glamsty.com/httpdocs/modules/ps_mmoconnector/logs/process_cron_cron.log': Operation not permitted filemng: Error occurred during /bin/chmod command.

Can anybode help me please?
 
The file might be owned by a wrong user or it has its permissions set to 0000.
Do you have SSH access to your server? What is the output of
Code:
ls -la /var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf
If you do not have SSH access: Owner and permissions should also be visible in Plesk File Manager.
 
The file might be owned by a wrong user or it has its permissions set to 0000.
Do you have SSH access to your server? What is the output of
Code:
ls -la /var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf
If you do not have SSH access: Owner and permissions should also be visible in Plesk File Manager.
Actually i see this

Code:
-rw------- 1 root root 6449 Oct 7 09:14 /var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf
 
You can try to add read permissions to the group, e.g.
Code:
chmod 0640 /var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf
That should already be sufficient.
 
You can try to add read permissions to the group, e.g.
Code:
chmod 0640 /var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf
That should already be sufficient.

When i try to add read permission to the group.
I see this error:

Code:
filemng failed: chmod: changing permissions of '/var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf': Operation not permitted chmod: changing permissions of '/var/www/vhosts/glamsty.com/httpdocs/modules/ps_mmoconnector/logs/process_cron_cron.log': Operation not permitted filemng: Error occurred during /bin/chmod command.
 
I have difficulties to understand your previous post. Is it working now or is it not working? What is the current permission setting?
 
I have difficulties to understand your previous post. Is it working now or is it not working? What is the current permission setting?

It's enabled already! Even thought i have added this code in SSH root, and i did test backup still the same issue.
As you can see in the image, it's already on!
 

Attachments

  • download (67).png
    download (67).png
    14.2 KB · Views: 7
I think the picture shows the permissions of your httpdocs folder. These are - according to the picture - 0757. They should be 0750. What are the permissions of the file that you want to backup?
# ls -la /var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf
 
How to change it from 0757 to 0750?

Here:

Code:
-rw------- 1 root root 6449 Oct 7 09:14 /var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf
 
You need to at least grant read permissions to the group for the vhost-saved.conf file. In order to do so you must be logged in as "root" in SSH and run
# chmod 0640 /var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf
(The "#" is a prompt, so actually run the command without #.)
The reason for this is that the file is currently owned by root and belongs to the group root. You cannot change permissions on it when you are not root. That is why you are getting the permission error when you try to change the file from an account that is not root.

The httpdocs permissions do not affect the backup issue in your case. I was just mentioning that normally they should be 0750. You can change them like
# chmod 0750 /var/www/vhosts/glamsty.com/httpdocs
But this is only a good idea to prevent other users from looking into your httpdocs folder. It is not linked to your backup issue.
 
T
You need to at least grant read permissions to the group for the vhost-saved.conf file. In order to do so you must be logged in as "root" in SSH and run
# chmod 0640 /var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf
(The "#" is a prompt, so actually run the command without #.)
The reason for this is that the file is currently owned by root and belongs to the group root. You cannot change permissions on it when you are not root. That is why you are getting the permission error when you try to change the file from an account that is not root.

The httpdocs permissions do not affect the backup issue in your case. I was just mentioning that normally they should be 0750. You can change them like
# chmod 0750 /var/www/vhosts/glamsty.com/httpdocs
But this is only a good idea to prevent other users from looking into your httpdocs folder. It is not linked to your backup issue.

This issue is getting out of my mind. I'm trying to follow your steps.
1. I open root
2. I enter my ssh root user and pass
3. I write this code you have sent to me
4. Giving me nothing!

Check screenshot --> Screenshot
 
That is correct, it does not output anything. But is changes permissions on the file. Check it with
# ls -la /var/www/vhosts/glamsty.com/httpdocs/vhost-saved.conf
 
Simply retry the backup. If it does not work as expected, repeat permission change and grant 0660 instead of 0640. Read permissions should do but I recall one situation where it did only work after granting write permissions, too.
 
If permissions are 0660 it must definitely work. Have you verified that the file permissions are correct now? Can you please show them?
 
If permissions are 0660 it must definitely work.
Only if the backup user is in group root.

I guess from the filename this is a manually created backup of the vhost config. I'd recommend moving the file to root's home directory.
 
I have the same problem since a day or two ago, it appears on all my sites, I don't know if the latest Plesk update has anything to do with it (Plesk Obsidian 18.0.54 Update 4).

"Not all the data from /var/www/vhosts/denim.fit was backed up successfully:
slow.log: Cannot open: Permission denied"

Is there a way to solve this problem through the Plesk GUI, since I'm not very skillful with SSH commands?
 
Back
Top