• 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

Error: New web server configuration for some of the subscription's domains was not bu

betteres

New Pleskian
Error: New web server configuration for some of the subscription's domains was not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click here to retry generating configuration.

plesk 10.3.0 debian 64

when I reconfigure apache one xxxx.xxxx_httpd.include gets created and is empty except for comments on top.

Information: Web server reconfiguration is completed: New Apache configuration files were successfully built and applied."
the error message doesnt go away and the site (only one out of 10) gets the default plesk page. and although I get "

any hints please?
 
hi,
i have the same problem in:
plesk panel 10.4.4
Linux 2.6.18-274.7.1.el5
Panel version 10.4.4 Update #4, last updated at Nov 24, 2011 11:02 AM

Error: New files of configuration for Apache web server were not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click here to retry generating configuration.

and

Error: New web server configuration for some domains within the marked subscriptions was not built due to errors in configuration templates. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click here to retry generating configuration.
 
There are bunch of KB articles regarding different reasons of this issue. Did you try to search it there?
 
hi
i check the KB but the 4 below articles don't help me:
1.http://kb.parallels.com/en/112815
2.http://kb.parallels.com/en/111605
3.http://kb.parallels.com/en/112885
4.http://kb.parallels.com/en/112520
5.http://kb.parallels.com/en/112882

the result of KB #112815 is just :
mysql> select id,objectId,status,description from Configurations where status="e
rror";
+------+----------+--------+--------------------------------------------------------------------------------------------------------------------+
| id | objectId | status | description |
+------+----------+--------+--------------------------------------------------------------------------------------------------------------------+
| 1243 | 668 | error | Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainWebmail.php, error = No data. |
| 1244 | 668 | error | Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = No data. |
+------+----------+--------+--------------------------------------------------------------------------------------------------------------------+
2 rows in set (0.00 sec)

the result of kb #111605 cause 1 is :

[root@m0905 ~]# /usr/local/psa/admin/sbin/httpdmng --reconfigure-all
PleskUtilException: '/usr/local/psa/admin/bin/apache_control_adapter' '--restart' '--restart-interval' '0' '--http-port' '80' '--https-port' '443' failed with code 255.

stdout:
Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start


stderr:
Service /etc/init.d/httpd failed to start
Service /etc/init.d/httpd failed to start

file: /usr/local/psa/admin/plib/Service/Agent/Transport/Local/Exec.php
line: 98
code: 0
trace: #0 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(58): Service_Agent_Transport_Local_Exec->process(0, Object(Service_Agent_Command_Exec), Object(Service_Agent_Log), Object(Service_Agent_Transport_LocalTransaction))
#1 /usr/local/psa/admin/plib/Service/Agent/Transport/Local.php(24): Service_Agent_Transport_Local->_command(0, Object(Service_Agent_Command_Exec), Object(Service_Agent_Transport_LocalTransaction), Object(Service_Agent_Log))
#2 /usr/local/psa/admin/plib/Service/Agent.php(133): Service_Agent_Transport_Local->process('0a8635e07e3f854...', Array, Object(Service_Agent_Log))
#3 /usr/local/psa/admin/plib/Template/Writer/Apache.php(82): Service_Agent->commit()
#4 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(202): Template_Writer_Apache->restart()
#5 /usr/local/psa/admin/plib/Template/Configuration/Applier.php(117): Template_Configuration_Applier->_applyConfigurationsToServiceNode(1, Array)
#6 /usr/local/psa/admin/plib/WebServerManager/Adapter/Apache.php(125): Template_Configuration_Applier->applyConfiguration(true)
#7 /usr/local/psa/admin/plib/WebServerManager.php(311): WebServerManager_Adapter_Apache->sync()
#8 /usr/local/psa/admin/plib/api-common/Httpdmng.php(117): WebServerManager->sync()
#9 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct()
#10 {main}

2011-12-10T11:59:35+01:00 ERR (3): Apache config (13235147520.63799000) generation failed: Can not restart web server: Service /etc/init.d/httpd failed to start Service /etc/init.d/httpd failed to start

Can not restart web server: Service /etc/init.d/httpd failed to start Service /etc/init.d/httpd failed to start

PleskUtilException: /usr/local/psa/admin/bin/httpdmng '--reconfigure-domains' 'tarane-b-tarane.ir,tasahar.com,tbsaf.com,teast.sunkhz.com,tebyan-urmia.ir,tehran-
vst.com,tehranasci.info,tehrancaracas.com,tehrandorsahotel.com,tehranium.ir,tejaratpardaz.com,tenstepiran.ir,test.softsun.ir,theschooloflife.ir,tka.ir,tnc-co.co
m,toastrestourant.com,tohidy.ir,toplap.ir,tose-e-garan.com,tourpsy.com,touswoollen.com,tr-vahy.ir,tradecommerce.ir,trz.ir,tums87.com,uast.co,ubonline.ir,up.anza
li.org,upload.arshamp30.com,utg.ir,vagenet.ir,vahdatnik.ir,vakil.net,vali-asr.ir,varkaneh.com,vijename.com,virafan.com,vitrin.co,vivaskin.ir,vrtechnich.com,wag.
ir,warlib.ir,web-gis.ir,web-gostar.ir,web.bakhshdarizarghan.ir,webgam.ir,webiransar.com,workan.ir,wpforblogfa.ir,xn----zmcaegl2bzdzd9ac14n.com,xn--mgbaiusd4b1hb58g6kf.com,yahuwa.ir,yamin-id.ir,yaran79.ir,yavaranezaminbabol.com,yogatabassom.com,yones.ir,yootashared.com,zamanadcenter.com,zarinrah.ir,zarrinfam.com,zolal-co.com,zoobinco.ir' failed with message: Empty error message from utility.
file: /usr/local/psa/admin/plib/common_func.php3
line: 1047
code: 0
trace: #0 /usr/local/psa/admin/plib/common_func.php3(965): util_exec('httpdmng', Array, Array, 'msg', NULL)
#1 /usr/local/psa/admin/plib/Os.php(17): smart_exec('httpdmng', Array, Array, 'msg')
#2 /usr/local/psa/admin/plib/Os.php(28): Os::exec('httpdmng', Array, 'msg')
#3 /usr/local/psa/admin/plib/api-common/Httpdmng.php(101): Os::execEx('httpdmng', Array)
#4 /usr/local/psa/admin/sbin/httpdmng(13): Httpdmng->__construct()
#5 {main}

Execution failed.
Command: httpdmng
Arguments: Array
(
[0] => --reconfigure-domains
[1] => tarane-b-tarane.ir,tasahar.com,tbsaf.com,teast.sunkhz.com,tebyan-urmia.ir,tehran-vst.com,tehranasci.info,tehrancaracas.com,tehrandorsahotel.com,tehranium.ir,tejaratpardaz.com,tenstepiran.ir,test.softsun.ir,theschooloflife.ir,tka.ir,tnc-co.com,toastrestourant.com,tohidy.ir,toplap.ir,tose-e-garan.com,tourpsy.com,touswoollen.com,tr-vahy.ir,tradecommerce.ir,trz.ir,tums87.com,uast.co,ubonline.ir,up.anzali.org,upload.arshamp30.com,utg.ir,vagenet.ir,vahdatnik.ir,vakil.net,vali-asr.ir,varkaneh.com,vijename.com,virafan.com,vitrin.co,vivaskin.ir,vrtechnich.com,wag.ir,warlib.ir,web-gis.ir,web-gostar.ir,web.bakhshdarizarghan.ir,webgam.ir,webiransar.com,workan.ir,wpforblogfa.ir,xn----zmcaegl2bzdzd9ac14n.com,xn--mgbaiusd4b1hb58g6kf.com,yahuwa.ir,yamin-id.ir,yaran79.ir,yavaranezaminbabol.com,yogatabassom.com,yones.ir,yootashared.com,zamanadcenter.com,zarinrah.ir,zarrinfam.com,zolal-co.com,zoobinco.ir
)

Details: Empty error message from utility.



[root@m0905 ~]# grep MAILMAN /etc/psa/psa.conf
MAILMAN_ROOT_D /usr/lib/mailman
MAILMAN_VAR_D /var/lib/mailman

[root@m0905 ~]# ls -ld /usr/lib/mailman /var/lib/mailman
drwxrwsr-x 13 root mailman 4096 Nov 23 10:39 /usr/lib/mailman
drwxrwsr-x 6 root mailman 4096 Nov 23 10:39 /var/lib/mailman

the result of kb #111605 cause 2 is :

no result for 2. Several domains have Apache configuration files regenerated with older version of Parallels Plesk Panel 9.x, 8.x. Apache configuartion file cannot be generated with Parallels Plesk Panel 10.3 anew.

by the way please check below and tell me what i should to do

mysql> select * from Subscriptions where object_id=668\G
Empty set (0.00 sec)

mysql> select * from Configurations where status='error'\G
*************************** 1. row ***************************
id: 1243
name: domainWebmailHorde
serviceNodeId: 1
file: /usr/local/psa/admin/conf/generated/13229430950.92026100_t_mfatem
i_ir_webmail.include
version: 13230171990.22586400
objectType: domain
objectId: 668
status: error
description: Template processing failed: file = /usr/local/psa/admin/conf/temp
lates/default/domainWebmail.php, error = No data.
*************************** 2. row ***************************
id: 1244
name: domainVhost
serviceNodeId: 1
file: /var/www/vhosts/t.mfatemi.ir/conf/13229430950.92026100_httpd.incl
ude
version: 13230171990.22586400
objectType: domain
objectId: 668
status: error
description: Template processing failed: file = /usr/local/psa/admin/conf/temp
lates/default/domainVhost.php, error = No data.
2 rows in set (0.00 sec)

mysql> select * from Subscriptions where object_id=668\G
Empty set (0.00 sec)
 
Last edited by a moderator:
I have the same problem, which can not be solved with Plesk 11:

Aufgrund von Fehlern in den Konfigurations-Templates konnten keine neuen Konfigurationsdateien für den Apache Webserver erstellt werden: Template processing failed: file = /opt/psa/admin/conf/templates/default/domainWebmail.php, error = No data.. Die Fehlermeldung mit einer detaillierten Fehlerbeschreibung wurde Ihnen per E-Mail zugesendet. Bitte lösen Sie das Problem und klicken Sie auf hier, um die beschädigten Konfigurationsdateien erneut zu erstellen, oder auf hier, um alle Konfigurationsdateien zu erstellen.

mysql> select id,objectId,status,description from Configurations where status="error";
+------+----------+--------+--------------------------------------------------------------------------------------------------------------+
| id | objectId | status | description |
+------+----------+--------+--------------------------------------------------------------------------------------------------------------+
| 4651 | 3450 | error | Template processing failed: file = /opt/psa/admin/conf/templates/default/domainWebmail.php, error = No data. |
| 4652 | 3450 | error | Template processing failed: file = /opt/psa/admin/conf/templates/default/domainVhost.php, error = No data. |
+------+----------+--------+--------------------------------------------------------------------------------------------------------------+

select * from apsContexts where (pleskType='hosting' OR pleskType='subdomain') AND subscriptionId=0;
Empty set (0.00 sec)

all kb did not solve the problem. can somebody help?
 
Since i updated all servers to latest Plesk MU (#11), everything went just fine, except on one server i'm getting same error:

New files of configuration for Apache web server were not built due to errors in configuration templates: Template processing failed: file = /opt/psa/admin/conf/templates/default/domainVhost.php, error = No data.. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and click here to retry generating broken configuration or click here to retry generating of all configurations.

Sign, i didn't get any e-mail regarding this problem and i couldn't find any specific error in logs (also i found only this topic regarding this problem and no KB article helped me so far). Need help from the experts :)
 
In my documents and have this:

FIX:
mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa
select * from Configurations where status='error';

http://forum.parallels.com/showthread.php?t=262422

But there is also a link to this thread which doesn't exist any more.

However, I do remember that once you run this query you will get list of errors and then you delete row from table - this will solve problem.

Of course, backup psa database before that. I've also found this, it's something similar, maybe it can help:
http://talk.plesk.com/threads/error-with-webmail-in-plesk.262422/

EDIT:

I've also found in other documents of mine real solution:
New files of configuration for Apache web server were not built due to errors in configuration templates: Template processing failed: file = /opt/psa/admin/conf/templates/default/domainVhost.php, error = No data.. The detailed error message was e-mailed to you, so please check the e-mail, fix the errors, and clickhere to retry generating broken configuration or clickhere to retry generating of all configurations.



1) # mysql -uadmin -p`cat /etc/psa/.psa.shadow` psa

2) mysql > select * from Configurations where status='error';



+------+--------------------+---------------+----------------------------------------------------------------------------

| id | name | serviceNodeId | file | version | objectType | objectId | status | description |

+------+--------------------+---------------+----------------------------------------------------------------------------

| 2495 | domainVhost | 1 | /var/www/vhosts/domain.com/conf/13379273360.13356900_httpd.include | 13379701680.16997400 | domain | 623 | error | Template processing failed: file = /usr/local/psa/admin/conf/templates/default/domainVhost.php, error = No data. |

+------+--------------------+---------------+----------------------------------------------------------------------------


3) # cd /var/www/vhosts/domain.com/conf/

4) # mv 13379273360.13356900_httpd.include 13379273360.13356900_httpd.include_back

5) # touch 13379273360.13356900_httpd.include

6) # /usr/local/psa/admin/bin/httpdmng --reconfigure-all
 
Back
Top