• 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
  • Please beaware of a breaking change in the REST API on the current Plesk release (18.0.62).
    Starting from Plesk Obsidian 18.0.62, requests to REST API containing the Content-Type header with a media-type directive other than “application/json” will result in the HTTP “415 Unsupported Media Type” client error response code. Read more here

Issue hosting update is failed: vhostmng-structure failed: Cannot create directory /httpdocs/Master/Production/current/public: No such file or directory

maximus99

Basic Pleskian
Server operating system version
Centos 7.9
Plesk version and microupdate number
18.0.52
Hi Team,

We are running CentOS7.9 hosted plesk version of 18.0.52

In plesk panel we are getting below error

New configuration files for the Apache web server were not created due to the errors in configuration templates: AH00526: Syntax error on line 62 of /etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf: SSLCertificateFile: file '/usr/local/psa/var/certificates/scfr' does not exist or is empty. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter

We have tried the below steps

1. We have tried to perform the plesk repair web utility initially for that domain and still same issue.

2. we have tried to unassign and cert works but when we try to assign a cert we are getting below error
Could not unassign certificate from the domain. stdout: , stderr: [2024-06-20 17:02:03.495] 3045025:6674446b4d052 ERR [util_exec] proc_close() failed [‘/usr/local/psa/admin/bin/vhostmng-structure’] with exit code [1]
An error occurred during domain update: An error occurred during changing of hosting settings: hosting update is failed: vhostmng-structure failed: Cannot create directory /httpdocs/Master/Production/current/public: No such file or directory
System error 2: No such file or directory

But when we checked the path its exists and permission looks good .
/httpdocs/Master/Production/current ls -l

drwxr-x--- 4 xxxx3 xxxxx 251 Jun 21 10:03 public

3. Then we have tried plesk repair all also . Still didnt fix the issue.

Kindly advise us on this
 
New configuration files for the Apache web server were not created due to the errors in configuration templates: AH00526: Syntax error on line 62 of /etc/httpd/conf/plesk.conf.d/vhosts/example.com.conf: SSLCertificateFile: file '/usr/local/psa/var/certificates/scfr' does not exist or is empty. Detailed error descriptions were sent to you by email. Please resolve the issues and click here to generate broken configuration files once again or here to generate all configuration files. See the details in Configuration Troubleshooter

This error matches the issue described in this support article, which might help you solve the problem:
 
Hi Kaspar,

Thanks for your update ,

But i am unable find any cert using the grep
~ grep -r scfXXXXX /var/www/vhosts/system/*
~

Also error.log of the domain
[proxy:error] (2)No such file or directory: AH02454: FCGI: attempt to connect to Unix domain socket /var
/www/vhosts/system/example.com/php-fpm.sock (*) failed

Not sure what this error means ,
Could not unassign certificate from the domain. stdout: , stderr: [2024-06-20 17:02:03.495] 3045025:6674446b4d052 ERR [util_exec] proc_close() failed [‘/usr/local/psa/admin/bin/vhostmng-structure’] with exit code [1]
An error occurred during domain update: An error occurred during changing of hosting settings: hosting update is failed: vhostmng-structure failed: Cannot create directory /httpdocs/Master/Production/current/public: No such file or directory
System error 2: No such file or directory

As the Docroot directory for the domain is available , when we checked the path its exists and permission looks good .

/httpdocs/Master/Production/current ls -l

drwxr-x--- 4 xxxx3 xxxxx 251 Jun 21 10:03 public
 
Back
Top