-
Notifications
You must be signed in to change notification settings - Fork 199
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
Port already in use when jmx enabled #556
Comments
Thanks for the issue report. I believe the issue is that the plugin installation manager tool is honoring the If I use the following Dockerfile, the build of the container fails:
If I change that Dockerfile slightly, it works:
I don't know enough about the helm charts to know if there is a way for you to delay the configuration of the JAVA_OPTS value until after |
Thank you for replying and looking at this for me The problem is more for when there are deployment issues (and need to run the plugins-cli) or wanting to use the cli post deployment - I don't see these problems during the deployment itself but rather when using the cli on a live jenkins instance - ie. I ssh on and manually run it But as you raised I see the JAVA_OPTS environment variable is there with the jmx args So what java opts you start jenkins with the plugin-cli will also pickup? When ran manually on an already active jenkins instance the plugin-cli will get the same - is there a way to avoid this, or is there a need for java opts for the cli at all? Or can the plugin-cli point to a different env var so not to clash with the jenkins opts As a workaround can do something like this I suppose which solves my problem here
|
Yes, that's what I observed.
|
Jenkins and plugins versions report
Environment
What Operating System are you using (both controller, and any agents involved in the problem)?
Image - jenkins/jenkins:2.387.2-lts-jdk11
Helm chart -https://github.com/jenkinsci/helm-charts - v4.3.21
AWS EKS v1.25 - m7g.8xlarge - arm64
Reproduction steps
Enable JMX when installing jenkins
Example
https://github.com/jenkinsci/helm-charts/blob/main/charts/jenkins/values.yaml#L231-L235
Try to run jenkins-plugin-cli on jenkins instance
Expected Results
Be able to run jenkins-plugin-cli without error when jmx is enabled on jenkins
Actual Results
Anything else?
Changing the jmx port has the same outcome
The text was updated successfully, but these errors were encountered: