Expand my Community achievements bar.

SOLVED

Getting syntax/wildcard character error while trying to deploy to Disptacher.

Avatar

Level 2

Hi All,

We are looking to deploy the dispatcher code through Adobe CM pipelines. The dispatcher code was built well locally. Symbolic links have been taken care of. Still on the deployment step within Adobe CM pipelines, the below error is coming.
-----------------------------------------------
2022-03-09T11:19:42+0000 Begin deployment in myproject-dev-65-03 [id: sd3e6agh9efhv8mdsadt6].
Active authors at the beginning of the deployment process: author1eastus2
Active publishers at the beginning of the deployment process: publish1eastus2
Active dispatchers at the beginning of the deployment process: dispatcher1eastus2
2022-03-09T11:19:46+0000 Begin backup for myproject-dev-65-03 [id: sd3e6agh9efhv8mdsadt6]
2022-03-09T11:21:31+0000 Finish backup for myproject-dev-65-03 [id: sd3e6agh9efhv8mdsadt6]
2022-03-09T11:21:36+0000 Begin detach ELB(s) for myproject-dev-65-03 [id: sd3e6agh9efhv8mdsadt6]
2022-03-09T11:22:49+0000 Finish detach ELB(s) for myproject-dev-65-03 [id: sd3e6agh9efhv8mdsadt6]
2022-03-09T11:22:53+0000 Begin deploy packages to all instances in myproject-dev-65-03 [id: sd3e6agh9efhv8mdsadt6]
2022-03-09T11:26:05+0000 Deploy to instanceId=dispatcher1eastus2 failed with errorCode=10011001 message=Failed to start Apache due to syntax error in deployed configurations, httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 35 of /etc/httpd/conf.d/dispatcher_vhost.conf: No matches for the wildcard '*.vhost' in '/etc/httpd/conf.d/enabled_vhosts', failing (use IncludeOptional if required)
2022-03-09T11:26:05+0000 Failed to deploy dispatcher on instance dispatcher1eastus2. ActionId=18fgcagaufooul72sp9arbm3kf
2022-03-09T11:26:10+0000 Begin attach ELB(s) for myproject-dev-65-03 [id: sd3e6agh9efhv8mdsadt6]
2022-03-09T11:27:23+0000 Finish attach ELB(s) for myproject-dev-65-03 [id: sd3e6agh9efhv8mdsadt6]

Any leads in this regard would be very helpful.

Thanks 
Vinod.

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @Vinodthakur 

the error looks like, the File /directory is not found.

What is the Apache version you're using?  

I found below, please check if you can use IncludeOptional instead of Include directive.

 

On Apache 2.4 use IncludeOptional instead of Include when using wildcards.

View solution in original post

5 Replies

Avatar

Correct answer by
Community Advisor

Hi @Vinodthakur 

the error looks like, the File /directory is not found.

What is the Apache version you're using?  

I found below, please check if you can use IncludeOptional instead of Include directive.

 

On Apache 2.4 use IncludeOptional instead of Include when using wildcards.

Avatar

Level 2

Thanks, Siva

 

But this has not solved the issue I am facing. 

I am using Dispatcher version 2.4.6.

I have tried IncludeOptional, I also recreated symbolic links or even used the actual file in place of symbolic links. 

 

 

 

 

Avatar

Community Advisor

did you verify the file permissions? Also, please make sure the user which is used to run Apache has proper access on the file. 

can you please share the error you're getting when you use IncludeOptional? 

 

 

 

Avatar

Level 2

Hi Siva,

Error is 

2022-03-10T09:17:15+0000 Begin deployment in project-dev-65-03 [id: 3e6agh9efhv8mt61m4fs08j3ft].
Active authors at the beginning of the deployment process: author1eastus2
Active publishers at the beginning of the deployment process: publish1eastus2
Active dispatchers at the beginning of the deployment process: dispatcher1eastus2
2022-03-10T09:17:21+0000 Begin backup for project-dev-65-03 [id: 3e6agh9efhv8mt61m4fs08j3ft]
2022-03-10T09:19:08+0000 Finish backup for project-dev-65-03 [id: 3e6agh9efhv8mt61m4fs08j3ft]
2022-03-10T09:19:13+0000 Begin detach ELB(s) for project-dev-65-03 [id: 3e6agh9efhv8mt61m4fs08j3ft]
2022-03-10T09:20:27+0000 Finish detach ELB(s) for project-dev-65-03 [id: 3e6agh9efhv8mt61m4fs08j3ft]
2022-03-10T09:20:32+0000 Begin deploy packages to all instances in project-dev-65-03 [id: 3e6agh9efhv8mt61m4fs08j3ft]
2022-03-10T09:23:47+0000 Deploy to instanceId=dispatcher1eastus2 failed with errorCode=10011001 message=Failed to start Apache due to syntax error in deployed configurations, httpd: Syntax error on line 353 of /etc/httpd/conf/httpd.conf: Syntax error on line 35 of /etc/httpd/conf.d/dispatcher_vhost.conf: No matches for the wildcard '*.vhost' in '/etc/httpd/conf.d/enabled_vhosts', failing (use IncludeOptional if required)
2022-03-10T09:23:47+0000 Failed to deploy dispatcher on instance dispatcher1eastus2. ActionId=d9drnil5evd0hg5hqdksv66tf
2022-03-10T09:23:54+0000 Begin attach ELB(s) for project-dev-65-03 [id: 3e6agh9efhv8mt61m4fs08j3ft]
2022-03-10T09:25:07+0000 Finish attach ELB(s) for project-dev-65-03 [id: 3e6agh9efhv8mt61m4fs08j3ft]

Avatar

Employee Advisor

The "problem" is that you have an include statement in /etc/httpd/conf.d/dispatcher_vhost.conf, which includes "*.vhost" files. But this glob does not match any file. That could be a typo. But if that's exactly what you want and having zero files in that folder is ok, then you should switch to the "IncludeOptional" statement, which explicitly allows this.