-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Maven Connection timed out #1499
Comments
Hello, @BrightRan |
Hi, I'm facing the same issue for several projects, here an example We faced the same problem in the past in our internal CI environment (running with jenkins), it seems Maven Central bans and holds the request if there is too many requests, we solved the problem adding a Nexus proxy mirroring maven central. Do you think it's the same? Do you (github) have any kind of internal proxy to deal with it? |
Just to provide you more info, same job working well (just java8, java11 is known issue not related with this) self-hosted (my laptop) |
Hello @Ginxo We are looking forward to your reply. |
HI @Darleev
@Darleev Expcept the |
just to provide you more information. I run the build inside a docker container from github action using build-chain@openjdk8 and it's working https://github.com/kiegroup/appformer/pull/1037/checks?check_run_id=1055423092 |
@Ginxo thank you for the information provided. |
@Ginxo let me clarify some details to speed the investigation:
Since everything works fine in docker, I believe network issue on the agent machines is not a case here. |
Hi @Darleev replying your questions
In case you want to try the docker example this would be the action
let me know if you need anything else. Cheers, Kike. |
Hi, @Ginxo!
|
I have created a new PR on my own, let's see how it goes LeonidLapshin/appformer#4 |
So that one LeonidLapshin/appformer#4 works and suddenly this (the one which was consistently failing) also works https://github.com/kiegroup/appformer/pull/1037/checks?check_run_id=1070610025 |
This case (same flow, different project) persists https://github.com/kiegroup/drools/pull/3063/checks?check_run_id=1071097964 |
Hey, @Ginxo ! The similar problems: Maven creates long-living connections and if they are idle more than 4 minutes (while Maven is busy for a while) they became flushed from Azure VM Balancer’s SNAT, but RST packet is not sent to Maven (on VM side) or remote host (packages destination) so the socket is open but no data is sent over it. Few assumptions for that error:
You can use a workaround, please add: For now I hope that you can try to implement Maven’s flags, it will slow a build process, but the time spent on TCP recreation will be tiny (not as much as 1% of total build time I guess). The SNAT feature (I guess this feature is absent on current VMs): In future we'll discuss the SNAT properties with the team and will try to implement this feature. |
Thanks @LeonidLapshin |
@LeonidLapshin the workaround seems to be working fine. |
@Ginxo, happy to hear it, please feel free to open a new ticket if the problem persist :) |
…0239) (#2821) Oracle integration tests frequently fail with the following error: transfer failed for https://repo.maven.apache.org/maven2/org/firebirdsql/jdbc/jaybird/4.0.6.java8/jaybird-4.0.6.java8.pom: Connection timed out (Read failed) This issue in another repository provided the suggestion on how to fix this: actions/runner-images#1499 (comment)
@Ginxo this issue is not resolved for me - I have a large long running build, hundreds of modules. the suggested workaround does not work for me. indeed it has become noticeably worse in the past few months. |
@jeacott1 could you please share your job URL? or to paste your job content? I have this working for almost two years for really huge maven builds, may be I can help 🤔 |
@Ginxo its a private repo - will a job url help?
checking a failed run earlier today that I had to shoot -note 2.5 hours between the last maven log and me shooting it.
|
@jeacott1 you can share GHA workflow yaml content. Anyway those logs you shared does not seem to be related with maven timeout issue but with the job waiting for an available runner. This could be due to you already consumed your GHA quota. In this case you always the chance increase quota or to use your own runners, see https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners but this is a different topic. |
@Ginxo check above (sorry I edited it). the config file is large, but this is the crux of it at the failure point (always in the mvn deploy ... )
|
@jeacott1 thanks for sharing. I would say you error is not related with this topic. I suggest you open a new query/request/issue for github support. |
fwiw, removing the other suggested options and just setting -Dmaven.wagon.httpconnectionManager.ttlSeconds=60 has largely fixed my issue. the other options just break the thing altogether. @lhotari was right here I think. |
Apparently, the root cause of the super-slow download problem is the Azure SNAT interacting extremely badly with Maven actions/runner-images#1499
Associated community ticket: https://github.saobby.my.eu.orgmunity/t/maven-connection-timed-out/129040
Recently the customer is receiving a lot of Connection timed out errors in CI builds from maven when pulling dependencies from https://repo.maven.apache.org and similar public repositories. He has never experienced this error locally even when purging local .m2/repository .
The customer is using GitHub-hosted runners in his CI workflow.
The text was updated successfully, but these errors were encountered: