title | description | author | ms.author | ms.date | ms.topic |
---|---|---|---|---|---|
Troubleshoot deployment |
Describes how to troubleshoot SQL Server enabled by Azure Arc deployment. |
MikeRayMSFT |
mikeray |
02/01/2023 |
troubleshooting-general |
[!INCLUDE sqlserver]
Before you start, note the logs locations.
[!INCLUDE extension-logs]
The deployer logs are deployed at:
C:\ProgramData\GuestConfig\extension_logs\Microsoft.AzureData.WindowsAgent.SqlServer\<extension version>\deployer.log
Replace <extension version>
with your extension version. For example:
C:\ProgramData\GuestConfig\extension_logs\Microsoft.AzureData.WindowsAgent.SqlServer\1.1.0.0\deployer.log
The failure to create the Arc-enabled SQL Server resource could be caused by several issues.
Go to the connected server and check the deployer log. You should see the below messages.
[YY/MM/DDDD HH:MM:SS UTC] [INFO] Status of service 'SqlServerExtension' before attempting start: Stopped
[YY/MM/DDDD HH:MM:SS UTC] [INFO] Status of service 'SqlServerExtension' after attempting start: Stopped
If you can't see it, the extension didn't install properly. Try the following steps.
-
Check event logs to see if anything preventing installation. Try installing SqlServerExtension.msi from the following folder
C:\Packages\Plugins\Microsoft.AzureData.WindowsAgent.SqlServer{version}
. The installation UI may provide the error details. -
Close services app, server manager and retry one of the connection methods to install the extension, and see if that helps.
Check the log files for any application errors.
Check the extension log for the following record:
[YY/MM/DDDD HH:MM:SS PM UTC] [ERROR] [UploadServiceProvider] [ExtensionHandlerStatusQueryError] ArcSqlInstancesRequest request is null, not sending data to RP.
This means the machine is no longer recognized as a connected server. Onboard the server to Azure Arc and retry one of the connection methods to install the extension.
Check the extension log for the following record:
[INFO] [UploadServiceProvider] [ExtensionHandlerArcUploadServicesNotifications] [AzureUpload] Arc post request failed with error: Forbidden message: {"ErrorDescription":{"ErrorCode":6,"Message":"The user has no access to the provided Azure resource."},"ResponseUrl":null}
Make sure the machine's managed identity has been assigned the Azure Connected SQL Server Onboarding role. See When machine already connected to Arc-enabled Server role assignment instructions.
Check the extension log for the following record:
[YY/MM/DDDD HH:MM:SS PM UTC] [INFO] [UploadServiceProvider] [ExtensionHandlerArcUploadServicesNotifications] [AzureUpload] Arc for Sql Server upload response status: InternalServerError.`
Make sure to migrate the Arc-enabled SQL Server resource to Microsoft.AzureArcData
.