This error is observed on the browser when you try to access the Admin Console of AirWatch, when leveraging an On Premise Instance of AirWatch.
The exact error that would be displayed in the browser is as below.
HTTP Error 503: The service is unavailable
The error in the Verbosed Web Console logs is as below.
016/06/25 16:09:11.221 DS 00000000-0000-0000-0000-000000000000 [0000000-0000000] (18) Error LoginPortableArea.Controllers.LoginController *** EXCEPTION ***
System.Data.SqlClient.SqlException: A network-related or instance-specific error occurred while establishing a connection to SQL Server. The server was not found or was not accessible. Verify that the instance name is correct and that SQL Server is configured to allow remote connections. (provider: Named Pipes Provider, error: 40 - Could not open a connection to SQL Server)
at System.Data.SqlClient.SqlInternalConnection.OnError(SqlException exception, Boolean breakConnection, Action`1 wrapCloseInAction)
at System.Data.SqlClient.TdsParser.ThrowExceptionAndWarning(TdsParserStateObject stateObj, Boolean callerHasConnectionLock, Boolean asyncClose)
at System.Data.SqlClient.TdsParser.Connect(ServerInfo serverInfo, SqlInternalConnectionTds connHandler, Boolean ignoreSniOpenTimeout, Int64 timerExpire, Boolean encrypt, Boolean trustServerCert, Boolean integratedSecurity, Boolean withFailover)
at System.Data.SqlClient.SqlInternalConnectionTds.AttemptOneLogin(ServerInfo serverInfo, String newPassword, SecureString newSecurePassword, Boolean ignoreSniOpenTimeout, TimeoutTimer timeout, Boolean withFailover)
This error is caused because of many reasons
- The SQL Server where the AirWatch Database is located does not have the SQL Services started.
- The Admin Console Server has IIS stopped. This can be because of the IIS Admin Service being stopped.
- The Admin Console Server has the AirWatch App Pool stopped.
- Ensure that the MS SQL Server service on the database is started.
- Ensure that IIS is started and running on the Admin Console Server.
- Ensure that the AirWatch App Pool is started.
The image below shows the MSSQLServer Service on the server where the AirWatch Database is located.
The image below shows the AirWatch App Pool that needs to be started. This can be found within IIS on the server where the AirWatch Console is installed.
Although you have these in place and still you cannot launch the Admin Console of AirWatch using a browser. Then there could be a different error. It is to be investigated and troubleshot accordingly. To Verbose the Web Console Logs navigate to the Admin Console of AirWatch and enable Verbose Logging for the Admin Console.
The image below shows the setting that can help verbose the logs. To do this, we would need administrator access to the Global Organization Group.