Troubleshoot AEM 6.5 LTS Replication
This skill provides systematic troubleshooting guidance for Adobe Experience Manager 6.5 LTS replication issues. Use this to diagnose and resolve problems with content distribution, agent configuration, and replication workflows.
When to Use This Skill
Use this skill when experiencing:
- Replication queues blocked or stuck
- Content not appearing on Publish instances
- Replication agent showing red/error status
- "Replication triggered, but no agent found" errors
- Timeout errors during replication
- Authentication failures (401 Unauthorized)
- Connection refused errors
- Slow or delayed replication
- Dispatcher cache not invalidating
- Reverse replication failures
- Missing or incorrect replication status
Prerequisites
- AEM 6.5 LTS Author and Publish instances
- Administrator access to AEM environments
- Access to replication agent configuration
- Access to log files (error.log, replication.log)
- Understanding of your replication topology
Diagnostic Workflow
Follow this systematic approach to identify and resolve replication issues:
Common Issues and Solutions
Issue 1: Replication Queue Blocked
Symptoms:
- Red status indicator on replication agent
- Queue shows items waiting
- First item in queue failed
- Subsequent items cannot process (FIFO blocking)
Diagnosis:
-
Check agent status:
-
View queue details:
Root Causes:
- Network connectivity lost to Publish instance
- Publish instance down or unavailable
- Authentication credentials expired or incorrect
- Insufficient permissions on target content
- Disk space full on Publish
- Large package timeout
- SSL/TLS certificate issues
Solutions:
Solution A: Retry Failed Item
Solution B: Clear Failed Item
Solution C: Restart Replication Components
Solution D: Restart Event Processing
Issue 2: Connection Refused
Symptoms:
- Error: "Connection refused"
- Test connection fails
- Replication queue blocked with connectivity errors
Diagnosis:
-
Verify Publish instance is running:
-
Test network connectivity:
-
Check replication agent URI:
Root Causes:
- Publish instance not running
- Firewall blocking connection
- Incorrect hostname or port in agent configuration
- Network routing issues
- DNS resolution failures
Solutions:
Solution A: Start Publish Instance
Solution B: Fix Network/Firewall
Solution C: Correct Agent URI
Issue 3: 401 Unauthorized
Symptoms:
- Error: "401 Unauthorized"
- Authentication failures in logs
- Test connection fails with credential error
Diagnosis:
-
Check agent credentials:
-
Verify user exists on Publish:
-
Check user permissions:
Root Causes:
- Incorrect username or password
- User doesn't exist on target instance
- User password changed
- User disabled or locked
- Insufficient permissions
Solutions:
Solution A: Update Credentials
Solution B: Create/Enable User on Publish
Solution C: Reset Password
Issue 4: SSL/TLS Certificate Errors
Symptoms:
- SSL handshake failed
- Certificate validation errors
- HTTPS connection failures
Diagnosis:
-
Check agent URI protocol:
-
Review error logs:
Solutions:
Solution A: Enable Relaxed SSL (Development Only)
Solution B: Import Certificates (Production)
Solution C: Use HTTP (Not Recommended for Production)
Issue 5: Content Not Appearing on Publish
Symptoms:
- Replication succeeds (green status)
- Queue processes successfully
- Content still doesn't appear on Publish
- Old content served
Diagnosis:
-
Check content directly on Publish:
-
Verify replication status:
-
Check Publish logs:
Root Causes:
- Dispatcher cache not invalidated
- Dispatcher Flush agent disabled
- Content permissions on Publish
- Sling mapping issues
- Incorrect Publish run mode configuration
Solutions:
Solution A: Manual Dispatcher Cache Clear
Solution B: Verify Dispatcher Flush Agent
Solution C: Check Content Permissions on Publish
Solution D: Force Republish
Issue 6: Dispatcher Cache Not Invalidating
Symptoms:
- Content published successfully
- Old content served via Dispatcher
- Direct Publish access shows new content
- Dispatcher cache files not deleted
Diagnosis:
-
Check Dispatcher Flush agent:
-
Review Dispatcher configuration:
-
Check Dispatcher logs:
Solutions:
Solution A: Enable Dispatcher Flush Agent
Solution B: Fix Dispatcher Configuration
Solution C: Verify Flush Agent Transport
Issue 7: Timeout Errors
Symptoms:
- Replication timeout errors
- Large packages fail
- Synchronous replication hangs
Diagnosis:
-
Check agent timeouts:
-
Review package size:
Solutions:
Solution A: Increase Timeouts
Solution B: Use Asynchronous Replication
Solution C: Split Large Packages
Issue 8: Replication Triggered But No Agent Found
Symptoms:
- Error: "Replication triggered, but no agent found"
- Content doesn't replicate
- Logs show agent selection failure
Diagnosis:
-
Check enabled agents:
-
Review agent triggers:
Root Causes:
- All replication agents disabled
- All agents have "Ignore default" checked
- Agent filter excludes all agents
- Custom replication action with invalid agent ID
Solutions:
Solution A: Enable Default Agent
Solution B: Check Agent Filters (Programmatic)
Solution C: Verify Agent Configuration
Issue 9: Replication Not Triggering (Blocked Servlet)
Symptoms:
- Activation button works but nothing happens
- No errors shown but content doesn't replicate
- Replication queues don't populate
Diagnosis:
From official AEM 6.5 LTS documentation: Check for blocking nodes in repository.
- Check for blocking nodes:
Root Cause:
Custom nodes created at /bin/replicate or /bin/replicate.json can override the default replication servlet, preventing normal replication operations.
Solution:
Verification:
Issue 10: Namespace Replication Blocked
Symptoms:
- Error: "Namespace replication failed"
- Permission denied on namespace operations
- Custom namespace content won't replicate
Diagnosis:
From official AEM 6.5 LTS documentation: Replication user lacks namespace management privileges.
- Check user permissions:
Root Cause:
The replication user (configured in agent's "Agent User Id") doesn't have jcr:namespaceManagement privilege, which is required to replicate custom namespaces.
Solution:
Grant via CRX/DE:
Issue 11: Stuck Replication Jobs in Event Queue
Symptoms:
- Multiple agents blocked
- Repository appears to have replication issues
/var/replication/datahas many items
Diagnosis:
From official AEM 6.5 LTS documentation: Check for corrupted replication jobs.
-
Check event queue:
-
Check replication data:
Root Cause: Repository corruption or serialization errors can cause replication jobs to get stuck in the Sling event queue.
Solution A: Clean Event Jobs
Solution B: Clear Replication Data
Solution C: Enable Detailed Logging
From official documentation - configure detailed replication logging:
Issue 12: Queue Pause Limitations
Symptoms:
- Paused queue resumes automatically
- Pause state lost after restart
Diagnosis:
From official AEM 6.5 LTS documentation: Queue pause has known limitations.
Known Limitations:
-
Not persisted across restarts
- Pause state is in-memory only
- AEM restart resumes all paused queues
-
Auto-resume timeout
- Idle paused queues automatically resume after ~1 hour
- Not configurable
Workaround:
Instead of pausing, disable the agent:
For temporary pause:
Advanced Troubleshooting
Analyze Replication Logs
Location: crx-quickstart/logs/replication.log
Key patterns to search:
Example log analysis:
Monitor via JMX Console
Check OSGi Configuration
Examine Event Queue
Preventive Measures
1. Regular Agent Testing
Schedule periodic tests:
2. Monitoring and Alerts
Set up monitoring for:
- Replication queue depth > 100
- Agent blocked > 5 minutes
- Replication failures > 10 per hour
- Disk space < 10% free
- High replication lag (>5 minutes)
3. Maintenance Tasks
Regular maintenance:
4. Best Practices
- Use dedicated service accounts for replication (not admin)
- Implement monitoring for queue depth and errors
- Test agent connectivity after configuration changes
- Document custom agents and their purpose
- Schedule large activations during off-peak hours
- Keep Publish instances in sync with same configuration
- Regular log review to catch issues early
- Maintain runbooks for common issues
Diagnostic Checklist
Use this checklist for systematic troubleshooting:
Escalation Path
If issue persists after troubleshooting:
-
Gather diagnostic information:
- Exact error messages
- Replication.log excerpts
- Agent configuration screenshots
- Steps to reproduce
- Environment details (AEM version, OS, Java version)
-
Check Adobe Experience League Community:
- Search for similar issues
- Post detailed question with diagnostics
-
Adobe Support (if entitled):
- Open support ticket
- Provide thread dumps if hanging
- Share log bundles
- Include replication queue screenshots
Related Skills
configure-replication-agent: Set up and configure agents properlyreplicate-content: Understand replication methodsreplication-api: Programmatic replication for custom code
Success Criteria
- ✓ Replication agents showing green status (idle/active)
- ✓ Replication queues empty or processing normally
- ✓ Test Connection succeeds for all agents
- ✓ Content appears on Publish after activation
- ✓ Dispatcher cache invalidates properly
- ✓ No errors in replication.log or error.log
- ✓ Replication status shows "Published" on Author
- ✓ Performance is acceptable (activation <2 minutes)
- ✓ Root cause identified and documented
- ✓ Preventive measures implemented
Additional Resources
- Official AEM 6.5 LTS Replication Documentation
- AEM 6.5 LTS Replication Troubleshooting Guide
- AEM 6.5 LTS Documentation Hub
- Replication API JavaDoc (Package Summary)
- AEM Replication Cookbook (Community)
- Adobe Experience League Community Forums
- AEM Operations Dashboard documentation


