Unable to establish connection from domain --> Dispatcher --> Render ..502 Bad Gateway

Avatar

Avatar
Validate 1
Level 1
gurup34365977
Level 1

Likes

2 likes

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
gurup34365977
Level 1

Likes

2 likes

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
gurup34365977
Level 1

26-02-2020

Hi Team,

We are using Apache version 2.4 with dispatcher 4.3.3 version. Configured dispatcher.any, httpd.conf,http_Vhost.conf, when we are accessing from dispatcher I am able to get response from renderer. But when we are accessing from domain i am getting 502 bad gateway. In dispatcher.log response status coming as 400. Please help me on the same. 

When accessing from dispatcher find logs

 

Wed Feb 26 09:40:16 2020] [D] [pid 26772] Render-ID in cookie detected: rend01

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Found farm author for rnse2-usst-lweb01.rno.com:21100

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] checking [/bin/healthchecktype=external]

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] request URL has no extension: /bin/healthchecktype=external

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] cache-action for [/bin/healthchecktype=external]: NONE

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Creating new connection: rns2-usst-lapp03.rno.com:8443

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Connected to backend rend01 (rns2-usst-lapp03.rno.com:8443)

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Host

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Cache-Control

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Upgrade-Insecure-Requests

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: User-Agent

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Sec-Fetch-Mode

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Sec-Fetch-User

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Accept

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Sec-Fetch-Site

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Accept-Encoding

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Accept-Language

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Cookie

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Via

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: X-Forwarded-For

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: X-Forwarded-SSL

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: X-Forwarded-SSL-Cipher

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: X-Forwarded-SSL-Session-ID

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: X-Forwarded-Port

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Adding request header: Server-Agent

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] response.status = 200

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] response.headers[Date] = "Wed, 26 Feb 2020 09:40:16 GMT"

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] response.headers[X-Content-Type-Options] = "nosniff"

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] response.headers[X-Frame-Options] = "SAMEORIGIN"

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] response.headers[X-Powered-By] = "Jetty(9.4.15.v20190215)"

[Wed Feb 26 09:40:16 2020] [D] [pid 26772] Storing socket for later reuse: rns2-usst-lapp03.rno.com:8443

[Wed Feb 26 09:40:16 2020] [I] [pid 26772] "GET /bin/healthchecktype=external" 200 none [author/rend01] 48ms

 

 

when we are accessing from domain it is capturing following logs

 

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Found farm author for accp-sh-uat.rno.com

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] checking [/bin/healthchecktype=external]

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] request URL has no extension: /bin/healthchecktype=external

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] cache-action for [/bin/healthchecktype=external]: NONE

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Reusing connection: rns2-usst-lapp03.rno.com:8443

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Connected to backend rend01 (rns2-usst-lapp03.rno.com:8443)

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Adding request header: Host

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Adding request header: x-shield-req-id

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Adding request header: User-Agent

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Adding request header: Via

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Adding request header: X-Forwarded-For

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Adding request header: X-Forwarded-SSL

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Adding request header: X-Forwarded-SSL-Cipher

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Adding request header: Server-Agent

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] response.status = 400

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] Setting sticky connection to rend01

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] response.headers[Set-Cookie] = "renderid=rend01; path=/; secure"

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] response.headers[Cache-Control] = "must-revalidate,no-cache,no-store"

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] response.headers[Content-Type] = "text/html;charset=iso-8859-1"

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] response.headers[Content-Length] = "2078"

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] response.headers[X-Powered-By] = "Jetty(9.4.15.v20190215)"

[Wed Feb 26 09:40:16 2020] [D] [pid 2797] No socket reuse: backend asks to close connection

[Wed Feb 26 09:40:16 2020] [I] [pid 2797] "GET /bin/healthchecktype=external" 400 none [author/rend01] 2ms

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Coach
Employee
Jörg_Hoh
Employee

Likes

1,134 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,134 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

29-02-2020

The error is created on AEM side, so you check the logs there.

* The request.log on that publish instance should log this request with the response code 400 as well.

* Check the error.log if there is any trace for that request.

 

What code is behind this /bin/healthchecktype=external request? I am quite sure that it is not AEM ootb functionality.

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
Level 1
gurup34365977
Level 1

Likes

2 likes

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile

Avatar
Validate 1
Level 1
gurup34365977
Level 1

Likes

2 likes

Total Posts

14 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 1
View profile
gurup34365977
Level 1

02-06-2020

Hi All,

 

It's been resolved. SSL certification issue.

 

Regards,

Guru Pavan

Avatar

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

103 likes

Total Posts

240 posts

Correct reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile

Avatar
Contributor
Employee
hamidk92094312
Employee

Likes

103 likes

Total Posts

240 posts

Correct reply

38 solutions
Top badges earned
Contributor
Shape 1
Ignite 1
Give Back 50
Give Back 5
View profile
hamidk92094312
Employee

26-02-2020

Please check the following document where the steps to use dispatcher with multiple domains is explained:

https://docs.adobe.com/content/help/en/experience-manager-dispatcher/using/configuring/dispatcher-do...