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

Getting 502 Bad Gateway error while trying to upload packes via curl from Jenkins

Avatar

Avatar
Validate 1
Level 2
Arun_007
Level 2

Likes

4 likes

Total Posts

25 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile

Avatar
Validate 1
Level 2
Arun_007
Level 2

Likes

4 likes

Total Posts

25 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Boost 3
Boost 1
Applaud 5
View profile
Arun_007
Level 2

26-01-2020

Hi All,

 

Am trying to implement the Continuous integration from Jenkins and while trying to install the package to the package manger(AEM 6.4) via the below command, we are getting 502 - bad gateway error.

 

Command:

curl -u ****:**** -F package=@/var/jenkins_home/workspace/package.zip https://www.site.com/crx/packmgr/service/.json/?cmd=upload -F force=true

Response:

<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<html><head>
<title>502 Bad Gateway</title>
</head><body>
<h1>Bad Gateway</h1>
<p>The proxy server received an invalid
response from an upstream server.<br />
</p>
</body></html>

Do i need to tweak something in the  Dispatcher configuration? Can someone please help me on how to approach this issue?

502 AEM 6.4 Jenkins

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
jbrar
Employee

Likes

389 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile

Avatar
Coach
Employee
jbrar
Employee

Likes

389 likes

Total Posts

869 posts

Correct Reply

283 solutions
Top badges earned
Coach
Establish
Give Back 50
Give Back 5
Give Back 3
View profile
jbrar
Employee

27-01-2020

If you replace "https://www.site.com" with the actual IP of AEM instance(bypassing dispatcher), does the issues get resolved? If yes, the issue lies with the dispatcher.

Answers (1)

Answers (1)

Avatar

Avatar
Level 1
skurkular
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile

Avatar
Level 1
skurkular
Level 1

Likes

0 likes

Total Posts

2 posts

Correct Reply

0 solutions
View profile
skurkular
Level 1

15-10-2020

Why is this marked as solved, if there isn't a single comment or answer....