-
Notifications
You must be signed in to change notification settings - Fork 768
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
Upgrading to v2, error *4848 port is already used* in zulu #158
Comments
Hello @hantsy. I think it's not related to |
The tests in my master branch are all passed now. You can check the commit log, I was trying to upgrade to v2, failed. Then I have to return back to v1, worked again. |
The same problem when using v2 with Payara(a fork of Glassfish), check the details. |
Not sure the workflows in the repository cached the old JDK, when returning to the v1, some former successful workflows in https://github.com/hantsy/cargotracker failed now. |
So strange, also reported to Payara, also do not know the reason. And the most strange is the GlassFish v6.0/Jakarta EE 9 testing codes failed now. |
Till now, almost all Payara/GlassFish related workflows which worked well in the past months or years are failed in all of my repositories.
I was afraid the port conflict is caused by the workflow execution in parallel. In https://github.com/hantsy/cargotracker/, I removed other Payara-related workflows, only left Payara managed adapter(the only one that used 4848 port) to run the testing codes, failed. No doubt the testing codes using the same Maven profiles passed on my local system. I tried to add a script to print which process occupied 4848. https://github.com/hantsy/cargotracker/blob/master/.github/workflows/it-with-arq-payara-managed.yml#L54, but it seems this command did not work on Github Actions. And in the above list, the projects also configured multi workflows for WildFly, OpenLiberty, these workflows never failed. |
@hantsy , every workflow is run on the separate clean VM that is isolated from other VMs so any parallel conflicts are eliminated. |
It is great to confirm this. You can check the commit log, before 5, April (setup-java v2 pr created at that moment), the workflow for In the newest version of https://github.com/hantsy/jakartaee9-starter-boilerplate, the I am not sure why |
Created a new Circle CI config, https://github.com/hantsy/cargotracker/blob/master/.circleci/config.yml#L29, the build is successful. The scripts are 100% same as the Github actions payara-managed workflow, https://github.com/hantsy/cargotracker/blob/master/.github/workflows/it-with-arq-payara-managed.yml#L74 The Circle CI environment never reports 4848 is already in use error. And this error never occurred on my local system. Please note the workflow files I listed above #158 (comment) are not newly added, they have run on Github actions for months or years but never encountered the problem till in these two weeks at the moment setup-java v2 was released. I also tried to print the port info in some steps, https://github.com/hantsy/cargotracker/blob/master/.github/workflows/it-with-arq-payara-managed.yml#L54, but Github actions will exit quickly when executing this scripts. So I do not know which program was using 4848 at all. |
I suggest trying add the following step to the failed workflow right before invocation of your tool:
It should list all busy ports. I can't reproduce the issue right after build starts, port is free:
|
I am crazy, really not sure why it happened. |
@maxim-lobanov In these two days, there are some PRs merged into the repos, it seems everything becomes as before. The broken workflows(due to 4848 port issues) run successfully. |
That sounds really weird because neither |
@maxim-lobanov maybe a system package that JDK is dependent on caused this issue. Thanks for your patience. I close this issue. |
Platform:
Runner type:
Follow the migrate guide, after upgrading to v2, all my ci using Glassfish failed due to a 4848 port is already used,
https://github.com/hantsy/jakartaee9-starter-boilerplate/blob/b3e51fcd857768c05e6104ea940f0ecd283c4698/.github/workflows/it-with-arq-glassfish-managed.yml#L22
but switch back to v1, work again.
https://github.com/hantsy/jakartaee9-starter-boilerplate/blob/master/.github/workflows/it-with-arq-glassfish-managed.yml#L22
The text was updated successfully, but these errors were encountered: