might be best explained with some terminal output (I'm using WSL since I can create links there)
in the screen dump below, myhost1 and myhost2 are existing domains that can be deployed (to all environments) without any problems since last Friday (The last dev deployment was something I started). myhost3.com is the new domain I'm trying to configure.
I'm wondering what sort of file is "enabled_host/myhost1.com.vhost". It's not a symlink and I can open it in a text editor (vi/nano).
$ pwd
/mnt/d/projects/mysite/dispatcher/src/conf.d/enabled_vhosts
$ ls -al
-rwxrwxrwx 1 myuser myuser 99 Jul 01 12:37 README
-rwxrwxrwx 1 myuser myuser 43 Jul 01 12:37 myhost1.com.vhost
-rwxrwxrwx 1 myuser myuser 43 Jul 01 12:37 myhost2.com.vhost
-rwxrwxrwx 1 myuser myuser 43 Jul 01 12:37 myhost3.com.vhost
$ ls -al ../available_vhosts/
total 28
drwxrwxrwx 1 myuser myuser 4096 Jul 15 16:20 .
drwxrwxrwx 1 myuser myuser 4096 Jul 12 12:37 ..
-rwxrwxrwx 1 myuser myuser 2325 Jul 12 12:37 default.vhost
-rwxrwxrwx 1 myuser myuser 5713 Jul 12 12:37 myhost1.com.vhost
-rwxrwxrwx 1 myuser myuser 5856 Jul 12 12:37 myhost2.com.vhost
-rwxrwxrwx 1 myuser myuser 5900 Jul 16 15:52 myhost3.com.vhost
$ cat myhost1.com.vhost
../available_vhosts/myhost1.com.vhost
I am implementing a new site and I followed the same patterns used on existing sites. I did not use symlinks since the existing sites does not use symlink (based on my terminal output above) and they are working fine.
When I deployed the my changes to dev cluster, I got an error stating my new vhost in "enabled_host" is not a symlink. I know I can easily change it to symlink but (i'll be repeating myself here), the existing sites does not use symlinks.
Any ideas what's happening here?
UPDATE: I removed "enabled_host/myhost3.com.vhost" and my deployment to dev is working fine again. It was originally failing in the "Build & Unit Testing" step.
Solved! Go to Solution.
Views
Replies
Total Likes
Hi,
Those are indeed symlinks (or at least they were). I think what might have happened is that something affected those symlinks, making them not appear as symlinks anymore. I encountered this issue once while dealing with a Git configuration that prevented symlinks from functioning properly. The problem was related to a Git server running on a Windows machine, which didn't handle symlinks pushed from a UNIX OS correctly, leading to deployment failures.
You can read more details about this issue here: https://superuser.com/questions/1713099/symbolic-link-does-not-work-in-git-over-windows. https://github.com/git-lfs/git-lfs/issues/4908 Perhaps these incorrectly formatted symlinks were inherited from a previous implementation.
Anyway, deploying into AEMaaCS now undergoes pre-checks by validators, and using symlinks is mandatory.
Hope this helps
In AEM Dispatcher configuration, it's recommended to use symbolic links (symlinks) to link .vhost files from the available_vhosts directory to the enabled_vhosts directory rather than copying the files directly. Here are the some reasons for this practice:
Hi,
Those are indeed symlinks (or at least they were). I think what might have happened is that something affected those symlinks, making them not appear as symlinks anymore. I encountered this issue once while dealing with a Git configuration that prevented symlinks from functioning properly. The problem was related to a Git server running on a Windows machine, which didn't handle symlinks pushed from a UNIX OS correctly, leading to deployment failures.
You can read more details about this issue here: https://superuser.com/questions/1713099/symbolic-link-does-not-work-in-git-over-windows. https://github.com/git-lfs/git-lfs/issues/4908 Perhaps these incorrectly formatted symlinks were inherited from a previous implementation.
Anyway, deploying into AEMaaCS now undergoes pre-checks by validators, and using symlinks is mandatory.
Hope this helps
thanks for the tip. I was able to reclone the repo and those enabled_hosts files now show up as proper symlinks