agenta icon indicating copy to clipboard operation
agenta copied to clipboard

[Bug] Agenta-cli does not grant sufficient access right when building from a Windows File System

Open LucasTrg opened this issue 2 months ago • 1 comments

Describe the bug For reasons obscure to me, when trying to build a variant from Windows (or WSL), the automatically created entrypoint.sh does not have execution permission. Meaning the server will fail to run the newly created image because of a

docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: exec: "./deployment-service": permission denied: unknown.

To Reproduce Steps to reproduce the behavior:

  1. Locally host agenta 0.13.8 (in my case, a debian VM running agenta with forwarded ports)
  2. From either pure windows or WSL run agenta init
  3. Select local machine
  4. Select any template
  5. Run agenta variant serve app.py

Expected behavior The container should be able to run, and the server return a 200.

Desktop (please complete the following information):

  • OS: Windows 10 + WSL2 Ubutnu

I suspect adding a RUN ["chmod", "+x", "/entrypoint.sh"] to the Dockerfile template would be enough to fix this, but I'll be unable to reproduce for a few days.

I'm not used to opening issues, let me know if there's anything I can do to improve it :)

LucasTrg avatar Apr 30 '24 11:04 LucasTrg