locked
Connectivity Issues for Skype for Business Mobile - Help understanding logs from the Lync Connectivity Analyzer RRS feed

  • Question

  • Hi,
    I'm facing an issue to connect Skype for business mobile from out side my organization.

    I try to use "Microsoft Lync Connectivity Analyzer" to troubleshoot where is the problem.
    And give me the following log but i can't understand where is the problem.
    I can access https://lyncdiscover.domain.com from external but "Microsoft Lync Connectivity Analyzer" give me:
    Server discovery failed for unsecured external channel against http://lyncdiscover.domain.com/

    "Microsoft Lync Connectivity Analyzer" Logs:
    -----------------------------------------------------------------------------------------------------------------------------------------
    [28/11/2016 07:49:11] Cleared the log file
    [28/11/2016 07:49:13] [DEBUG] Logging test parameters:
    [28/11/2016 07:49:13] [DEBUG] SIP Uri: *** Email address is removed for privacy ***
    [28/11/2016 07:49:13] [DEBUG] User Name: *** Email address is removed for privacy ***
    [28/11/2016 07:49:13] [DEBUG] Discovery Type: Automatic Discovery
    [28/11/2016 07:49:13] [DEBUG] Network access: NetworkAccessExternal
    [28/11/2016 07:49:13] [DEBUG] Selected client: ApplicationLyncMobile2013
    [28/11/2016 07:49:13] [SUBHEADING] Starting Lync server autodiscovery
    [28/11/2016 07:49:13] [INFO] Please wait; this test may take several minutes to complete...
    [28/11/2016 07:49:13] [SUBHEADING] Starting automatic discovery for secure (HTTPS) internal channel
    [28/11/2016 07:49:13] [SUMMARY] lyncdiscoverinternal.Domain.com can't be resolved by the DNS server. Skipping internal discovery.
    [28/11/2016 07:49:13] [SUBHEADING] Starting automatic discovery for secure (HTTPS) external channel
    [28/11/2016 07:49:13] [DEBUG] Sending HTTP request to https://lyncdiscover.Domain.com/*** Email address is removed for privacy ***
    [28/11/2016 07:49:14] [DEBUG] Cookie  found in autodiscover response: StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
    {
      Pragma: no-cache
      X-MS-Server-Fqdn: VP-Lync.Domain.local
      X-MS-Correlation-Id: 2147484479
      client-request-id: b45634b3-038f-40c5-89c5-e63b3fb19e23
      X-Content-Type-Options: nosniff
      Cache-Control: no-cache
      Date: Mon, 28 Nov 2016 07:47:11 GMT
      Content-Length: 1165
      Content-Type: application/vnd.microsoft.rtc.autodiscover+xml; v=1
      Expires: -1
    }
    [28/11/2016 07:49:14] [DEBUG] Parsing the response for URL https://lyncdiscover.Domain.com/*** Email address is removed for privacy ***.  Full response: <?xml version="1.0" encoding="utf-8"?><AutodiscoverResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" AccessLocation="External"><Root><Link token="Domain" href="https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/domain?originalDomain=Domain.com" /><Link token="User" href="https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/user?originalDomain=Domain.com" /><Link token="Self" href="https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root?originalDomain=Domain.com" /><Link token="OAuth" href="https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/oauth/user?originalDomain=Domain.com" /><Link token="External/XFrame" href="https://lyncdiscover.Domain.com/Autodiscover/XFrame/XFrame.html" /><Link token="Internal/XFrame" href="https://vp-lync.Domain.local/Autodiscover/XFrame/XFrame.html" /><Link token="XFrame" href="https://lyncdiscover.Domain.com/Autodiscover/XFrame/XFrame.html" /></Root></AutodiscoverResponse>
    [28/11/2016 07:49:14] [DEBUG] Autodiscover URL https://lyncdiscover.Domain.com/*** Email address is removed for privacy *** redirected to https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/user?originalDomain=Domain.com
    [28/11/2016 07:49:14] [DEBUG] Sending HTTP request to https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/*** Email address is removed for privacy ***
    [28/11/2016 07:49:14] [DEBUG] Cookie  found in autodiscover response: StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
    {
      X-MS-WebTicketURL: https://lyncdiscover.Domain.com/WebTicket/WebTicketService.svc
      X-MS-WebTicketSupported: cwt,saml
      Cache-Control: no-cache
      WWW-Authenticate: Bearer trusted_issuers="", client_id="00000004-0000-0ff1-ce00-000000000000"
      WWW-Authenticate: MsRtcOAuth href="https://lyncdiscover.Domain.com/WebTicket/oauthtoken",grant_type="urn:microsoft.rtc:windows,urn:microsoft.rtc:anonmeeting,password"
      X-MS-Server-Fqdn: VP-Lync.Domain.local
      X-MS-Correlation-Id: 2147484480
      client-request-id: 6728f7d6-8982-4a20-b57a-b9d9f7dd59a3
      X-Content-Type-Options: nosniff
      Date: Mon, 28 Nov 2016 07:47:11 GMT
      Content-Length: 1293
      Content-Type: text/html
    }
    [28/11/2016 07:49:14] [DEBUG] Authorization required for https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/*** Email address is removed for privacy ***
    [28/11/2016 07:49:14] [DEBUG] Obtaining WebTicket from https://lyncdiscover.Domain.com/WebTicket/WebTicketService.svc
    [28/11/2016 07:49:14] [DEBUG] StatusCode=Forbidden, Reason=Forbidden
    [28/11/2016 07:49:14] [DEBUG] System.Exception: Exception of type 'System.Exception' was thrown.
       at Microsoft.LyncServer.WebServices.WebTicketManager.WTExceptions(String exText)
       at Microsoft.LyncServer.WebServices.WebTicketManager.<GetMexDocumentAsync>d__0.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<AuthenticationRequired>d__2a.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<SendRequest>d__d.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<TryNextUrl>d__3.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<ParseResponse>d__16.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<TryNextUrl>d__3.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<StartDiscoveryJourney>d__0.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at LyncConnectivityAnalyzerCore.Utilities.<RetrieveUserLocation>d__3e.MoveNext()
    [28/11/2016 07:49:14] [SUMMARY_ERROR] Server discovery failed for secured external channel against https://lyncdiscover.Domain.com/
    [28/11/2016 07:49:14] [SUBHEADING] Starting automatic discovery for unsecure (HTTP) external channel
    [28/11/2016 07:49:14] [DEBUG] Sending HTTP request to http://lyncdiscover.Domain.com/*** Email address is removed for privacy ***
    [28/11/2016 07:49:14] [DEBUG] Cookie  found in autodiscover response: StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
    {
      Pragma: no-cache
      X-MS-Correlation-Id: 2147483810
      client-request-id: e2aa2c61-bc99-41aa-9b12-b94c705ea50b
      X-Content-Type-Options: nosniff
      Cache-Control: no-cache
      Date: Mon, 28 Nov 2016 07:47:11 GMT
      Content-Length: 1165
      Content-Type: application/vnd.microsoft.rtc.autodiscover+xml; v=1
      Expires: -1
    }
    [28/11/2016 07:49:14] [DEBUG] Parsing the response for URL http://lyncdiscover.Domain.com/*** Email address is removed for privacy ***.  Full response: <?xml version="1.0" encoding="utf-8"?><AutodiscoverResponse xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" AccessLocation="External"><Root><Link token="Domain" href="https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/domain?originalDomain=Domain.com" /><Link token="User" href="https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/user?originalDomain=Domain.com" /><Link token="Self" href="https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root?originalDomain=Domain.com" /><Link token="OAuth" href="https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/oauth/user?originalDomain=Domain.com" /><Link token="External/XFrame" href="https://lyncdiscover.Domain.com/Autodiscover/XFrame/XFrame.html" /><Link token="Internal/XFrame" href="https://vp-lync.Domain.local/Autodiscover/XFrame/XFrame.html" /><Link token="XFrame" href="https://lyncdiscover.Domain.com/Autodiscover/XFrame/XFrame.html" /></Root></AutodiscoverResponse>
    [28/11/2016 07:49:14] [DEBUG] Autodiscover URL http://lyncdiscover.Domain.com/*** Email address is removed for privacy *** redirected to https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/user?originalDomain=Domain.com
    [28/11/2016 07:49:14] [DEBUG] Sending HTTP request to https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/*** Email address is removed for privacy ***
    [28/11/2016 07:49:14] [DEBUG] Cookie  found in autodiscover response: StatusCode: 401, ReasonPhrase: 'Unauthorized', Version: 1.1, Content: System.Net.Http.StreamContent, Headers:
    {
      X-MS-WebTicketURL: https://lyncdiscover.Domain.com/WebTicket/WebTicketService.svc
      X-MS-WebTicketSupported: cwt,saml
      Cache-Control: no-cache
      WWW-Authenticate: Bearer trusted_issuers="", client_id="00000004-0000-0ff1-ce00-000000000000"
      WWW-Authenticate: MsRtcOAuth href="https://lyncdiscover.Domain.com/WebTicket/oauthtoken",grant_type="urn:microsoft.rtc:windows,urn:microsoft.rtc:anonmeeting,password"
      X-MS-Server-Fqdn: VP-Lync.Domain.local
      X-MS-Correlation-Id: 2147483765
      client-request-id: 32f5616b-23fe-4dd4-a63b-663d7fa48c5a
      X-Content-Type-Options: nosniff
      Date: Mon, 28 Nov 2016 07:47:11 GMT
      Content-Length: 1293
      Content-Type: text/html
    }
    [28/11/2016 07:49:14] [DEBUG] Authorization required for https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/*** Email address is removed for privacy ***
    [28/11/2016 07:49:14] [DEBUG] Obtaining WebTicket from https://lyncdiscover.Domain.com/WebTicket/WebTicketService.svc
    [28/11/2016 07:49:15] [DEBUG] StatusCode=Forbidden, Reason=Forbidden
    [28/11/2016 07:49:15] [DEBUG] System.Exception: Exception of type 'System.Exception' was thrown.
       at Microsoft.LyncServer.WebServices.WebTicketManager.WTExceptions(String exText)
       at Microsoft.LyncServer.WebServices.WebTicketManager.<GetMexDocumentAsync>d__0.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<AuthenticationRequired>d__2a.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<SendRequest>d__d.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter`1.GetResult()
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<TryNextUrl>d__3.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<ParseResponse>d__16.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<TryNextUrl>d__3.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at Microsoft.LyncServer.WebServices.AutoDiscoverManager.<StartDiscoveryJourney>d__0.MoveNext()
    --- End of stack trace from previous location where exception was thrown ---
       at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
       at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
       at LyncConnectivityAnalyzerCore.Utilities.<RetrieveUserLocation>d__3e.MoveNext()
    [28/11/2016 07:49:15] [SUMMARY_ERROR] Server discovery failed for unsecured external channel against http://lyncdiscover.Domain.com/
    [28/11/2016 07:49:15] [DEBUG] None, AutoInternalDNSFail, AutoInternalSecureD, AutoInternalUnsecureD, AutoExternalSecureD, AutoExternalUnsecureD, ManualDNSFail, ManualSecureD, ManualUnsecureD, AuthBrokerInternalLMXCheckGET, AuthBrokerInternalLMXCheckPOST, AuthBrokerExternalLMXCheckGET, AuthBrokerExternalLMXCheckPOST, MobilityMCXInternalLMXCheckGET, MobilityMCXInternalLMXCheckPOST, MobilityMCXExternalLMXCheckGET, MobilityMCXExternalLMXCheckPOST, LMXSIPServerInternalDNS, LMXSIPServerExternalDNS, MobilityUCWAInternalCheckPOST, MobilityUCWAExternalCheckPOST
    [28/11/2016 07:49:15] [SUMMARY] 
    [28/11/2016 07:49:15] [SUMMARY_ERROR] Automatic discovery of the Lync server failed. Please verify the server requirements at http://go.microsoft.com/fwlink/?LinkId=278998 . Lync mobile apps do not require automatic discovery. You could enter the server FQDN manually and test connectivity again.
    [28/11/2016 07:49:15] [SUMMARY_ERROR] 
    Microsoft Lync Connectivity Analyzer cannot analyze deployment readiness until a discovery test has completed successfully.

    -----------------------------------------------------------------------------------------------------------------------------------------

    Appreciate your help


    • Edited by H. ElMoghazy Thursday, December 1, 2016 10:40 AM
    Thursday, December 1, 2016 10:38 AM

All replies

  • Hi H.ElMoghazy,

    On your reverse proxy are you published http as well as https ? This could be reason for the http error. For http traffic will come into the reverse proxy on port 80 and needs to go from reverse proxy to front end server / Load balancer on port 8080. Publishing http is optional and you can only publish https.

    From the log above i noticed

    [28/11/2016 07:49:14] [DEBUG] Authorization required for https://lyncdiscover.Domain.com/Autodiscover/AutodiscoverService.svc/root/*** Email address is removed for privacy ***
    [28/11/2016 07:49:14] [DEBUG] Obtaining WebTicket from https://lyncdiscover.Domain.com/WebTicket/WebTicketService.svc
    [28/11/2016 07:49:15] [DEBUG] StatusCode=Forbidden, Reason=Forbidden

    Could you also try the remote connectivity analsyer from Microsoft and let us know the results. This will highlight any certificate issues.

    https://testconnectivity.microsoft.com/

    Thanks,

    Martin


    Please remember, if you see a post that helped you please click &quot;Vote As Helpful&quot; and if it answered your question please click &quot;Mark As Answer&quot;. Thank you. This forum post is based upon my personal experience and does not reflect the opinion or view of my employer.

    Thursday, December 1, 2016 12:30 PM
  • Hi H. ElMoghazy

    Welcome to post in our forum.

    Would you please tell us did the issue only appeared on the specific mobile phone?
    If the issue only appeared on the specific mobile phone, please try to install the SFB client with the latest update and make sure your mobile system is the latest.

    According to your log, there is an error message: Automatic discovery of the Lync server failed.
    So please check if you have set the correct autodiscover record for your Lync server, this record is required for Lync mobile client login, you need to publish the Autodiscover Service on port 80 or on port 443.

    The following is autodiscover service requirements for Lync Server 2013 (It’s same to SFB server 2015), please refer to
    https://technet.microsoft.com/en-us/library/hh690012(v=ocs.15).aspx

    What product did you use for reverse proxy? Please check the configuration of the reverse proxy.

    Make sure you have added the following SANs entries on the public certificate (if you use SAN certificate) such as:
    lyncdiscover.sipdomain.com
    extweb.sip.domain.com (extweb is the external web Service FQDN in topology)
    dialin.sipdomain.com
    meet.sipdomain.com

    Here is a document about how to troubleshooting Lync mobility, please refer to
    https://blogs.technet.microsoft.com/nexthop/2012/02/21/troubleshooting-external-lync-mobility-connectivity-issues-step-by-step/

    Hope this reply helpful to you.


    Regards,

    Alice Wang


    Please remember to mark the replies as answers if they help.
    If you have feedback for TechNet Subscriber Support, contact tnmff@microsoft.com.

    Friday, December 2, 2016 2:58 AM