← Back to issue list

Consecutive runs of rockcraft pack fail

View original Github issue

Metadata

Project
rockcraft
Number
#188
Type
issue
State
open
Author
arturo-seijas
Labels
—
Created
Updated
Closed
—

Current evaluation

A second rockcraft pack fails when an overlay script creates a fixed group or user because prior state persists; rockcraft clean restores success. The issue remains open and untriaged.

Suggested action: needs triage

Reason: The report provides a complete YAML reproducer: the first pack succeeds, the second stops at addgroup because indico exists, and rockcraft clean makes it pass again. It has no labels, assignee, or maintainer assessment; the only comment is the reporter's cautious link to #57, and no resolving commit or current-version verification is available.

Evaluated by: mr-cal-bot

Impact: 48 Quick Win: 15 Complexity: 60 Confidence: 84 Actionability: 78

Issue body

Hi! I've came across an error when trying to pack for second time an image containing a part that creates a group and a user. The first run is successful but the second one throws an error stating that the group already exists. When running `rockcraft clean` the `pack` succeeds again ``` Executing action :: + addgroup --gid 2000 indico :: addgroup: The group `indico' already exists. 'overlay-script' in part 'add-user' failed with code 1. ``` The rockcraft.yaml is as follows: ``` name: indico summary: Indico rock description: Indico OCI image for the Indico charm version: "1.0" base: bare build-base: ubuntu:22.04 license: Apache-2.0 platforms: amd64: parts: add-user: plugin: nil overlay-script: | addgroup --gid 2000 indico adduser --system --gid 2000 --uid 2000 --home /srv/indico indico ``` Thank you

Evaluation history

Date Model Scores Action Summary
stealth/space-bunny-alpha
Impact: 48
Quick Win: 15
Complexity: 60
Confidence: 84
Actionability: 78
needs triage A second rockcraft pack fails when an overlay script creates a fixed group or user because prior state persists; rockcraft clean restores success. The issue remains open and untriaged.
qwen/qwen3.6-35b-a3b
Impact: 70
Quick Win: 34
Complexity: 40
Confidence: 75
Actionability: 80
needs triage rockcraft pack fails on consecutive runs when overlay-script creates a group/user that already exists from the first run. Requires rockcraft clean between runs as workaround.
qwen/qwen3.8-27b
Impact: 15
Quick Win: 13
Staleness: 90
Complexity: 15
Confidence: 75
Support Request: 75
close not a bug Second 'rockcraft pack' run fails when overlay-script creates a group/user because the cached overlay already has them. Workaround is 'rockcraft clean'. 1300 days old, no maintainer response, no labels. Docs now recommend override-build with useradd/groupadd --root instead.
qwen/qwen3.6-35b-a3b
Staleness: 95
Complexity: 20
Confidence: 70
Support Request: 5
close stale Unlabelled bug report from 3.5 years ago describing a failure when running rockcraft pack twice due to addgroup complaining about an existing group. No maintainer response or updates.
qwen3.6-35b-a3b-mtp-q6
Staleness: 95
Complexity: 35
Confidence: 80
Support Request: 10
needs triage Unlabelled report of `rockcraft pack` failing on consecutive runs due to non-idempotent overlay scripts. No maintainer response in over 3 years.

Update history

No update history recorded yet.

Related work

  • Related To: rockcraft#57 (confidence 99%)

    The reporter explicitly called it possibly related; #57 also concerns leftover state breaking consecutive pack runs.

Related issues

Issue Project State Summary Similarity
#57 Leftover files affecting consecutive runs of "rockcraft pack" rockcraft open Failed pack leaves part-install files that break the next pack; a triage update asks whether the supported rockcraft clean reset resolves the hard-link failure.
80%