Expand my Community achievements bar.

Issues in Symlinks

Avatar

Community Advisor

Hi All

 

I’ve set up the dispatcher for AEM as a cloud and created symbolic links for the vhost and farm files
in Windows. However, after deploying in the lower environment,the build failed due to the error: "Invalid symlinks found."After checking the Adobe Community forum, I attempted to create the symbolic links through WSL (Windows Subsystem for Linux),but I’m encountering issues when trying to commit the code to the Git repository.Could you please suggest how I should proceed with committing the code?
Any insights or recommendations would be greatly appreciated.

 

Thanks

9 Replies

Avatar

Community Advisor

Hi @KNan 

Maybe you need to remove old symlink and commit and then create symlink again and commit.



Arun Patidar

Avatar

Community Advisor

Hi Arun

 

I tried with many times.Still issues exists

 

Thanks

Avatar

Level 9

Hi @KNan 

 

Take a look in here: https://experienceleague.adobe.com/en/docs/experience-manager-learn/ams/dispatcher/git-symlinks

Maybe you can set symlinks = true in your gitconfig file.

Avatar

Community Advisor

HI Tethich

 

I tried this options also ..I'm not able to commit.

 

KNan_0-1738234724352.png

 

Avatar

Level 9

Can you try commit outside Eclipse, in command line or smth ?

Avatar

Community Advisor

Hi @KNan ,

Similar issue was resolved after I cloned project in ubuntu and created symlink.

Thanks

 

Avatar

Level 7

To resolve your symlink issues in Git on Windows:

1. Ensure Git is set to track symlinks: Run git config --global core.symlinks true.
2. Create symlinks directly in Windows instead of WSL.
3. Commit via the command line (outside of Eclipse or any IDE).
4. Remove old symlinks, commit, and then recreate them.
5. Check symlink paths in WSL using ls -l.

If these don’t work, consider using Git LFS for large files or try a different development workflow for symlinks on Windows.

Avatar

Community Advisor

Hi AmitVishwakarma / ALL

Do we need to commit both files ( Enabled & Available ) for farm & vhost files  ?

Or Commit only available Vhost and farms files alone ?

Avatar

Administrator

@KNan Did you find the suggestions helpful? Please let us know if you need more information. If a response worked, kindly mark it as correct for posterity; alternatively, if you found a solution yourself, we’d appreciate it if you could share it with the community. Thank you!



Kautuk Sahni