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

java.net.ConnectException: Operation timed out java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.checkConnect(Native Method) #3436

Closed
dfurmans opened this issue May 17, 2024 · 3 comments
Labels

Comments

@dfurmans
Copy link

dfurmans commented May 17, 2024

App stack

lazy val http4sVersion = "0.23.18"
lazy val catsEffectVersion = "3.4.5"
lazy val catsCoreVersion = "2.9.0"
lazy val fs2Version = "3.5.0"
lazy val doobieVersion = "1.0.0-RC1"
lazy val circeVersion = "0.15.0-M1"

on Kubernetes looks like service can not be run.

`at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.checkConnect(Native Method)
at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finishConnect(UnixAsynchronousSocketChannelImpl.java:256)
at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.finish(UnixAsynchronousSocketChannelImpl.java:202)
at java.base/sun.nio.ch.UnixAsynchronousSocketChannelImpl.onEvent(UnixAsynchronousSocketChannelImpl.java:217)
at java.base/sun.nio.ch.EPollPort$EventHandlerTask.run(EPollPort.java:306)
at java.base/sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:113)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1136)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:635)
at java.base/java.lang.Thread.run(Thread.java:840)
at async_ @ fs2.io.net.SocketGroupCompanionPlatform$AsyncSocketGroup.$anonfun$client$7(SocketGroupPlatform.scala:60)
at blocking @ fs2.io.net.tls.TLSContextCompanionPlatform$BuilderCompanionPlatform$AsyncBuilder.system(TLSContextPlatform.scala:268)
at map @ com.comcast.ip4s.SocketAddressCompanionPlatform$ResolveOps.resolve(SocketAddressPlatform.scala:39)
at flatMap @ fs2.io.net.SocketGroupCompanionPlatform$AsyncSocketGroup.connect$1(SocketGroupPlatform.scala:59)
at delay @ fs2.io.net.SocketGroupCompanionPlatform$AsyncSocketGroup.$anonfun$client$4(SocketGroupPlatform.scala:56)
at onError$extension @ org.typelevel.keypool.KeyPool$Builder.keepRunning$1(KeyPool.scala:370)
at delay @ fs2.io.net.SocketGroupCompanionPlatform$AsyncSocketGroup.setup$1(SocketGroupPlatform.scala:53)

@dfurmans dfurmans added the bug label May 17, 2024
@mpilquist
Copy link
Member

That stack trace indicates your app can't reach the destination host. That's very likely to be due to some environmental issues like firewalls, proxy settings, networking configuration, etc.

@dfurmans
Copy link
Author

dfurmans commented May 21, 2024

Thanks @mpilquist
The think is that our CI is deploying an app into CaaS env, and the app is up-and-running - we can see it from the logs. Can not be proxy neither firewall.
However the kubernetes readiness URI can not be reached. the stack is exactly from that point.

@dfurmans
Copy link
Author

our issue has been related with Kubernetes to use an external URL for configuration API, and that provokes, that the application went outside the cluster to rejoin it afterwards - and here were a point of failure.
Closing it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants