Expand my Community achievements bar.

SOLVED

AEM Author to Publisher connectivity issues || Docker

Avatar

Level 2

Hello,

 

I dockerized AEM (6.5) Author and Publisher and able to run them locally on same network. Made necessary config changes in Author to establish replication with Publisher but Replication test is failing with below error.

 

Does has anyone faced this error ? any recommendation how to fix it ?

Error:

 

Replication test to http://localhost:4503/bin/receive?sling:authRequestLogin=1

2021-11-10 11:56:07 - Create new HttpClient for Default Agent
2021-11-10 11:56:07 - * Auth User: admin
2021-11-10 11:56:07 - * HTTP Version: 1.1
2021-11-10 11:56:07 - * Connect Timeout: 900000
2021-11-10 11:56:07 - * Socket Timeout: 900000
2021-11-10 11:56:07 - adding header: Action:Test
2021-11-10 11:56:07 - adding header: Path:/content
2021-11-10 11:56:07 - adding header: Handle:/content
2021-11-10 11:56:07 - deserialize content for delivery
2021-11-10 11:56:07 - No message body: Content ReplicationContent.VOID is empty
2021-11-10 11:56:07 - Sending POST request to http://localhost:4503/bin/receive?sling:authRequestLogin=1
2021-11-10 11:56:07 - Error while sending request: java.net.ConnectException: Connection refused (Connection refused)
2021-11-10 11:56:07 - Replication (TEST) of /content not successful: java.net.ConnectException: Connection refused (Connection refused) Conversation follows
2021-11-10 11:56:07 - ------------------------------------------------
2021-11-10 11:56:07 - Sending message to localhost:4503
2021-11-10 11:56:07 - >> POST /bin/receive HTTP/1.0
2021-11-10 11:56:07 - >> Action: Test
2021-11-10 11:56:07 - >> Path: /content
2021-11-10 11:56:07 - >> Handle: /content
2021-11-10 11:56:07 - >> Referer: about:blank
2021-11-10 11:56:07 - >> Content-Length: 0
2021-11-10 11:56:07 - >> Content-Type: application/octet-stream

 


Replication test failed
Connection refused (Connection refused)

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Hi @saiwd 

 

Can you please check the below details:

  1. Is AEM Publisher up and running?
  2. Is the AEM Publisher port 4503?
  3. Try to increase the Retry Delay and check if that works

Useful link: https://www.cqtutorial.com/courses/cq-admin/cq-admin-lessons/configure-cq-replication/cq-configure-m...

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

View solution in original post

4 Replies

Avatar

Correct answer by
Community Advisor

Hi @saiwd 

 

Can you please check the below details:

  1. Is AEM Publisher up and running?
  2. Is the AEM Publisher port 4503?
  3. Try to increase the Retry Delay and check if that works

Useful link: https://www.cqtutorial.com/courses/cq-admin/cq-admin-lessons/configure-cq-replication/cq-configure-m...

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

Avatar

Level 2

Hello Kiran,

 

Yes publisher is up and running on port 4503 and able to open publisher on http://localhost:4503.

I did try increasing the retry delay but no luck...

 

 

Avatar

Level 2

Issue is fixed. I used container IP of publisher instead of localhost and it worked

Avatar

Community Advisor

Hi @saiwd 

 

Glad tha you have resolved it, but the log that you have shared in the query shows localhost only.

 

Thanks,

Kiran Vedantam.