Skip to content
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

SQLServerException Connection refused #3215

Closed
rwinch opened this issue Sep 26, 2024 · 0 comments
Closed

SQLServerException Connection refused #3215

rwinch opened this issue Sep 26, 2024 · 0 comments
Assignees
Labels
type: bug A general bug
Milestone

Comments

@rwinch
Copy link
Member

rwinch commented Sep 26, 2024

Running Spring Session build on GitHub Actions causes the following failure:

com.microsoft.sqlserver.jdbc.SQLServerException: The TCP/IP connection to the host localhost, port 32847 has failed. Error: "Connection refused. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.".	
at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDriverError(SQLServerException.java:237)	
at com.microsoft.sqlserver.jdbc.SQLServerException.ConvertConnectExceptionToSQLServerException(SQLServerException.java:288)	
at com.microsoft.sqlserver.jdbc.SocketFinder.findSocket(IOBuffer.java:2517)	
at com.microsoft.sqlserver.jdbc.TDSChannel.open(IOBuffer.java:778)	
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectHelper(SQLServerConnection.java:3300)	
at com.microsoft.sqlserver.jdbc.SQLServerConnection.login(SQLServerConnection.java:2950)	
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connectInternal(SQLServerConnection.java:2790)	
at com.microsoft.sqlserver.jdbc.SQLServerConnection.connect(SQLServerConnection.java:1663)	
at com.microsoft.sqlserver.jdbc.SQLServerDriver.connect(SQLServerDriver.java:1064)	
at org.testcontainers.containers.JdbcDatabaseContainer.createConnection(JdbcDatabaseContainer.java:254)	
at org.testcontainers.containers.JdbcDatabaseContainer.createConnection(JdbcDatabaseContainer.java:219)	
at org.testcontainers.containers.JdbcDatabaseContainer.waitUntilContainerStarted(JdbcDatabaseContainer.java:159)	
at org.testcontainers.containers.GenericContainer.tryStart(GenericContainer.java:500)	
at org.testcontainers.containers.GenericContainer.lambda$doStart$0(GenericContainer.java:354)	
at org.rnorth.ducttape.unreliables.Unreliables.retryUntilSuccess(Unreliables.java:81)	
at org.testcontainers.containers.GenericContainer.doStart(GenericContainer.java:344)	
at org.testcontainers.containers.GenericContainer.start(GenericContainer.java:330)	
at org.springframework.session.jdbc.SqlServerJdbcIndexedSessionRepositoryITests$Config.databaseContainer(SqlServerJdbcIndexedSessionRepositoryITests.java:48)

This is caused by changes to some changes in GHA Thanks to @eddumelendez for the pointer on this!

@rwinch rwinch added type: bug A general bug status: waiting-for-triage An issue we've not yet triaged labels Sep 26, 2024
@rwinch rwinch added this to the 3.2.x milestone Sep 26, 2024
@rwinch rwinch self-assigned this Sep 26, 2024
@rwinch rwinch modified the milestones: 3.2.x, 3.2.6 Sep 26, 2024
@rwinch rwinch closed this as completed in b0be6a2 Sep 26, 2024
@rwinch rwinch removed the status: waiting-for-triage An issue we've not yet triaged label Sep 26, 2024
@rwinch rwinch moved this to Done in Spring Security Team Feb 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: bug A general bug
Projects
Status: Done
Development

No branches or pull requests

1 participant