Comments (12)
me too. I have the same problem
from source-to-image.
I have try v1.1.14 release, it have similar problem
The logs:
/bin/sh: /usr/libexec/s2i/assemble: Permission denied
Build failed
ERROR: An error occurred: non-zero (13) exit code from kubespheredev/nginx-centos7-s2ibuilder-sample:latest
from source-to-image.
I have almost the same problem starting with 1.3.2. In my case the image exists in docker.io, but s2i inexplicably uses the 'latest' tag rather than the one I specify. The 'latest' tag does not exist, so it fails.
(cekit4.5.0) bhdaniel@Brents-MacBook-Pro s2i1.3.2 % ./s2i --loglevel 5 build ~/repos/WASdev/websphere-liberty-s2i/test/test-app-rest ibmcom/websphere-liberty-s2i:22.0.0.10-java8 ibmcom/testapp -e DEPLOY_TO_APPS=true
I0104 08:56:16.426030 68942 build.go:52] Running S2I version "v1.3.2"
I0104 08:56:16.430621 68942 util.go:58] Getting docker credentials for ibmcom/websphere-liberty-s2i:22.0.0.10-java8
I0104 08:56:48.106413 68942 docker.go:500] error inspecting image docker.io/ibmcom/websphere-liberty-s2i:latest: Error: No such image: docker.io/ibmcom/websphere-liberty-s2i:latest
I0104 08:56:48.106606 68942 docker.go:487] Image "docker.io/ibmcom/websphere-liberty-s2i:latest" not available locally, pulling ...
I0104 08:56:49.498188 68942 docker.go:566] pulling image error : Error response from daemon: manifest for ibmcom/websphere-liberty-s2i:latest not found: manifest unknown: manifest unknown
I0104 08:56:49.507080 68942 docker.go:458] error inspecting image docker.io/ibmcom/websphere-liberty-s2i:latest: Error: No such image: docker.io/ibmcom/websphere-liberty-s2i:latest
I0104 08:56:49.509369 68942 build.go:170]
Error describing image: unable to get docker.io/ibmcom/websphere-liberty-s2i:latest
Source: /Users/bhdaniel/repos/WASdev/websphere-liberty-s2i/test/test-app-rest
Output Image Tag: ibmcom/testapp
Environment: DEPLOY_TO_APPS=true
Labels:
Incremental Build: disabled
Remove Old Build: disabled
Builder Pull Policy: if-not-present
Previous Image Pull Policy: if-not-present
Quiet: disabled
Layered Build: disabled
Docker Endpoint: unix:///var/run/docker.sock
Docker Pull Config: /Users/bhdaniel/.docker/config.json
Docker Pull User:
I0104 08:56:49.516142 68942 docker.go:500] error inspecting image docker.io/ibmcom/websphere-liberty-s2i:latest: Error: No such image: docker.io/ibmcom/websphere-liberty-s2i:latest
I0104 08:56:49.516203 68942 docker.go:487] Image "docker.io/ibmcom/websphere-liberty-s2i:latest" not available locally, pulling ...
I0104 08:56:50.806413 68942 docker.go:566] pulling image error : Error response from daemon: manifest for ibmcom/websphere-liberty-s2i:latest not found: manifest unknown: manifest unknown
I0104 08:56:50.810043 68942 docker.go:458] error inspecting image docker.io/ibmcom/websphere-liberty-s2i:latest: Error: No such image: docker.io/ibmcom/websphere-liberty-s2i:latest
E0104 08:56:50.811514 68942 errors.go:286] An error occurred: unable to get docker.io/ibmcom/websphere-liberty-s2i:latest
E0104 08:56:50.811582 68942 errors.go:287] Suggested solution: check image name, or if using a local image set the builder image pull policy to "never"
I0104 08:56:50.811623 68942 errors.go:289] Details: Error response from daemon: manifest for ibmcom/websphere-liberty-s2i:latest not found: manifest unknown: manifest unknown
E0104 08:56:50.811635 68942 errors.go:291] If the problem persists consult the docs at https://github.com/openshift/source-to-image/tree/master/docs. Eventually reach us on freenode #openshift or file an issue at https://github.com/openshift/source-to-image/issues providing us with a log from your build using log output level 3.
from source-to-image.
This bug was introduced by #1068. In generate.go
, manageConfigImageLabelsBuildImageName
sets the builder image to the docker reference name which will not have tag information
source-to-image/pkg/cmd/cli/cmd/generate.go
Line 109 in 78363ee
Commenting out that line works around the problem. Otherwise, s2i will always try to use the latest
tag for the builder image.
from source-to-image.
Issues go stale after 90d of inactivity.
Mark the issue as fresh by commenting /remove-lifecycle stale
.
Stale issues rot after an additional 30d of inactivity and eventually close.
Exclude this issue from closing by commenting /lifecycle frozen
.
If this issue is safe to close now please do so with /close
.
/lifecycle stale
from source-to-image.
/remove-lifecycle stale
This is still a major bug that prevents S2I from being able to use builders that don't publish a latest
tag and causes it to silently use the wrong builder version when someone requests a specific tag.
from source-to-image.
If someone would like to put together a pull request + test for this we would be happy to review it.
from source-to-image.
@brenthdaniel I moved the issue that you were having to #1123 to be dealt with separately.
from source-to-image.
I have try v1.1.14 release, it have similar problem The logs: /bin/sh: /usr/libexec/s2i/assemble: Permission denied Build failed ERROR: An error occurred: non-zero (13) exit code from kubespheredev/nginx-centos7-s2ibuilder-sample:latest
That is a different problem, please open a different issue for that.
from source-to-image.
I can not replicate this issue using the latest docker (24.0.2) and S2I (1.3.7). When I build an image using docker build ....
it automatically adds the docker.io
as a prefix and then it is able to find it locally.
from source-to-image.
No updates from OP since June, closing.
/close
from source-to-image.
@coreydaley: Closing this issue.
In response to this:
No updates from OP since June, closing.
/close
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.
from source-to-image.
Related Issues (20)
- latest release doesn't work anymore HOT 5
- Issue with multi stage builds HOT 11
- using assemble script on the runtime image during s2i build with --runtime-image instead of assemble-runtime script HOT 4
- Docker dep ? HOT 1
- Build s2i releases for AArch64 HOT 2
- The `--exclude` flag is not used in `--as-dockerfile` mode. HOT 1
- could not inspect the builder image for labels: choosing image instance: no image found in manifest list for architecture amd64, variant "", OS darwin HOT 1
- Image building problems - docker authentification - Mac OS - Docker desktop HOT 6
- Is it possible to use podman for s2i build? HOT 3
- s2i build command always uses 'latest' tag
- s2i build --as-dockerfile not using local .s2i/[assemble, run] when builder image present HOT 4
- ERROR: --runtime-image cannot be used with --as-dockerfile HOT 3
- pull policy "if-not-present" yet still querying remote registry HOT 11
- docker client api version 1.43 is "too new", can s2i support talking older dialects? HOT 7
- Unable to use s2i using Amazon EC2 Linux 2023 HOT 8
- Any usage of s2i fails with "ERROR: An error occurred: http: invalid Host header"
- Scripts under .s2i/bin detected but not changing the DockerFile configuration HOT 4
- brew-installed s2i cannot enable tab completion HOT 4
- can't seem to authenticate to my private registry using s2i build HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from source-to-image.