Git Product home page Git Product logo

Comments (3)

jbub avatar jbub commented on July 21, 2024

That is probably because it was built on M1 macbook (darwin/arm64) with Docker preview. I am running 0.9.0 on linux/amd64 host with no problems. Can you post the build error you encountered ?

from pgbouncer_exporter.

jbub avatar jbub commented on July 21, 2024

Anyway try v0.9.2, that should fix that.

from pgbouncer_exporter.

danielhoherd avatar danielhoherd commented on July 21, 2024

@jbub thanks for handling that. I see that 0.9.1 and 0.9.2 are multi-arch.

Screen Shot 2021-03-17 at 11 16 07 AM

The build error I first saw was standard_init_linux.go:185: exec user process caused "exec format error" which is pretty ambiguous. After using a newer version of docker (20.10.2), I encountered this much more useful error:

 ---> 78154fb97768
Step 6/6 : RUN set -ex     && echo http://dl-cdn.alpinelinux.org/alpine/v3.7/main > /etc/apk/repositories     && echo http://dl-cdn.alpinelinux.org/alpine/v3.7/community >> /etc/apk/repositories     && apk upgrade --no-cache libressl libressl-dev
 ---> [Warning] The requested image's platform (linux/arm64) does not match the detected host platform (linux/amd64) and no specific platform was requested
 ---> Running in 23e657c99462
standard_init_linux.go:219: exec user process caused: exec format error
The command '/bin/sh -c set -ex     && echo http://dl-cdn.alpinelinux.org/alpine/v3.7/main > /etc/apk/repositories     && echo http://dl-cdn.alpinelinux.org/alpine/v3.7/community >> /etc/apk/repositories     && apk upgrade --no-cache libressl libressl-dev' returned a non-zero code: 1

I then added --platform linux/amd64 and received a similar error. Using 0.8.0 which had the right arch solved the issue.

Thanks again for the quick turnaround on that!

from pgbouncer_exporter.

Related Issues (16)

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.