Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.
SOLVED

Dispatcher deployment failed for WKND project

Avatar

Level 5

I'm deploying latest weekend project to cloud, deployment fails for dispatcher with :

 

 

2022/10/19 14:49:36 The following errors were found in the httpd config:
/tmp/dispatcher/unzippedConfiguration/conf.d/enabled_vhosts/wknd.vhost: appears to be a windows (pseudo) symlink but this OS does not support these. Please commit a correct symlink: ../available_vhosts/wknd.vhost
2022/10/19 14:49:36 Dispatcher configuration validation failed:
/tmp/dispatcher/unzippedConfiguration/conf.dispatcher.d/enabled_farms/wknd.farm: appears to be a windows (pseudo) symlink but this OS does not support these. Please commit a correct symlink: ../available_farms/wknd.farm
2022/10/19 14:49:36 Dispatcher configuration validation failed:
/tmp/dispatcher/unzippedConfiguration/conf.d/enabled_vhosts/wknd.vhost: appears to be a windows (pseudo) symlink but this OS does not support these. Please commit a correct symlink: ../available_vhosts/wknd.vhost
/tmp/dispatcher/unzippedConfiguration/conf.dispatcher.d/enabled_farms/wknd.farm: appears to be a windows (pseudo) symlink but this OS does not support these. Please commit a correct symlink: ../available_farms/wknd.farm
The command '/bin/sh -c AZCOPY="/usr/bin/azcopy" VALIDATOR_BINARY="/usr/bin/dispatcher-configuration-validator" HTTPD_BINARY="/usr/sbin/httpd" DISPATCHER_CONFIGURATION_LOCATION=$dispatcherConfigurationLocation DISPATCHER_CONFIGURATION_DESTINATION=$dispatcherConfigurationDestination DISPATCHER_IMAGE=$dispatcherImage RUN_MODE=$runmode ./validateDispatcherConfiguration.sh' returned a non-zero code: 2
2022/10/19 14:49:36 Container failed during run: validate-dispatcher. No retries remaining.
failed to run step ID: validate-dispatcher: exit status 2

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hello @nbg62 

 

The AEMaaCS dispatcher follows structure similar to aem-project-archetype/src/main/archetype/dispatcher.cloud at develop · adobe/aem-project-archetype (...

  • each enabled_vhost is symlink to available_vhost
  • each enabled_farms is symlink to available_farms

 

Please check following:

- Are the files created under enabled_vhost & enabled_farms  symlinks?

- If not, either you can create symlinks or add  opt-in/USE_SOURCES_DIRECTLY to use Flexible mode of dispatcher

 

Details about flexible and legacy mode are available on : https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/conten...


Aanchal Sikka

View solution in original post

3 Replies

Avatar

Community Advisor

If you are deploying the local version of dispatcher it will not work because of missing symlink

2022/10/19 14:49:36 The following errors were found in the httpd config:
/tmp/dispatcher/unzippedConfiguration/conf.d/enabled_vhosts/wknd.vhost: appears to be a windows (pseudo) symlink but this OS does not support these. Please commit a correct symlink: ../available_vhosts/wknd.vhost
2022/10/19 14:49:36 Dispatcher configuration validation failed:
/tmp/dispatcher/unzippedConfiguration/conf.dispatcher.d/enabled_farms/wknd.farm: appears to be a windows (pseudo) symlink but this OS does not support these. Please commit a correct symlink: ../available_farms/wknd.farm
2022/10/19 14:49:36 Dispatcher configuration validation failed:
/tmp/dispatcher/unzippedConfiguration/conf.d/enabled_vhosts/wknd.vhost: appears to be a windows (pseudo) symlink but this OS does not support these. Please commit a correct symlink: ../available_vhosts/wknd.vhost
/tmp/dispatcher/unzippedConfiguration/conf.dispatcher.d/enabled_farms/wknd.farm: appears to be a windows (pseudo) symlink but this OS does not support these. Please commit a correct symlink: ../available_farms/wknd.farm

 

Please check

https://experienceleaguecommunities.adobe.com/t5/adobe-experience-manager/dispatcher-symlinks-config... 

https://www.albinsblog.com/2020/12/aem-dispatcher-configurations-symlinks.html#.Y1AuJuxBz0o 

 

 

 



Arun Patidar

Avatar

Level 5

Thank you Arun,

 

Not sure what you mean by local dispatcher, I pull wknd code from git and push it to Cloud instance for deployment.

Avatar

Correct answer by
Community Advisor

Hello @nbg62 

 

The AEMaaCS dispatcher follows structure similar to aem-project-archetype/src/main/archetype/dispatcher.cloud at develop · adobe/aem-project-archetype (...

  • each enabled_vhost is symlink to available_vhost
  • each enabled_farms is symlink to available_farms

 

Please check following:

- Are the files created under enabled_vhost & enabled_farms  symlinks?

- If not, either you can create symlinks or add  opt-in/USE_SOURCES_DIRECTLY to use Flexible mode of dispatcher

 

Details about flexible and legacy mode are available on : https://experienceleague.adobe.com/docs/experience-manager-cloud-service/content/implementing/conten...


Aanchal Sikka