Expand my Community achievements bar.

SOLVED

Error while doing code build deployment using pipeline in Cloud Manager

Avatar

Level 1

 

when I build deployment using pipeline in Cloud Manager,

 

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

 

shtang_0-1633959882129.png

 

 

 

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?

 

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

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

View solution in original post

2 Replies

Avatar

Correct answer by
Community Advisor

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

Avatar

Employee Advisor

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