2016-11-01 2 views
0

AEM 작성자 및 Mongo 복제 세트를 설치 한 후 제대로 작동하는 것 같습니다. 설치된 AEM 버전은 6.2AEM 6.2 Mongo 복제본 자동 페일 오버 세트가 작동하지 않음

입니다. 따라서 다음과 같은 방법으로 자동 장애 조치 기능을 확인하려고했습니다. 이차 rs.status() 몽고 명령 3을 실행하여 주되고 로그를

몽고 복제 세트가 보였다 AEM-저자 /하는 error.log 있는지 여부를 확인 현재 주 2.이 1. 정지 mongod 인스턴스 정확하게 장애 조치. 그러나 AEM 작성자가 다음 오류를 표시하면서 손상되었습니다.

/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error__5.log:01.11.2016 12:36:06.386 *ERROR* [pool-44-thread-1] org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl cannot unregister ServiceUserMapped Mapping [serviceName=com.adobe.cq.social.cq-social-messaging, subServiceName=utility-reader, userName=communities-utility-reader] 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error__5.log:01.11.2016 12:36:06.386 *ERROR* [pool-44-thread-1] org.apache.sling.serviceusermapping.impl.ServiceUserMapperImpl cannot unregister ServiceUserMapped Mapping [serviceName=com.adobe.cq.social.cq-social-messaging, subServiceName=acl-manager, userName=communities-acl-manager] 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error__5.log:01.11.2016 12:36:06.964 *ERROR* [FelixDispatchQueue] org.apache.felix.http.jetty FrameworkEvent ERROR (org.osgi.framework.BundleException: Activator stop error in bundle org.apache.felix.http.jetty [36].) 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error_6.log:01.11.2016 13:27:59.516 *ERROR* [DocumentDiscoveryLiteService-BackgroundWorker-[2]] org.apache.jackrabbit.oak.plugins.document.DocumentDiscoveryLiteService doRun: got an exception: com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting for a server that matches {serverSelectors=[ReadPreferenceServerSelector{readPreference=primary}, LatencyMinimizingServerSelector{acceptableLatencyDifference=15 ms}]}. Client view of cluster state is {type=ReplicaSet, servers=[{address=172.18.8.248:27017, type=ReplicaSetArbiter, averageLatency=1.0 ms, state=Connected}, {address=SERVW0014:27017, type=Unknown, state=Connecting, exception={com.mongodb.MongoException$Network: Exception opening the socket}, caused by {java.net.SocketException: Connection reset}}, {address=SERVW0015:27017, type=ReplicaSetSecondary, averageLatency=1.3 ms, state=Connected}] 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error_6.log:01.11.2016 13:29:46.343 *ERROR* [DocumentNodeStore background read thread (2)] org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore. (leaseEndTime: 1477974601170, leaseTime: 120000, leaseFailureMargin: 20000, lease check end time (leaseEndTime-leaseFailureMargin): 1477974581170, now: 1477974585328, remaining: -4158) Need to stop oak-core/DocumentNodeStoreService. 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error_6.log:01.11.2016 13:29:46.343 *ERROR* [LeaseFailureHandler-Thread] org.apache.jackrabbit.oak.plugins.document.DocumentNodeStoreService handleLeaseFailure: stopping oak-core... 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error_6.log:01.11.2016 13:29:46.422 *ERROR* [LeaseFailureHandler-Thread] org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore. 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error_6.log:01.11.2016 13:29:46.422 *ERROR* [LeaseFailureHandler-Thread] org.apache.sling.discovery.oak [org.apache.sling.discovery.oak.OakDiscoveryService(256)] The updatedPropertyProvider method has thrown an exception (com.google.common.util.concurrent.ExecutionError: java.lang.AssertionError: This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore.) 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error_6.log:01.11.2016 13:29:46.453 *ERROR* [LeaseFailureHandler-Thread] org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore. 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error_6.log:01.11.2016 13:29:46.453 *ERROR* [LeaseFailureHandler-Thread] com.adobe.cq.social.cq-social-scf-impl [com.adobe.cq.social.scf.impl.SocialComponentFactoryManagerImpl(2527)] The unbindFactories method has thrown an exception (com.google.common.util.concurrent.ExecutionError: java.lang.AssertionError: This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore.) 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error_6.log:01.11.2016 13:29:46.500 *ERROR* [LeaseFailureHandler-Thread] org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore. 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error_6.log:01.11.2016 13:29:46.500 *ERROR* [LeaseFailureHandler-Thread] com.adobe.cq.dtm.impl.DTMJobsInitializer Could not obtain a resource resolver. 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error_6.log:01.11.2016 13:29:46.625 *ERROR* [LeaseFailureHandler-Thread] org.apache.jackrabbit.oak.plugins.document.ClusterNodeInfo This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore. 
/home/vagrant/mounts/author1/aem/22_crx-quickstart/logs/error_6.log:01.11.2016 13:29:46.625 *ERROR* [LeaseFailureHandler-Thread] org.apache.sling.discovery.oak [org.apache.sling.discovery.oak.OakDiscoveryService(256)] The updatedPropertyProvider method has thrown an exception (com.google.common.util.concurrent.ExecutionError: java.lang.AssertionError: This oak instance failed to update the lease in time and can therefore no longer access this DocumentNodeStore.) 

어도비 포럼에 따라 문제를 풀려고했지만 문제를 해결할 수 없었습니다.

http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manager.topic.html/forum__r93i-hi_friends_icam.html

사람이 문제의 원인 왜 나를 도와 나를이 문제를 해결하는 방법을 알려 수 있습니까?

감사

답변

0
문제가 문제가 있기 때문에 당신이, 당신의 질문에 MongoDB를위한 태그를 추가하는 것이 좋습니다 것입니다 .. (소요 시간에 적어도) 새 기본 MongoDB의 인스턴스에 연결할 수 있다는 것입니다

mongodb와 관련되어 있으며 jackrabbit-oak보다 mongodb를 더 많이 아는 사용자가 있습니다. 질문 : Jackrabbit 오크 인스턴스를 실행중인 시스템에서 새 기본 노드로 핑 (ping) 할 수 있습니까? 복제본 세트가 새 기본 노드를 선택해야하는 기간은 얼마나됩니까? 이 값이 10 초보다 길면 mongo db 구성 설정을 변경해야합니다. rs.status()의 결과를 게시 할 수 있습니까?

+0

안녕하세요. 의견 및 제안에 감사드립니다. 본인이 직접이 문제를 해결했습니다. 코멘트의 한계 카와 체로서 새로운 답으로서 문제를 해결하는 길을 게시하고 있습니다. 새로운 답변을 확인하십시오! –

0

의견 및 제안에 감사드립니다.

본인이 직접이 문제를 해결했습니다. 내가 접근 한 방식이 맞을 수도 있습니다.

이 문제는 WriteConcern 매개 변수가 AEM의 MongoDBDriver에 적용됩니다. mongi.uri를 다음과 같이 변경 했으므로이 문제가 해결되었습니다.

-Doak.mongo.uri=mongodb://PrimaryHost:27017,SecondoryHost:27017/?replicaSet=rs0&readPreference=nearest 
↓ 
-Doak.mongo.uri=mongodb://PrimaryHost:27017,SecondoryHost:27017/?replicaSet=rs0&readPreference=nearest&w=1&j=1 

내 복제 세트에 관한 게시물을 잊어 버렸습니다. 복제 세트는 1 차, 2 차 및 중재자로 구성됩니다. 내가 oak.jackrabit API를 선택하면

는 MongoDiver의 기본 WriteConcern은 "대부분"입니다 https://jackrabbit.apache.org/oak/docs/apidocs/org/apache/jackrabbit/oak/plugins/document/util/MongoConnection.html#getDefaultWriteConcern(com.mongodb.DB)

때 복제 세트 (아비터를 제외) AEM은 쓰기 작업의 beacuse 쓰기 작업을 인정하지 수, 다운의 한 멤버 대부분의 회원에게 전파 할 수 없습니다.

WriteConcern을 w = 1로 변경하면 쓰기 작업이 인식되고 AEM이 여전히 잘 작동합니다.

어떻게 이런 식으로 생각하십니까? 어떤 염려가 있니?

관련 문제