Coder Social home page Coder Social logo

ENOEXEC with a credential helper about image HOT 6 CLOSED

Resisty avatar Resisty commented on August 16, 2024
ENOEXEC with a credential helper

from image.

Comments (6)

mtrmac avatar mtrmac commented on August 16, 2024

Thanks for your report.

That error suggests:

  • That Podman does implement helpers, at least enough for this purpose; otherwise it wouldn’t even refer to the helper path.
  • That the binary is somehow not executable by Go, or more likely by the kernel directly. Is it a shell script without a #! /? Are there SELinux failures? Is it executing exactly the same binary in the two situations? strace might help.

from image.

Resisty avatar Resisty commented on August 16, 2024

Thanks for the reply!

#1: Fair enough; more precisely, podman does not correctly implement the docker credentials helper API; at the very least, it does not respect or understand the JSON output.
#2a: "the binary is somehow not executable by Go" I don't know how this would be the case, see below
#2b: "Is it a shell script without a #!" It is a shell script with a shebang.
#2c: "Are there SELinux failures?" There are no selinux failures.
#2d: "Is it executing exactly the same binary in the two situations?" Yes.

from image.

mtrmac avatar mtrmac commented on August 16, 2024

exec format error (= ENOEXEC) means the helper didn’t even start; it there isn’t any JSON output to get at that stage.

from image.

mtrmac avatar mtrmac commented on August 16, 2024

@Resisty did you manage to find the root cause? I’m afraid I’m not sure how to debug this any further from my side.

from image.

Resisty avatar Resisty commented on August 16, 2024

@mtrmac sorry for forgetting about this; I'm not sure why this matters but I have to start the podman VM with -v $HOME:/mnt and everything proceeds as expected. The executable is under /usr/local/bin and is not a symlink, but for some reason this works.

from image.

mtrmac avatar mtrmac commented on August 16, 2024

Thanks. I really don’t understand how that works but it seems unrelated to c/image, and I’m happy you got it working.

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