Dispatcher SymLinks Configurations
Hi AEM Community,
The issue with symlinks has been frequently raised and discussed.
Blog Reference - https://medium.com/tech-learnings/aem-dispatcher-configurations-symlinks-8f52f554ffa5
I would like to discuss my use case as well -
1. I created symlinks on my windows machine using "mklink src target" utility.
However, I got the below error -
2022/07/29 18:16:54 Dispatcher configuration validation failed:
/tmp/dispatcher/unzippedConfiguration/conf.dispatcher.d/enabled_farms/abc.farm: appears to be a windows (pseudo) symlink but this OS does not support these. Please commit a correct symlink: ../available_farms/abc.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/07/29 18:16:54 Container failed during run: validate-dispatcher. No retries remaining.
failed to run step ID: validate-dispatcher: exit status 2
How can we create symlinks for Cloud/linux based OS on windows machine ?
2. Used Debian WSL-2 compatibility layer
I was able to create the symlinks using Debian however I had the issue of authentication in pushing the changes to remote.
My credentials were not authorized (Read somewhere that for two factor authentication it doesn't work)
So I committed the changes using Debian interface and pushed it using windows shell.
Still I got the same error.
Can you please help on how to proceed as I seem to be unable to create symLinks that would work on cloud ?
Thanks,
Rohan Garg
