Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

Dispatcher Symlinks

Sean-McK
Level 4
Level 4

Hey All,

 

I know this problem is going around, but I don't know a valid solution for this.

 

I have run the dispatcher validation against all my code (inside dispatcher project). It has passed everything, but I get the same error:

 

2021/11/11 14:05:23 Dispatcher configuration validation failed:
conf.dispatcher.d/enabled_farms/default.farm:1: extra characters following label "/default.farm" are ignored

 

 

Does anyone know the best way to fix this on a windows box?

 

 

1 Accepted Solution
Sean-McK
Correct answer by
Level 4
Level 4

So for the record, it is a symlink issue. when you run your dispatchers locally you need to have ../available_vhost/name.vhost in your symlink, but that can't be what goes into the cloud. So I got on Ubuntu WSL and did a symlink and commited it and it worked.

 

View solution in original post

4 Replies
Sean-McK
Level 4
Level 4

I want to add a couple of things.....when I used WSL to create the symlink, I was able to get rid of the above error for farm, but when I try to create the symlink for the enabled_vhost I get this:

 

Cloud manager validator 2.0.34
2021/11/11 15:18:48 /tmp/dispatcher/unzippedConfiguration: no file found matching pattern: conf.d/enabled_vhosts/*.vhost
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
2021/11/11 15:18:48 Container failed during run: validate-dispatcher. No retries remaining.
failed to run step ID: validate-dispatcher: exit status 2

 

That is not true, the file is there.

Mayank_Tiwari
Employee
Employee

The problem is:
enabled_vhosts/wknd.vhost needs to be a symboling link to available_vhosts/wknd.vhost
(see repo on git)
https://github.com/adobe/aem-guides-wknd/blob/master/dispatcher/src/conf.d/enabled_vhosts/wknd.vhost

But on client package this is a plain file containing

../available_vhosts/wknd.vhost

Can you please try to fix the symbolic link and run the validator locally to see if you still get an error.

[1] https://docs.adobe.com/content/help/en/experience-manager-learn/cloud-service/local-development-envi...

Sean-McK
Level 4
Level 4

Yeah I know, and I have been doing that. Still getting the error.

Sean-McK
Correct answer by
Level 4
Level 4

So for the record, it is a symlink issue. when you run your dispatchers locally you need to have ../available_vhost/name.vhost in your symlink, but that can't be what goes into the cloud. So I got on Ubuntu WSL and did a symlink and commited it and it worked.

 

View solution in original post