Could not autodiscover endpoint for user

  • 7023251
  • 08-Aug-2018
  • 28-Aug-2018

Environment

Retain 4.1+

Situation

When trying to archive from an Exchange server, everything is setup and working and then the job gives the following error in the worker:

Could not autodiscover endpoint for user xxxx@domain.com - skipping

The RetainServer log shows this error:

14:38:13, 945[ajp-nio-48009-exec-6] [ERROR] ServerErrorHandlerStrategy: reportError: Exception during discover of SRVURLs :: com.gwava.ews.autodiscover.AutoDiscover.getEWSUrl:114 :: EXCEPTION : javax.na
ming.NameNotFoundException: DNS name not found [response code 3]; remaining name '_autodiscover._tcp.domain.com' javax.naming.NameNotFoundException: DNS name not found [response code 3];
remaining name '_autodiscover._tcp.domain.com'
        at com.sun.jndi.dns.DnsClient.checkResponseCode(DnsClient.java:660)
        at com.sun.jndi.dns.DnsClient.isMatchResponse(DnsClient.java:578)
        at com.sun.jndi.dns.DnsClient.doUdpQuery(DnsClient.java:426)
        at com.sun.jndi.dns.DnsClient.query(DnsClient.java:211)
        at com.sun.jndi.dns.Resolver.query(Resolver.java:81)
        at com.sun.jndi.dns.DnsContext.c_getAttributes(DnsContext.java:434)
        at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getAttributes(ComponentDirContext.java:235)
        at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:141)
        at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getAttributes(PartialCompositeDirContext.java:129)
        at javax.naming.directory.InitialDirContext.getAttributes(InitialDirContext.java:142)
        at com.gwava.address.exchange.impl.GetAutoDiscoverSCP.getSRVURLs(GetAutoDiscoverSCP.java:466)
        at com.gwava.ews.autodiscover.AutoDiscover.getEWSUrl(AutoDiscover.java:108)
        at com.gwava.ews.autodiscover.AutoDiscover.getEWSUrl(AutoDiscover.java:43)
        at com.gwava.ews.archiveimpl.process.ExchangeUser.autodiscoverEndpointURL(ExchangeUser.java:256)
        at com.gwava.ews.archiveimpl.process.ExchangeUser.autodiscoverEndpoint(ExchangeUser.java:357)
        at org.apache.jsp.Util.testExchange_jsp._jspService(testExchange_jsp.java:423)
        at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:70)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:438)
        at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:396)
        at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:340)
        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:292)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at com.gwava.Filters.ResponseFilter.doFilter(ResponseFilter.java:48)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:720)
        at org.apache.catalina.core.ApplicationDispatcher.processRequest(ApplicationDispatcher.java:466)
        at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:391)
        at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:318)
        at com.gwava.Filters.MainFilter.doFilter(MainFilter.java:356)
        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:240)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:207)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:212)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:94)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:141)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:620)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:88)
        at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:509)
        at org.apache.coyote.ajp.AbstractAjpProcessor.process(AbstractAjpProcessor.java:877)
        at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:684)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1524)
        at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.run(NioEndpoint.java:1480)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
        at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
        at java.lang.Thread.run(Thread.java:748)

14:38:13, 965[ajp-nio-48009-exec-6] [DEBUG] AutoDiscover: We have a problem. We could find NO AUTODISCOVER SERVER
14:38:13, 965[ajp-nio-48009-exec-6] [INFO ] AutoDiscover: DEBUG: EXIT AUTODISCOVER
14:38:14, 090[ajp-nio-48009-exec-6] [TRACE] EwsTraceListener: <Trace Tag="AutodiscoverConfiguration" Tid="180" Time="2018-08-07 20:38:14Z">
Determining which endpoints are enabled for host domain.com
</Trace>

14:38:14, 124[ajp-nio-48009-exec-6] [TRACE] EwsTraceListener: <Trace Tag="AutodiscoverConfiguration" Tid="180" Time="2018-08-07 20:38:14Z">
No Autodiscover endpoints are available for host domain.com

Resolution

When you are setting up the Retain Server, you need to make sure the server itself is on the same DNS has the Exchange server.  If it's going across difference DNS servers to reach the Exchange server, those errors will result.  Update the Retain Server's network settings to have the primary DNS server to be on the same DNS as the Exchange server and it will resolve these errors.

Feedback service temporarily unavailable. For content questions or problems, please contact Support.