buchgr / bazel-remote

A remote cache for Bazel
https://bazel.build
Apache License 2.0
576 stars 150 forks source link

Latest docker image is broken #722

Closed neumann-nico closed 6 months ago

neumann-nico commented 6 months ago

When I tried to start bazel-remote with the :latest Docker tag I get the following error on startup:

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/app/bazel-remote-base.binary": stat /app/bazel-remote-base.binary: no such file or directory: unknown.

I get the error on multiple machines and tried to delete the image and pull it again.

Until yesterday the :latest image tag worked fine. The tag :latest-2.4 works fine too, so only todays build seems broken.

This might be an issue with the latest changes #720 and maybe previous OCI changes?

mostynb commented 6 months ago

Thanks for reporting this- I pushed a slightly older build so it should be working again now.

It is related to the OCI changes somehow, I will figure out the problem and add some tests before pushing to dockerhub again.

neumann-nico commented 6 months ago

Thanks for your hard work!

mostynb commented 6 months ago

This should be fixed properly now. I pushed to latest and it still seems to work.

neumann-nico commented 6 months ago

It works fine on x64 now, but on arm64 I get:

docker: Error response from daemon: failed to create task for container: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "/bazel-remote": stat /bazel-remote: no such file or directory: unknown.

mostynb commented 6 months ago

The arm64 container should be fixed now also (added a test to cover this too).

neumann-nico commented 6 months ago

Thanks now arm64 works too 🚀