Skip to main content
Oct 11, 2021 1:47 PM UTC
Solved

Error while doing code build deployment using pipeline in Cloud Manager

 

when I build deployment using pipeline in Cloud Manager,

 

dispatcher has error,But I do'not change any config.

 

 

 

 

the error message like this,

 

 

 

+ true
+ echo '!!'
+ for file in ${immutableFiles}
+ echo 'checking '\''conf.dispatcher.d/enabled_farms/farms.any'\'' immutability (if present)'
+ '[' -f /tmp/dispatcher/unzippedConfiguration/conf.dispatcher.d/enabled_farms/farms.any ']'
+ echo 'immutable file '\''conf.dispatcher.d/enabled_farms/farms.any'\'' not present, skipping'
+ for file in ${immutableFiles}
+ echo 'checking '\''conf.dispatcher.d/filters/default_filters.any'\'' immutability (if present)'
+ '[' -f /tmp/dispatcher/unzippedConfiguration/conf.dispatcher.d/filters/default_filters.any ']'
+ echo 'immutable file '\''conf.dispatcher.d/filters/default_filters.any'\'' not present, skipping'
+ for file in ${immutableFiles}
+ echo 'checking '\''conf.dispatcher.d/renders/default_renders.any'\'' immutability (if present)'
+ '[' -f /tmp/dispatcher/unzippedConfiguration/conf.dispatcher.d/renders/default_renders.any ']'
+ echo 'immutable file '\''conf.dispatcher.d/renders/default_renders.any'\'' not present, skipping'
+ for file in ${immutableFiles}
+ echo 'checking '\''conf.dispatcher.d/virtualhosts/default_virtualhosts.any'\'' immutability (if present)'
+ '[' -f /tmp/dispatcher/unzippedConfiguration/conf.dispatcher.d/virtualhosts/default_virtualhosts.any ']'
+ echo 'immutable file '\''conf.dispatcher.d/virtualhosts/default_virtualhosts.any'\'' not present, skipping'
+ [[ 1 -eq 0 ]]
+ echo '!!'
+ echo '!! although mutation of immutable files was detected, changes will be overwritten by dispatcher image cmpl0va80ctrg0build0prd.azurecr.io/aem-ethos/dispatcher-publish:2.0.71 originals anyway!'
+ echo '!!'
+ [[ '' -eq 0 ]]
+ echo 'NOT overwriting immutable files in legacy mode ()'
+ local folder=/tmp/dispatcher/configuration/publish
+ local useSourcesDirectly=0
+ [[ -f /tmp/dispatcher/unzippedConfiguration/opt-in/USE_SOURCES_DIRECTLY ]]
+ [[ 0 -eq 0 ]]
+ /usr/bin/dispatcher-configuration-validator full -d /tmp/dispatcher/configuration/publish /tmp/dispatcher/unzippedConfiguration
Cloud manager validator 2.0.34
2021/10/11 13:23:12 Deprecated configuration layout detected, enabling compatibility mode
2021/10/11 13:23:12 conf.d/available_vhosts/wey_publish.vhost:57: included file (conf.d/rewrites/wey_rewrite.rules) does not match any known file
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/10/11 13:23:12 Container failed during run: validate-dispatcher. No retries remaining.
failed to run step ID: validate-dispatcher: exit status 2

Run ID: caqg9w failed after 24s. Error: failed during run, err: exit status 1

 

 

 

how do I soved it ? Who  can help me?

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Sanjay_Bangar
Sanjay_BangarAccepted solution
Community Advisor
Oct 11, 2021 2:06 PM UTC

Hi @shtang ,

Before Deployment to Cloud first validate your dispatcher on your local.

How to validate dispatcher file?

Open the CLI (cmd) at open directory "C:\Users\<user>\aem-sdk\dispatcher"

Now run the command bin\validator full -d out src

It will showing error related path then you need to correct it and after correction then try to build on cloud.
Regards,
Sanjay

2 replies

Sanjay_Bangar
Community Advisor
Sanjay_BangarCommunity AdvisorAccepted solution
Community Advisor
Oct 11, 2021 2:06 PM UTC

Hi @shtang ,

Before Deployment to Cloud first validate your dispatcher on your local.

How to validate dispatcher file?

Open the CLI (cmd) at open directory "C:\Users\<user>\aem-sdk\dispatcher"

Now run the command bin\validator full -d out src

It will showing error related path then you need to correct it and after correction then try to build on cloud.
Regards,
Sanjay
Translate
Adobe Employee
Oct 12, 2021 12:06 PM UTC

Hi @shtang,

 

Verify your dispatcher changes locally . PFB link to setup dispatcher and then try once in your local.

 

https://bimmisoi.blogspot.com/2021/05/local-dispatcher-setup-aem-as-cloud-on.html

 

Hope this helps!!

Thanks

Translate