-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
zrok enable Error Path Crash #244
Comments
When this happens the enabled environment appears in the controller UI, but ~/.zrok is still empty. I made sure the same user is able to touch a file in filesystem that's mounted on ~/.zrok. |
I built the branch associated with this issue and can reproduce this stack trace. I assume this is being triggered when zrok tries to write files like ~/.zrok/environment.json, and that there's something about the way the storage is being provided that preventing that.
Steps to reproduce on linux-amd64: (set -eux;
git checkout docker-share # build a container image with the right libc
docker buildx build -t zrok-builder ./docker-images/cross-build --load
git checkout enable_error_path # this is Michael's fix branch
rm -rf ./dist && docker run --rm --volume $PWD:/mnt zrok-builder amd64 # this runs the builder container to create the zrok artifact in ./dist/
sha256sum ./dist/amd64/linux/zrok # note checksum
git checkout docker-share # this branch has the container stuff to reproduce
pushd ./docker-images/zrok-public-share/
docker compose build zrok-enable # stuff the dev build into the zrok-enable image
docker compose run --entrypoint /bin/bash zrok-enable -c "sha256sum /usr/local/bin/zrok" # verify checksum
read -s ZROK_ENABLE_TOKEN; export ZROK_ENABLE_TOKEN # paste token and press ENTER
docker compose down --remove-orphans --volumes && docker compose up --no-log-prefix zrok-enable # run the modified container
docker compose run --entrypoint /bin/bash zrok-enable -c 'echo WHOAMI=$(id); touch /mnt/.zrok/touchtest; ls -lAR /mnt/'
;) |
@michaelquigley with latest dev build from your commit I now see this message during enable. The enable process consistently gets stuck at "contacting the zrok service...", the same errors I reported in a DM are emitted in the controller UI's JS console, there's no longer a stack trace, and the controller UI doesn't show the enabled environment succeeded like it was doing with the prior build.
|
The text was updated successfully, but these errors were encountered: