Welcome to the Inedo Forums! Check out the Forums Guide for help getting started.
If you are experiencing any issues with the forum software, please visit the Contact Form on our website and let us know!
Error logs with SQL connection
-
Hello,
We get some errors in logs. Our configuration is in docker compse with connection string.An error occurred in the web application: 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: TCP Provider, error: 26 - Error Locating Server/Instance Specified) URL: xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Referrer: (not set) User: (unknown) User Agent: NuGet VS VSIX/6.11.1 (Microsoft Windows NT 10.0.26100.0, Professional/17.0) Stack trace: at Microsoft.Data.ProviderBase.DbConnectionPool.TryGetConnection(DbConnection owningObject, UInt32 waitForMultipleObjectsTimeout, Boolean allowCreate, Boolean onlyOneCheckConnection, DbConnectionOptions userOptions, DbConnectionInternal& connection) at Microsoft.Data.ProviderBase.DbConnectionFactory.TryGetConnection(DbConnection owningConnection, TaskCompletionSource`1 retry, DbConnectionOptions userOptions, DbConnectionInternal oldConnection, DbConnectionInternal& connection) at Microsoft.Data.ProviderBase.DbConnectionInternal.TryOpenConnectionInternal(DbConnection outerConnection, DbConnectionFactory connectionFactory, TaskCompletionSource`1 retry, DbConnectionOptions userOptions) at Microsoft.Data.SqlClient.SqlConnection.Open(SqlConnectionOverrides overrides) at Inedo.Data.SqlServerDatabaseContext.CreateConnection() at Inedo.Data.DatabaseContext.ExecuteInternal(String storedProcName, GenericDbParameter[] parameters, DatabaseCommandReturnType returnType) at Inedo.Data.SqlServerDatabaseContext.ExecuteInternal(String storedProcName, GenericDbParameter[] parameters, DatabaseCommandReturnType returnType) at Inedo.Data.StrongDataReader.Read[TRow](Func`1 getReader, Boolean disposeReader)+MoveNext() at System.Linq.Enumerable.TryGetFirst[TSource](IEnumerable`1 source, Boolean& found) at Inedo.ProGet.Feeds.Feed.GetFeed(String feedName, Context externalDbContext) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E509022\Src\ProGetCoreEx\Feeds\Feed.cs:line 245 at Inedo.ProGet.WebApplication.FeedEndpoints.FeedEndpointHandler.GetHttpHandler(GetHandlerParams args) in C:\Users\builds\AppData\Local\Temp\InedoAgent\BuildMaster\192.168.44.60\Temp\_E509022\Src\ProGet.WebApplication\FeedEndpoints\FeedEndpointHandler.cs:line 104 at Inedo.Web.Handlers.DynamicHttpHandling.GetHandler(AhHttpContext context, String requestType, String url, String pathTranslated) at Inedo.Web.AhWebMiddleware.InvokeAsync(HttpContext context) ::Web Error on 01/15/2025 09:11:24::
We using only ProGet I don't now we in logs are visible other tools like BuildMaster.
-
Hi @serveradmin_0226 ,
This is a network-related error and basically means that your ProGet container cannot talk to the SqlServer container. There are no other causes of this error.
If this error is sporadic, then it's likely related to the SqlContainer restarting or some other problem with the networking stack on the server. You'd need to investigate the timing of these errors with other things happening on the host server.
If it's always happening, then it's likely due to your container's network configuration (often it's a typo, like
inedosql
andinedo-sql
or something in your configuration) or the SqlServer container could just not be running.As for the logs, that's just a stack trace showing us where the error occurred, and specifically the code file name/line number. Those paths refer to the build server (i.e. BuildMaster) that ProGet was compiled on.
-
@atripp Thank you for this answer. But we check connection string and it's ok and correct. We can connect with SQLServer.
But why in logs is BuildMaster, we only use one solution ProGet. So maybe someting is wrong with confirguration in ProGet's file?
-
Hi @monika-sadlok_5031 ,
I hate copy/pasting what I wrote earlier, but I feel that I've already answered these questions.
The only way this error is possible if there is no network connection between the application container and the SqlServer Container. There are no other scenarios in which this error will occur.
If it's always happening, then it's likely due to your container's network configuration (often it's a typo, like inedosql and inedo-sql or something in your configuration)
Please ignore "BuildMaster"...
, that's just a stack trace showing us where the error occurred, and specifically the code file name/line number. Those paths refer to the build server (i.e. BuildMaster) that ProGet was compiled on.
Ultimately there is something wrong with your Docker configuration. Docker is not esy to troubleshoot/maintain, so I would consider moving to Windows if you are new/uncomfortable troubleshooting.
Cheers,
Alana
-
I don't agree with you. Sorry.
Configuration is very simple and we are 100% sure that everything is ok with connection string. It was tested.
So ok, we will buy a payment version and we will send a request to support.
Thanks for help.