Giter Site home page Giter Site logo

Comments (12)

liby2006 avatar liby2006 commented on August 20, 2024

me too. I have the same problem

from source-to-image.

liby2006 avatar liby2006 commented on August 20, 2024

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.

brenthdaniel avatar brenthdaniel commented on August 20, 2024

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.

brenthdaniel avatar brenthdaniel commented on August 20, 2024

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

cfg.BuilderImage = ref.DockerReference().Name()

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.

openshift-bot avatar openshift-bot commented on August 20, 2024

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.

brenthdaniel avatar brenthdaniel commented on August 20, 2024

/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.

coreydaley avatar coreydaley commented on August 20, 2024

If someone would like to put together a pull request + test for this we would be happy to review it.

from source-to-image.

coreydaley avatar coreydaley commented on August 20, 2024

@brenthdaniel I moved the issue that you were having to #1123 to be dealt with separately.

from source-to-image.

coreydaley avatar coreydaley commented on August 20, 2024

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.

coreydaley avatar coreydaley commented on August 20, 2024

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.

coreydaley avatar coreydaley commented on August 20, 2024

No updates from OP since June, closing.
/close

from source-to-image.

openshift-ci avatar openshift-ci commented on August 20, 2024

@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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.