• 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

Upgrade problem 11.09 to 11.5

Red Paint

Basic Pleskian
We upgraded to 11.5 and are having a problem:

Code:
# /usr/local/psa/admin/bin/httpdmng --reconfigure-domain domain.com
2013-09-23T12:50:03+01:00 ERR (3)  [util_exec]: proc_close() failed
Error occured while sending feedback. HTTP code returned: 502
2013-09-23T12:50:04+01:00 ERR (3)  [util_exec]: proc_close() failed
2013-09-23T12:50:05+01:00 ERR (3)  [util_exec]: proc_close() failed
2013-09-23T12:50:06+01:00 ERR (3)  [panel]: Apache config (13799370020.90043400) generation failed: Template_Exception: mkdir: cannot create directory `/var/www/vhosts/system/domain.com/conf': No such file or directory
mktemp: failed to create file via template `/var/www/vhosts/system/domain.com/conf/13799370020.90043400_httpd.conf.XXXXXX': No such file or directory
Can not create temporary file

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0
mkdir: cannot create directory `/var/www/vhosts/system/domain.com/conf': No such file or directory
mktemp: failed to create file via template `/var/www/vhosts/system/domain.com/conf/13799370020.90043400_httpd.conf.XXXXXX': No such file or directory
Can not create temporary file

So I looked up the KB and found this: http://kb.parallels.com/116923

But I get this:

Code:
# /usr/local/psa/bin/repair --update-vhosts-structure
2013-09-23T12:51:53+01:00 ERR (3)  [util_exec]: proc_close() failed
Error:
Error: Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-all
)

Details: Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-domains
    [1] => domaina.com, domainb.com etc.
)

Details: 2013-09-23T12:52:17+01:00 ERR (3)  [util_exec]: proc_close() failed
2013-09-23T12:52:24+01:00 ERR (3)  [util_exec]: proc_close() failed
2013-09-23T12:52:31+01:00 ERR (3)  [util_exec]: proc_close() failed
2013-09-23T12:52:46+01:00 ERR (3)  [panel]: Apache config (13799371250.20586500) generation failed: Template_Exception: mkdir: cannot create directory `/var/www/vhosts/system/domain.com/conf': No such file or directory
mktemp: failed to create file via template `/var/www/vhosts/system/domain.com/conf/13799371250.20586500_httpd.conf.XXXXXX': No such file or directory
Can not create temporary file

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0
mkdir: cannot create directory `/var/www/vhosts/system/domain.com/conf': No such file or directory
mktemp: failed to create file via template `/var/www/vhosts/system/domain.com/conf/13799371250.20586500_httpd.conf.XXXXXX': No such file or directory
Can not create temporary file



Unable to update the structure of the home directory: an unexpected error has occurred.

Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-all
)

Details: Execution failed.
Command: httpdmng
Arguments: Array
(
    [0] => --reconfigure-domains
    [1] => domaina.com, domainb.com etc.
)

Details: 2013-09-23T12:52:17+01:00 ERR (3)  [util_exec]: proc_close() failed
2013-09-23T12:52:24+01:00 ERR (3)  [util_exec]: proc_close() failed
2013-09-23T12:52:31+01:00 ERR (3)  [util_exec]: proc_close() failed
2013-09-23T12:52:46+01:00 ERR (3)  [panel]: Apache config (13799371250.20586500) generation failed: Template_Exception: mkdir: cannot create directory `/var/www/vhosts/system/domain.com/conf': No such file or directory
mktemp: failed to create file via template `/var/www/vhosts/system/domain.com/conf/13799371250.20586500_httpd.conf.XXXXXX': No such file or directory
Can not create temporary file

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0
mkdir: cannot create directory `/var/www/vhosts/system/domain.com/conf': No such file or directory
mktemp: failed to create file via template `/var/www/vhosts/system/domain.com/conf/13799371250.20586500_httpd.conf.XXXXXX': No such file or directory
Can not create temporary file


So I'm wondering what the permissions and file owner of /var/www/vhosts/system/ are?

I've got
Code:
drwxr-xr-x. 169 root             root    12288 Sep 23 12:35 system

Is that right?

Thanks
 
Yeah, that is right! And it's contents should be

Code:
root:psaserv

About the errors, try creating those folders manually then regenerating the vhosts!
 
Thought so,

Ok so I tried that and it kills httpd, this is what I did:

# mkdir /var/www/vhosts/system/domain.com/
# chown root:psaserv /var/www/vhosts/system/domain.com/
# chmod 711 /var/www/vhosts/system/domain.com/
# mkdir /var/www/vhosts/system/domain.com/conf
# chown root:psaserv /var/www/vhosts/system/domain.com/conf
# chmod 750 /var/www/vhosts/system/domain.com/conf

# /usr/local/psa/admin/bin/httpdmng --reconfigure-domain domain.com
2013-09-23T13:07:04+01:00 ERR (3) [util_exec]: proc_close() failed
2013-09-23T13:07:05+01:00 ERR (3) [util_exec]: proc_close() failed
2013-09-23T13:07:06+01:00 ERR (3) [util_exec]: proc_close() failed
2013-09-23T13:07:07+01:00 ERR (3) [panel]: Apache config (13799380230.61672600) generation failed: Template_Exception: mkdir: cannot create directory `/var/www/vhosts/system/domain.com/conf': No such file or directory
mktemp: failed to create file via template `/var/www/vhosts/system/domain.com/conf/13799380230.61672600_httpd.conf.XXXXXX': No such file or directory
Can not create temporary file

file: /usr/local/psa/admin/plib/Template/Writer/Webserver/Abstract.php
line: 68
code: 0
mkdir: cannot create directory `/var/www/vhosts/system/domain.com/conf': No such file or directory
mktemp: failed to create file via template `/var/www/vhosts/system/domain.com/conf/13799380230.61672600_httpd.conf.XXXXXX': No such file or directory
Can not create temporary file

Any thoughts?
 
The error still indicates missing directory and also you can

Code:
touch /var/www/vhosts/system/domain.com/conf/13799380230.61672600_httpd.conf.XXXXXX
for all missing occurrences and regenerating vhosts with

Code:
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
 
Hello Abdi,

I've tried that, it's only having a problem with one domain. The problem started when a client asked for the primary domain (newdomain.com) and domain alias (olddomain.com) to be swapped. So I deleted the alias then tried to change the primary but got a long MySQL error related to postfix. I didn't copy it down which was a bit silly.

I can see the domain alias (olddomain.com) in /var/www/vhosts/system/ but can't seem to create the new (newdomain.com) without problems as outlined above.

There also appears to be an issue with the dns for mail (the reason we had to change in the first place) where outlook can't connect to newdomain.com but can connect to olddomain.com.

So something has gone awry with the swap but I'm not sure how to get this knocked back into shape?

Any thoughts?

Thanks
Andy
 
Maybe my last post confused things a little.

The problem doesn't seem to be rectified by manually creating the appropriate conf folder in /var/www/vhosts/system/ and then running
/usr/local/psa/admin/sbin/httpdmng --reconfigure-all
.

All that does is stop apache from loading. I've tried about 5 times and it doesn't work.

I can't see why it's not possible to swap the alias and primary domain. I don't think it's just my system; It worked in previous versions of plesk (11.09).

Has anyone tried to swap the alias and primary domain successfully?

More importantly has anyone got any idea how I can fix the issue?
 
Andy,
Somethings require hands-on investigations, digging deeper based on system out-puts ...(See signature if you need us to take a look at it)
 
Back
Top