Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

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

Avatar

Level 1

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.

 

1 Accepted Solution

Avatar

Correct answer by
Level 4

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

View solution in original post

6 Replies

Avatar

Community Advisor

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/conten...

Thanks
Tarun

Avatar

Administrator

@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

Avatar

Correct answer by
Level 4

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

Avatar

Level 1

Cloud manager validator 2.0.64

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

but why we need to remove the out folder?

Avatar

Community Advisor

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.

Avatar

Community Advisor

@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