AEM Author to Publisher connectivity issues || Docker | Community
Skip to main content
Level 2
November 11, 2021
Solved

AEM Author to Publisher connectivity issues || Docker

  • November 11, 2021
  • 1 reply
  • 2147 views

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)

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Kiran_Vedantam

Hi @saik123 

 

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-multiple-replication-agent

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

1 reply

Kiran_Vedantam
Community Advisor
Kiran_VedantamCommunity AdvisorAccepted solution
Community Advisor
November 11, 2021

Hi @saik123 

 

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-multiple-replication-agent

 

Hope this helps.

 

Thanks,

Kiran Vedantam.

Saik123Author
Level 2
November 11, 2021

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...

 

 

Saik123Author
Level 2
November 11, 2021

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