Menu

AEM replication exception

Issue

When we see the below error in AEM replication queue while publishing content in AEM, that means the user doesn't have enough permission to replicate the content or the publishing user that is configured in the AEM replication queue is not the correct user for replication.

error: com.day.cq.replication.ReplicationException: Repository error during node import: OakConstraint0027: The admin user cannot be removed.

Resolution


Check the ACL for that user on the publisher instance and ensure that the user has the permission to create, delete, and modify nodes. 

ssh_dispatch_run_fatal: Connection to server x.x.x.x port 22: message authentication code incorrect

When we are doing the ssh to a server using ssh command, then sometimes on windows we got this error that doesn't allow us to connect with the servers. 

command: ssh userjorvee@10.10.10.10

 ssh_dispatch_run_fatal: Connection to server xx.xx.xx.xx port 22: message authentication code incorrect


To fix the above issue you can run the ssh with these parameters.

ssh -m hmac-sha2-256 userjorvee@10.10.10.10


Workaround:

1. https://www.nrel.gov/hpc/announcements/posts/windows-ssh-workaround.html

How to run unit test for a specific file using mvn command?

For a single class

 mvn clean test -Dtest=ClassNameTest

For a specific method within a class

 mvn clean test -Dtest=ClassNameTest#MethodName