While running bin/validator full -d out src in aemcloud dispatcher | Community
Skip to main content
New Participant
February 8, 2024
Solved

While running bin/validator full -d out src in aemcloud dispatcher

  • February 8, 2024
  • 5 replies
  • 1036 views

Hi, 

       I am facing issue after running the validator script even after flexi mode available also i,e. opt-in available below is the error reported

bin/validator full -d out src

Cloud manager validator 2.0.64

2024/01/22 19:28:43 The following errors were found in the httpd config:

  conf.d/available_vhosts/project-a: included file (conf.d/rewrites/rewrite-projecta.rules) does not match any known file

  conf.d/rewrites/rewrite-projecta.rules:71: included file (conf.d/rewrites/redirect-projecta.rules) does not match any known file

  conf.d/available_vhosts/project-b.vhost:78: included file (conf.d/rewrites/rewrite-projectb.rules) does not match any known file

  conf.d/available_vhosts/project-c.vhost:68: included file (conf.d/rewrites/rewrite-projectc.rules) does not match any known file

  conf.d/rewrites/rewrite-projectc.rules:17: included file (conf.d/rewrites/redirect-projectc.rules) does not match any known file

we are following multi tenant architecture.

 

Best answer by ayush-anand

Hi @raghuta1 

 

Could you please try the below command and see if you are getting any validation error.

rm -rf ./out && ./bin/validator full -relaxed ./src

 

Thanks

Ayush

5 replies

Rohan_Garg
New Participant
February 8, 2024

@raghuta1 - Besides validating symlinks and relaxed validation also please check your rewrite files inclusion in the vhost file.

All these errors are pointing to rewrite rules file not being found/read.

Can you share your vhost file's <IfModule mod_rewrite.c> code?

For including multiple rewrite files please refer to thread Multiple Rewrites

SureshDhulipudi
New Participant
February 8, 2024

Check the File Type - error stating issue with the file - it should be of type Symlink and Check the Size of the file,

Type and Size should be there in file properties.

ayush-anand
ayush-anandAccepted solution
New Participant
February 8, 2024

Hi @raghuta1 

 

Could you please try the below command and see if you are getting any validation error.

rm -rf ./out && ./bin/validator full -relaxed ./src

 

Thanks

Ayush

RaghuTa1Author
New Participant
February 9, 2024

Cloud manager validator 2.0.64

2024/02/08 17:29:12 No issues found

but why we need to remove the out folder?

kautuk_sahni
Employee
February 8, 2024

@raghuta1 Did you find the suggestions from users helpful? Please let us know if more information is required. Otherwise, please mark the answer as correct for posterity. If you have found out solution yourself, please share it with the community.

Kautuk Sahni
TarunKumar
New Participant
February 8, 2024

Hi @raghuta1 ,

Please make sure that your files are created in the "available_vhosts" directory and enabled with a symbolic link in the enabled_vhosts directory. 
Also ensure that at least one virtual host is always available that matches ServerAlias \*.locallocalhost, and 127.0.0.1 which are needed for the Dispatcher invalidation. The server aliases *.adobeaemcloud.net and *.adobeaemcloud.com are also required in at least one vhost configuration and are needed for internal Adobe processes.

For more guidance on it you can follow below link
https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/content-delivery/validation-debug.html?lang=en

Thanks
Tarun