Repository navigation
ompbox: chown omp natives to coder so omp 19.1.1 starts - #95
Merged
Merged
Conversation
omp 19.1.1 sets explicit timestamps (utimes) on natives/<version> at every start, which only the owner may do. With the natives extracted root-owned into /usr/local/lib/omp/natives, startup aborted with "embedded addon dir: EPERM ... utime" and never probed the addon that was already there. Hand the dir to coder (uid 1000, the session user under podman keep-id and in the k8s pod). Upstream: can1357/oh-my-pi#20266, fix pending in #20267; drop the chown once that ships (an OpenShell sandbox uid still hits it until then). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
With omp 19.1.1,
ompboxfails at launch:omp now sets explicit timestamps on
natives/<version>at every start (utimesSync), which only the owner may do. Our natives are extracted root-owned at build time, so the touch fails and the loader never probes the already-extracted addon (19.1.0 still fell through to it). Upstream: can1357/oh-my-pi#20266, fix in can1357/oh-my-pi#20267 (open).Fix
chown -R coder:coder /usr/local/lib/ompafter extraction. uid 1000 is the session user under podman--userns=keep-idand in the k8s pod. Marked with aponytail:comment to remove once the upstream fix ships.docs/architecture.mdupdated accordingly.Limitation
An OpenShell sandbox runs as a different uid and still hits the error until the upstream fix is released.
Verification
omp config pathloads the natives (exit 0).tests/render-test.shpasses../ompbox --buildand a launch.🤖 Generated with Claude Code