-
Notifications
You must be signed in to change notification settings - Fork 299
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Running EF core migration bundles on linux with Active Directory Default as connection string. #1565
Comments
Transferred to SqlClient as this doesn't have anything to do with EF Core per se. Looking at the error message, you may want to make sure D-Bus is running. |
@roji I am unsure if that move makes sense, as there is no problem with SQL Client. I'm afraid it might die out here. I don't have control over whether or not "D-bus" is running. It is the azure hosted build agent that wouldn't have it enabled. My problem is with EF migration bundles generating a bundle that does not work when run on Azure DevOps hosted agents. So if it needs to be moved I guess it could be moved to some azure-pipelines github... |
It's true that this isn't necessarily a SqlClient issue either - but it's definitely not an EF one either. At the end of the day it's probably more or "how do I set up D-Bus on the Azure Ubuntu image". Someone from the SqlClient team may have had experience with this, otherwise a stackoverflow question may be more appropriate. |
@MichielCornilleKenze I will try to test M.D.S on ubuntu-latest. Meanwhile can you try other ubuntu version except latest or try to launch D-bus. Here is relevant discussion on ubuntu forum https://askubuntu.com/questions/135573/gconf-error-no-d-bus-daemon-running-how-to-reinstall-or-fix. |
I currently worked around this by using "Active Directory Default" , a windows-latest hosted agent, Azure CLI task and letting DefaultAzureCredential use AzureCLI Authentication. |
I don't know a lot about Azure pipelines, but I ran into the same issue when executing Steps to reproduce:
Results in the same issue:
My solution was to set the environment variables for Azure.Identity: https://docs.microsoft.com/en-us/dotnet/api/azure.identity.environmentcredential?view=azure-dotnet I'm using an App Registration to deploy, so I executed the following commands:
and it worked. 👍 I initially thought I can use Hope this helps somebody. |
Is there any progress on this? |
Hi not sure if this one is alive but I'm getting the same error on my Mac after build ing a bundle with Microsoft.Data.SqlClient.SqlException (0x80131904): The operation was canceled. |
@nilshjalmarson increase the command and connect timeouts |
Executing migration bundle built using Azure Pipelines
Does not work. I expected the migration to be executed as the Service Connections MSI (which has sql permissions)
Instead I get the error:
Appsettings:
Azure pipelines task to build the bundle
Azure pipelines task to run the ef bundle output:
The error is chinese to me, and I don't have control over what is running on the linux hosted agent.
Is this scenario supported or should we use windows agents if we want the service connections MSI?
Minor update: I read Azure/azure-sdk-for-net#17052 but I have no Idea how to apply this workaround to EF Core.
Update: added stack trace from pipeline logs
The text was updated successfully, but these errors were encountered: