OpenCode launch refuses a workspace whose container has exited #86
Labels
No labels
bug
cannot reproduce
duplicate
enhancement
help wanted
invalid
need info
need triage
need verification
not a bug
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
claudiomaradonna/azkaban#86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Defect
An OpenCode launch exits 1 when an exited container of the workspace's
name remains, so one session that ended badly blocks every later launch
on that workspace until someone removes the container by hand.
Location
_azk_refuse_second_container(bin/azkaban:1259) refuses wheneverazk_host_container_exists(lib/azk-host.sh:77) succeeds, and thatasks
podman container exists, which also answers yes for a containerin state
Exited. Seen atb6c8dc8; the check came withd3cf3ff.Evidence
On Linux with rootless Podman, with the workspace's container left as
Exited (1):Scenario
A supervisor runs the launcher in a tmux pane inside a systemd scope and
stops the session. The container stays, exited, despite
--rm; why theremoval is skipped is unconfirmed, possibly because the scope's stop
ends
podman runandconmontogether. The supervisor then starts thesession again, the launcher exits 1 at once, and the supervisor retries
in a loop.
docs/troubleshooting.mdgives this as a manual step, whichan unattended supervisor cannot take.
Smallest fix
Refuse only while that container runs; when it has exited, remove it and
launch.