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
BedrockMission!

Learn More

View all

Sign in to view all badges

Error while doing code build deployment using pipeline in Cloud Manager

Avatar

Avatar
Validate 10
Level 2
arunk85184451
Level 2

Likes

4 likes

Total Posts

43 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back
Boost 3
View profile

Avatar
Validate 10
Level 2
arunk85184451
Level 2

Likes

4 likes

Total Posts

43 posts

Correct Reply

2 solutions
Top badges earned
Validate 10
Validate 1
Ignite 1
Give Back
Boost 3
View profile
arunk85184451
Level 2

13-08-2020

Hi,

code build is getting failed while Build Image. can anyone please help to fix this issue 

 

arunk85184451_0-1597337665759.png

below the error 

 

+ wget -O /tmp/dispatcher/dispatcher-configuration.zip 'https://cm0pl0va80stor0prd.file.core.windows.net/cdbd4994-837a-4d0e-8af4-d6b433b2e3c9/build/aem-guid...'
--2020-08-13 16:20:37-- https://cm0pl0va80stor0prd.file.core.windows.net/cdbd4994-837a-4d0e-8af4-d6b433b2e3c9/build/aem-guid...
Resolving cm0pl0va80stor0prd.file.core.windows.net (cm0pl0va80stor0prd.file.core.windows.net)... 52.239.153.8
Connecting to cm0pl0va80stor0prd.file.core.windows.net (cm0pl0va80stor0prd.file.core.windows.net)|52.239.153.8|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 16149 (16K) [application/octet-stream]
Saving to: ‘/tmp/dispatcher/dispatcher-configuration.zip’

0K .......... ..... 100% 25.8M=0.001s

2020-08-13 16:20:37 (25.8 MB/s) - ‘/tmp/dispatcher/dispatcher-configuration.zip’ saved [16149/16149]

+ validate_configuration /tmp/dispatcher/dispatcher-configuration.zip
+ local zippedConfiguration=/tmp/dispatcher/dispatcher-configuration.zip
+ /usr/bin/dispatcher-configuration-validator full /tmp/dispatcher/dispatcher-configuration.zip
Cloud manager validator 2.0.21
2020/08/13 16:20:37 Apache configuration uses non-whitelisted directives:
conf.d/enabled_vhosts/wknd.vhost:1: ../available_vhosts/wknd.vhost
2020/08/13 16:20:37 Dispatcher configuration validation failed:
conf.dispatcher.d/enabled_farms/default.farm:1: extra characters following label "/default.farm" are ignored
The command '/bin/sh -c AZCOPY="/usr/bin/azcopy" VALIDATOR_BINARY="/usr/bin/dispatcher-configuration-validator" DISPATCHER_CONFIGURATION_LOCATION=$dispatcherConfigurationLocation DISPATCHER_CONFIGURATION_DESTINATION=$dispatcherConfigurationDestination RUN_MODE=$runmode ./validateDispatcherConfiguration.sh' returned a non-zero code: 2
2020/08/13 16:20:38 Container failed during run: build. No retries remaining.
failed to run step ID: build: exit status 2

Run ID: ca2fhf failed after 1m26s. Error: failed during run, err: exit status 1

 

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Boost 1
Level 1
jamesr11032597
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile

Avatar
Boost 1
Level 1
jamesr11032597
Level 1

Like

1 like

Total Posts

4 posts

Correct Reply

1 solution
Top badges earned
Boost 1
Affirm 1
View profile
jamesr11032597
Level 1

13-08-2020

Try focusing on what the error message says:

2020/08/13 16:20:37 Dispatcher configuration validation failed:
conf.dispatcher.d/enabled_farms/default.farm:1: extra characters following label "/default.farm" are ignored

This suggests you have an error on the first line in the above file, or potentially the file that references the above file.

Answers (4)

Answers (4)

Avatar

Avatar
Boost 3
Level 1
Oleksii_Chuiev
Level 1

Likes

3 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 3
Boost 1
View profile

Avatar
Boost 3
Level 1
Oleksii_Chuiev
Level 1

Likes

3 likes

Total Posts

5 posts

Correct Reply

0 solutions
Top badges earned
Boost 3
Boost 1
View profile
Oleksii_Chuiev
Level 1

03-11-2020

@arunk85184451 we too faced with such an issue. For us it seems was related to broken symlinks.

/dispatcher/src/conf.d/enabled_vhosts/default.vhost is a symlink to /dispatcher/src/conf.d/available_vhosts/default.vhost
the same
/dispatcher/src/conf.dispatcher.d/enabled_farms/default.farm is a symlink to /dispatcher/src/conf.dispatcher.d/available_farms/default.farm

 

After working with the code in Windows we've found that symlinks became broken. Quick fix for us - copy content from origin available_vhosts/available_farms to enabled_vhosts/available_farms (so we have real content instead of reference to another files). Not sure if this is a good solution, but it helped. Btw, not clear how such a symlinks should work in Windows.

Avatar

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct Reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct Reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
View profile
Nikhil-Kumar
MVP

17-08-2020

@arunk85184451,

Got to this path conf.dispatcher.d/enabled_farms/default.farm and try to debug for solution at this location.

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,133 likes

Total Posts

3,161 posts

Correct Reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,133 likes

Total Posts

3,161 posts

Correct Reply

1,079 solutions
Top badges earned
Coach
Give back 600
Ignite 5
Ignite 3
Ignite 1
View profile
Jörg_Hoh
Employee

13-08-2020

That's unfortunate, and you should definitely raise a ticket with Support.

In parallel you could give it another try.

 

I constantly pray to pay attention to the details of the error message, and now I fooled myself 🙂

Avatar

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct Reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile

Avatar
Give Back 3
Level 4
SundeepKatepally
Level 4

Likes

76 likes

Total Posts

76 posts

Correct Reply

21 solutions
Top badges earned
Give Back 3
Boost 10
Boost 25
Boost 50
Affirm 10
View profile
SundeepKatepally
Level 4

13-08-2020

Never used pipeline in cloud manager.

But as per the error log. , what i understood is there is some issue in the apache configuration i.e. in the typical AMS dispatcher structure you need to inclide all the available vhosts as part of enabled vhosts.