"Error: login failure" when attempting to log into the local Advanced Monitoring Agent application

Last Modified

25 September 2023

Description

  • When attempting to log into the local Advanced Monitoring Agent application the following error occurs:
    • Error: login failure
  • C:\Program Files (x86)\Advanced Monitoring Agent\debug.log shows:
            agentui: (2336): WINHTTP_CALLBACK_STATUS_RESOLVING_NAMEagentui: (2336): WINHTTP_CALLBACK_STATUS_NAME_RESOLVEDagentui: (2336): WINHTTP_CALLBACK_STATUS_CONNECTING_TO_SERVERagentui: (2336): WINHTTP_CALLBACK_STATUS_CONNECTED_TO_SERVERagentui: (2336): WINHTTP_CALLBACK_STATUS_SECURE_FAILUREagentui: (2336): CWinHttpSocket::Request failed:: 0x00002f8f
        

Environment

  • N-sight RMM

Solution

  • The error 0x00002f8f is one provided to us by the WinHTTP library that we use to perform the connection
  • This is a pretty standard method that is used within Windows to perform external connections over HTTPS.
  • When converted to decimal this resolves to 12175 which indicates "ERROR_WINHTTP_SECURE_FAILURE"
    • NOTE: The full list of errors, as well as information on error 12175, can be found here
  • What is happening here is the device is failing to connect to our upload servers over HTTPS
  • If this is a Server 2008 device, it may be required that you have TLS 1.0 enabled as WinHTTP on these devices do not support later versions of TLS.