`supervisord` kills the licence deactivation trap after 10 s, whatever the container stop timeout
Maintainers usually reply within 1 day
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 49/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- docker
- Domain
- devops
Research direction
Read workbench/template/startup/base/rstudio-workbench.conf.jinja2 alongside workbench/template/scripts/startup.sh.jinja2 to understand supervisord shutdown and the deactivation EXIT trap; compare the program configuration with the README timeout guidance. Check whether the Helm chart’s configmap-startup.yaml also needs the corresponding change. Done means the documented container stop timeout allows deactivation to finish, with the floating-licence signaling concern assessed.
Written by the indexing model from the issue text.
Description
Problem
The README asks licence-key users to run with --stop-timeout 120 / docker stop --time 120 "to ensure proper license deactivation" (README:399-410). That cannot work: [program:rstudio-workbench] sets no stopwaitsecs, so supervisord uses its default of 10 s and SIGKILLs startup.sh's deactivate EXIT trap about 10 s after the stop begins, whatever timeout Docker or Kubernetes allows. The container still exits 0, so nothing shows the deactivation was cut short. Licence files avoid this; this is about licence keys (README Option 2), which the README still documents.
Reproduce
A stub license-manager makes deactivate take 30 s; no real licence is used.
cat > license-manager <<'EOF'
#!/bin/sh
case "$1" in
deactivate) sleep 30 ;;
esac
exit 0
EOF
chmod +x license-manager
docker rm -f pwb-stopwait 2>/dev/null
docker run -d --name pwb-stopwait -e PWB_LICENSE=STUB-KEY \
-v "$PWD/license-manager:/usr/lib/rstudio-server/bin/license-manager:ro" \
posit/workbench:2026.09.0
until docker logs pwb-stopwait 2>&1 | grep -q 'rstudio-workbench entered RUNNING'; do sleep 1; done
time docker stop -t 120 pwb-stopwait
docker logs pwb-stopwait 2>/dev/null | grep -E 'received SIGTERM|Exiting|Deactivating|rstudio-workbench.*SIGKILL' | uniq
docker inspect pwb-stopwait --format '{{.State.ExitCode}}'
docker rm pwb-stopwait
Expected: the stop takes about 30 to 35 s and deactivate finishes.
Actual: docker stop -t 120 returned after 12.6 s, exit code 0:
2026-10-06 03:03:45,680 WARN received SIGTERM indicating exit request
== Exiting ==
Deactivating license ...
2026-10-06 03:03:55,972 WARN killing 'rstudio-workbench' (12) with SIGKILL
2026-10-06 03:03:55,973 WARN stopped: rstudio-workbench (terminated by SIGKILL)
Docker Desktop on macOS, Engine 29.8.2, arm64, posit/workbench:2026.09.0 (revision d7fa4e7); same result with 465de7e's startup.sh mounted over it.
Where
workbench/template/startup/base/rstudio-workbench.conf.jinja2: nostopwaitsecs,stopasgrouporkillasgroup.workbench/template/scripts/startup.sh.jinja2:deactivate()and its EXIT trap.
Possibly related: floating licences
supervisord signals only startup.sh, not rserver, and the trap's rstudio-server stop finds no pid file under --server-daemonize 0, so rserver and its license-manager acquire-lease child appear to get no signal before the container ends. With a stub lease holder we saw no signal; with stopasgroup=true it received SIGTERM. (Our test pointed at an unreachable licence server, so we set server-license-type=remote in rserver.conf to get a lease holder to observe.) We have not tested an actual release against a licence server.
Ask
Set stopwaitsecs on [program:rstudio-workbench] (below the outer timeout the README recommends, since supervisord stops other programs before and after it), and consider stopasgroup/killasgroup for the floating case. The rstudio/helm chart defines its own copy of this program section in configmap-startup.yaml, so it would need the same change.
We have more measurements (timings, the launcher-exit path, a /startup/custom workaround) if they are useful.
- Dominant language
- Jinja
- Stars
- 3
- Forks
- 0
- Avg merge
- 3d 17h
- Merged PRs (30d)
- 8
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from posit-dev/images-workbench
-
dependencies docker enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
posit-dev/images-workbench#257 ·
Maintainers usually reply within 1 day
-
Workbench dev builds fail: deb package renamed rstudio-server -> posit-workbenchPossibly taken @ianpittwood claimed this 1 day ago. Openbug docker
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
posit-dev/images-workbench#253 ·
Maintainers usually reply within 1 day
-
cvp:2 docker tdp:0
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
posit-dev/images-workbench#52 ·
Maintainers usually reply within 1 day
-
Drop Ubuntu 22.04 builds in favor of Ubuntu 24.04 and 26.04Possibly taken @ianpittwood claimed this 39 days ago. Opencvp:0 docker enhancement tdp:2
posit-dev/images-workbench#225 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
cicd cvp:0 docker tdp:1
Difficulty 4/5 3-5 days Newbie friendliness 35/100
posit-dev/images-workbench#177 ·
Maintainers usually reply within 1 day
All issues in posit-dev/images-workbench
Similar issues
-
CONTRIBUTING rules Node out in step 0, then tells client-side contributors to run node --test, which is what CI gates onPossibly taken @yadavraj2001 claimed this today. Opendocumentation good first issue
Difficulty 1/5 1-3 hours Newbie friendliness 82/100
juandresrodca/AdminForge#73 · 1 comment ·
Maintainers usually reply within 1 day
-
Mend: dependency security vulnerability
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
ManageIQ/manageiq-ui-service#2303 ·
Maintainers usually reply within 1 day
-
out-of-date
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CachyOS/CachyOS-PKGBUILDS#2231 ·
Maintainers usually reply within 1 day
-
Update Wasmtime to 48.0.11 for RUSTSEC-2026-0648Possibly taken @flyingrobots claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
flyingrobots/edict#457 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
Vessel9817/onion-site-template#512 ·
Maintainers usually reply within 1 day