• 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

Issue 500 PleskFatalException after adding a new domain

squaladesign

New Pleskian
Server operating system version
Debian 10
Plesk version and microupdate number
Version 18.0.54 Update #3
Hi, after I added a new domain name to my Plesk I have now

500 PleskFatalException​

/var/www/vhosts is out of webspace
TypePleskFatalException
Message/var/www/vhosts is out of webspace
FileWebspace.php
Line439

What do I have to do? I cannot do anything, all Plesk is not working.

I tried the Repair Kit but it doesn't accept the admin password.
 
"/var/www/vhosts is out of webspace" means that you do not have enough disk space on the partition where /var/www/vhosts is located or that you ran out of inodes. Plesk repair cannot help there. You need to free disk space or upgrade your disk space.
 
"/var/www/vhosts is out of webspace" means that you do not have enough disk space on the partition where /var/www/vhosts is located or that you ran out of inodes. Plesk repair cannot help there. You need to free disk space or upgrade your disk space.
Hi Peter, thanks for the replay but my VPS and partition are almost empty.

Screen Shot 2023-08-19 at 11.40.09 AM.png
 
I don't think this error necessarily means that the server is out of disk space. I've encountered this error in other scenarios too. (For example this issue here).

Any way, there is an excellent support article that describes how to solve the issue:
Thank you Kaspar,
I already tried with no luck. This error happened when I added a new website and now I have the error when I log in, so, I cannot use Plesk at all.
Any other suggestions?
 
Looks like Kaspar is right with the diagnosis. We just don't know the right solution yet. Maybe SELinux is blocking it? What is the output of
sestatus | grep mode
?
 
Thank you Kaspar,
I already tried with no luck. This error happened when I added a new website and now I have the error when I log in, so, I cannot use Plesk at all.
Any other suggestions?
Just to be sure, did you also try the manual option as outlined in the support article?

Schermafbeelding 2023-08-19 om 10.52.27.png
 
@Nomadturk whats the output of the following commands. (Replace example.com for your actual domain).

Code:
sudo sestatus | grep mode

Code:
sudo cat /var/www/vhosts/system/example.com/conf/httpd.conf | grep DocumentRoot

Code:
sudo plesk db "select id,home from sys_users where home like '%example.com%';"

Replace the number 2 at the end of the query bellow with the ID number shown in the output the previous query.
Code:
sudo plesk db "select www_root from hosting where sys_user_id=2;"
 
Last edited:
No Selinux @Kaspar

The results of those 3 queries all point to the same place, where the website should be located. (/var/www/vhosts/example.com)
The disk is empty. I don't even have CGroups. The website is under an unlimited plan.
/var/www/vhosts/ doesn't have a mount of it's of, it's writable and there is plenty of disk space.


Then I found this in the error logs:
Cannot serve directory /var/www/vhosts/example.com/: No matching DirectoryIndex (index.html,index.cgi,index.pl,index.php,index.xhtml,index.htm,index.shtml) found, and server-generated directory index forbidden by Options directive


That directory should have been /var/www/vhosts/example.com/httpdocs
But I can't even open that domain on Plesk's interface to change/check it. I immediately get a 500 error saying /var/www/vhosts is out of space.
 
[...] That directory should have been /var/www/vhosts/example.com/httpdocs [...]
It should. Does the httpdocs directory exist inside /var/www/vhosts/example.com? If not create it using the command mkdir /var/www/vhosts/example.com/httpdocs. Then follow the steps bellow (taken from the support article).

1. Run the query below to get the ID number of the domain.
Code:
plesk db "select id,home from sys_users where home like '%example.com%';"

2. Then run the query below, replacing the ID number at the end with ID number from the previous query.
Code:
plesk db "update hosting set www_root='/var/www/vhosts/example.com/httpdocs' where sys_user_id=2;"

3. Run the repair utility to set the proper permissions
Code:
plesk repair fs example.com
 
Hi everyone,
I tried to have support from OVH where I purchased the license and they refused :(
I'm trying to have support from Plesk directly but I'm still waiting.

I have tried everything. I just remembered that this error appeared when I changed the client/website subscription from Forwarded to Website.
Then...Error!

I removed the client/website by SSH but I still have the issue.
 
As this thread seems to develop with all kinds of fluffy problems, I'd like to bring in the option to contact Plesk support staff if an issue cannot be resolved by forum advice. They will be happy to assist and check issues directly on your server(s). https://support.plesk.com
 
Back
Top