You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
USABILITY: Make a missing task image/image_resource have a better error message #2726
The error bubbles up from the Garden backend. Doing anything more here is kind of tricky. On Windows and Darwin there is no valid image or image_resource to set, so it's up to the backend to handle it. In these two cases there is no notion of an image or rootfs so they just run your task in an ephemeral directory. The Linux backend we use (Garden-runC) is equipped to also handle this by using a default rootfs, if configured, however we don't have such a thing configured in the binary distribution and don't even have an image plugin configured. Hence the error.
So, we can't detect based on image/image_resource being absent, as that may be correct based on their configuration and based on the Garden backend's configuration, as even Garden-runC may have been configured with an image plugin and such.
Maybe the best thing to do would be to just capture the above error and emit a more descriptive message? With that approach we should probably have an integration test, just to cover for the error message changing out from under us, since it comes from Garden-runC internals.
find or create container on worker ef4baa24f892: new container: garden spec to oci spec: rootfs must not be empty
No image specified for task? Make sure to specify "image" on your task step or "image_resource" in your task config. The image must be in rootfs format.
Activity
edtan commentedon May 13, 2019
On v5.1.0, it now says "no image plugin configured" with this sample pipeline:
vito commentedon May 14, 2019
The error bubbles up from the Garden backend. Doing anything more here is kind of tricky. On Windows and Darwin there is no valid
imageorimage_resourceto set, so it's up to the backend to handle it. In these two cases there is no notion of an image or rootfs so they just run your task in an ephemeral directory. The Linux backend we use (Garden-runC) is equipped to also handle this by using a default rootfs, if configured, however we don't have such a thing configured in the binary distribution and don't even have an image plugin configured. Hence the error.So, we can't detect based on
image/image_resourcebeing absent, as that may be correct based on their configuration and based on the Garden backend's configuration, as even Garden-runC may have been configured with an image plugin and such.Maybe the best thing to do would be to just capture the above error and emit a more descriptive message? With that approach we should probably have an integration test, just to cover for the error message changing out from under us, since it comes from Garden-runC internals.
edtan commentedon May 15, 2019
Perhaps we can check this at the client side in
flyfirst when they create the pipeline?taylorsilva commentedon Jun 30, 2026
Closed by #9563
We now error: