-
Notifications
You must be signed in to change notification settings - Fork 49
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
openjdk 1.8.0.252.b09 - rd wait on exit issue #302
Comments
Any update on that issue? Using the tools with that waits is hard. Thanks |
sorry, if this is an issue with that particular version of openjdk, I'm not sure what we can do about it with the rd tool code. is there any bug report you can find openjdk that indicates a workaround? |
At today no openjdk updates has been released and I din´t find any workaround to address the problem. On my CentOS7 servers I just blocked any java update by adding to /etc/yum.conf the line:
I´m not a programmer then I cannot say if the issue come out from openjdk or from rd cli code. I just reported the problem because we hare using rd in many scripts. Right now we didn´t check if alternative java version will fix the problem because the system requirements are on java 1.8.x https://docs.rundeck.com/docs/administration/install/system-requirements.html |
time RD_URL=http://127.0.0.1:4440 RD_INSECURE_SSL=true RD_PASSWORD=TEST RD_USER=admin rd system info real 3m1.046s ##another example root@rundeck-ble-us-1:/var/log# time RD_URL=http://127.0.0.1:4440 RD_INSECURE_SSL=true >RD_PASSWORD=_____ RD_USER=admin rd users list real 3m1.046s rd --version root@nordlocker-rundeck-us-1:~# time RD_URL=http://127.0.0.1:4440 RD_INSECURE_SSL=true RD_PASSWORD=password RD_USER=admin RD_DEBUG=1 rd projects list WARNING: RD_INSECURE_SSL=true, no hostname or certificate trust verification will be performedJul 15, 2020 5:09:53 AM okhttp3.internal.platform.Platform log 9 Projects:xxxxxxxx real 3m1.143s |
Update: same lag with others commands like tested on openjdk 11.0.6 2020-01-14 SAME |
@golimer please post your os information (edit) |
We've tried your versions here without issues:
rundeck version:
java:
rd-cli from repo and from zip.
local rundeck:
remote rundeck:
|
After desperate tries... updated everything what is possible except OS :) few months ago was perfect.... i cant find what is wrong.... Debian stretch
rundeck: rundeck-3.3.0-20200701.war java:
rd: 1.3.1 Timing:
Thank you guys for helping!!!! |
debian version:
rundeck:
java:
rd-cli:
time
@golimer to discard an rd-cli issue, could you try using curl command like below? you will need a token for the user (from the Rundeck's GUI profile of that user) That could give us some lights on what is not working as expected. |
|
tested and on debian 10.4 same
Starting to think about configs...... |
case solved ..... rundeck-config.properties
|
well changes of rundeck-config.properties
i have new problems: after clicking on job redirecting to http://localhost:4440
|
hmm no solution regarding this issue? |
if you have lag resolving domain.com in your server, maybe your local name resolution is not working to resolve domain.com or something. You can also try the |
I have the same issues and made some investigation.
Forgot to mention: |
@cova-fe can you run with |
So, here you can see the last lines of the log:
Please note that DEBUG line is printed by the script in the last step of the workflow, a locally executed script.
|
@cova-fe so the 3 minute delay occurs at which point? |
It happens after the last line of course only on the first log, the second one is the "exit 1" log and has no delays. |
NICE works like a charm !!! 👍 |
Same problem here, after updating OpenJDK8 for security updates rundeck-cli suddenly takes 3 minutes to exit after a job is finished. |
if anyone experiencing this can take a threaddump during this delay, maybe that would shed some light on it |
No problem in collecting info, but java is not my field. Any pointer about how to doing that properly? |
you can send a SIGQUIT signal to the JVM to have it output a threaddump, e.g. |
Thanks, here you can find the result.
|
is there a previous version of rd where this issue does not happen in the same scenario? |
I tried some older versions (1.2.4, 1.1.8, 1.0.29) using -all.jar and the behavior is the same. (also, I tried 1.3.3) |
Faced the same problem when executing |
Solution verified on centos 7. rd cli version 1.3.0 The entry on rd.conf : 👍 p.s. |
A question to whoever successfully fixed the issue: is the url you added to RD_BYPASS_URL (or you are using directly) has also reverse dns resolution and not only direct? |
We have direct/reverse lookup on internal dns for all servers but I'm not sure that this is involved on the issue. @cova-fe: If you don't have reverse lookup may you try to add them to your dns and check if this fix the problem? |
Yep, I had this idea; it will take a bit but I want to test it as soon as possible |
FWIW we have a rundeck-cli docker image that builds from our own openjdk images. With the same rundeck-cli package binary on top of different patch releases of openjdk 8 this problem shows up. All that was required to cause the problem was running To reproduce it should be as simple as getting both versions and exporting JAVA_HOME. Here are some examples of me randomly trying different JREs to see which ones work and which ones don't. Notice it aligns with the original ticket title regarding JDK 8u242 works:
JDK 8u252 does not work:
JDK 8u265 does not work:
JDK 11 does not work:
|
investigating if this might be the cause: square/retrofit#3144 |
Fix #302 jvm exit delayed by lingering threads
I released 1.3.4 with this fix, #335 however i could never reproduce the original error, so I wasn't able to verify it. Please let me know if it works. If not please reopen this issue, thanks. |
I tested it on my setup, the issue seems to be fixed :) (I say seems because I tested it only once, but I'm confident it is fixed for good). Many thanks!! |
Using 1.3.4 fixes it for us too. Thanks! |
On CentOS 7.x rundeck cli 1.0.x/1.2.x/1.3.x and rundeck 2.11.5 / 3.2.x (last test with 3.2.8.20200608) works fine with old openjdk packages:
If the openjdk package is updated with latest available on CentOS 7 (1.8.0.252.b09-2) rd command wait for a long time before exit from any command.
Restore the previous version solve the issue
The text was updated successfully, but these errors were encountered: