-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
Jenkins: 2.332.1
OS: Linux - 4.18.0-348.2.1.el8_5.x86_64
---
javax-activation-api:1.2.0-2
javax-mail-api:1.6.2-5
sshd:3.228.v4c9f9e652c86
Problem discovered on a Jenkins controller running in a rootless podman version 2.0.5 container. Container's published http and ssh port numbers match those of local host. JENKINS_HOME is volume-mapped to a local host directory. Jenkins is installed the first time the container is run.
Java: OpenJDK Runtime Environment, version 1.8.0_322.
No agents; controller only.
Web browser: Firefox 91.8.0esr (64-bit)Jenkins: 2.332.1 OS: Linux - 4.18.0-348.2.1.el8_5.x86_64 --- javax-activation-api:1.2.0-2 javax-mail-api:1.6.2-5 sshd:3.228.v4c9f9e652c86 Problem discovered on a Jenkins controller running in a rootless podman version 2.0.5 container. Container's published http and ssh port numbers match those of local host. JENKINS_HOME is volume-mapped to a local host directory. Jenkins is installed the first time the container is run. Java: OpenJDK Runtime Environment, version 1.8.0_322. No agents; controller only. Web browser: Firefox 91.8.0esr (64-bit)
Steps to reproduce (success case first):
- Run container with jenkins.war 2.332.1 only (no additional plugins), enable sshd plugin v3.0.3 (detached version for this war) and dependencies shown above.
- One-time setup on initial install: Create first admin user. Add ssh public key to that user's config page. Configure Global Security page: set SSHD Port to fixed, portNumber. Create freestyle "test_job" with arbitrary stdout output and build it.
- From local host shell (as first admin user):
ssh -p portNumber local-hostname console test_job
Console log of "test_job" (latest build) is output, then shell prompt returns.
Then (failure case):
- Stop container. Re-build it, adding any sshd plugin >= v3.0.4. (e.g., 3.228.v4c9f9e652c86), then run the container. Wait for "Jenkins is fully up and running" log message.
- Repeat ssh command above. Console log of "test_job" is output, then no shell prompt returns; must Ctrl-C to terminate ssh command.
Note: hang also occurs when running "java -jar jenkins-cli.jar ... console JOB" in a build step on a containerized Jenkins controller (run either by podman or by kubectl).
P.S. Component set to "other" because "sshd" component is not defined.
- links to