Skip to content

Fix kernel permission error#78

Merged
brandomr merged 1 commit into
mainfrom
docker-build
Mar 31, 2026
Merged

Fix kernel permission error#78
brandomr merged 1 commit into
mainfrom
docker-build

Conversation

@brandomr

Copy link
Copy Markdown
Collaborator

This fixes the Docker build for Biome. Since the Docker build (via docker compose) now builds off dev branch not a pinned beaker-kernel version, the build was broken by Beaker server upgrades.

The beaker-kernel dev branch added a write_connection_file override that chowns kernel connection files to the agent user, but since the server was running as root, those files landed in /root/.local/share/jupyter/runtime/ — a directory non-root users can't traverse regardless of file permissions. Adding USER jupyter before CMD ensures the server writes connection files to /jupyter/.local/ (already owned by UID 1000), resolving the repeated PermissionError that caused kernels to exhaust their restart attempts and die on startup.

NOTE: I've also commented out the REST API from the compose for dev purposes, which seems reasonable.

@brandomr
brandomr merged commit fe0795b into main Mar 31, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant