Skip to content

standard_init_linux.go:211: exec user process caused "exec format error" #298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
talondnb opened this issue Feb 20, 2020 · 17 comments
Closed
Labels

Comments

@talondnb
Copy link

talondnb commented Feb 20, 2020

image: jc21/nginx-proxy-manager:latest

Describe the bug
npm app doesn't boot, with the logs showing:
standard_init_linux.go:211: exec user process caused "exec format error"

To Reproduce
docker-compose.yaml (previously worked fine until recent update)

version: "3.5"

volumes:
  data:
    driver: local
    driver_opts:
      type: nfs4
      o: addr=10.10.10.100,rw,noatime,rsize=8192,wsize=8192,tcp,timeo=14
      device: ":/volume1/Config/npm/data"
  letsencrypt:
    driver: local
    driver_opts:
      type: nfs4
      o: addr=10.10.10.100,rw,noatime,rsize=8192,wsize=8192,tcp,timeo=14
      device: ":/volume1/Config/npm/letsencrypt"

services:
  app:
    image: jc21/nginx-proxy-manager:latest
    restart: always
    ports:
      - "80:80"
      - "443:443"
      - "81:81"
    volumes:
      # Make sure this config.json file exists
      - /mnt/config/npm/config.json:/app/config/production.json
      - data:/data
      - letsencrypt:/etc/letsencrypt
    depends_on:
      - db
  db:
    image: yobasystems/alpine-mariadb:latest
    restart: always
    environment:
      MYSQL_ROOT_PASSWORD: "npm"
      MYSQL_DATABASE: "npm"
      MYSQL_USER: "npm"
      MYSQL_PASSWORD: "password"
    volumes:
      # Does not work on an NFS volume
      - /home/xxx/npm/data/mysql:/var/lib/mysql

Expected behavior
npm app boots normally

Operating System
Hypriot docker image on Pi4

@talondnb talondnb added the bug label Feb 20, 2020
@talondnb
Copy link
Author

This seems to be because of the latest multi arch build, perhaps not using the right one for my Pi 4.

@jc21
Copy link
Member

jc21 commented Feb 20, 2020

I don’t have a pi 4 yet, but I’ll take a look at it tomorrow

@talondnb
Copy link
Author

Thanks. Pi 4 will be an arm7 build. Can I manually specify somehow?

@talondnb
Copy link
Author

I've tried latest-arm7l as per tags here:

https://hub.docker.com/r/jc21/nginx-proxy-manager

This doesn't seem to work, no valid dockerfile.

@jc21
Copy link
Member

jc21 commented Feb 20, 2020

Could you run ‘uname -a’ in you terminal and paste the output. Should tell me the arch and whether it’s 32 or 64 bit

@talondnb
Copy link
Author

Linux gliesedocker 4.19.66-v7l+ #1253 SMP Thu Aug 15 12:02:08 BST 2019 armv7l GNU/Linux

@talondnb
Copy link
Author

I suspect you've fixed something as i've just retried the :latest-armv7l tag and it's now working. :)

@jc21
Copy link
Member

jc21 commented Feb 20, 2020

I thought pi4 was armv8/arm64. A quick look at Hypriot doesn’t seem to offer different versions for Pi 2/3/4

@jc21
Copy link
Member

jc21 commented Feb 20, 2020

By the way, that latest-armv7l tag is not version NPM 2.1.0, its the previous docker manifest version

@talondnb
Copy link
Author

Ahh I see. I’ll await updates before trying the latest tag again. 👍🏼

@jc21
Copy link
Member

jc21 commented Feb 21, 2020

Looks like the docker buildx isn't building for the correct architectures. Still looking in to it.

@jc21
Copy link
Member

jc21 commented Feb 21, 2020

Nope buildx was working as expected. The real problem is s6-overlay, I've mistakenly been using amd64 binaries for it across all architectures. Rookie move.

@talondnb
Copy link
Author

Ah appreciate it, thanks for looking into this promptly.

@jc21 jc21 closed this as completed in b7e1e4f Feb 21, 2020
@jc21
Copy link
Member

jc21 commented Feb 21, 2020

All done, pull either latest, 2 or 2.1.1 docker image tag. Tested with arm64 and rpi3 w/ hypriot

@talondnb
Copy link
Author

Working fine again, thank you!

@robertolanuti
Copy link

Hi,

I'm geting a smilar error with rpi4 64 bit (using the official OS 32 bit).

uname -a
Linux raspberrypi 4.19.118-v7l+ #1311 SMP Mon Apr 27 14:26:42 BST 2020 armv7l GNU/Linux

This are the images that I'm using:
app:
image: jc21/nginx-proxy-manager:latest

db:
image: jc21/mariadb-aria:latest

@robertolanuti
Copy link

Update: I'm able to run succesfully it by using the following db image:
db:
image: yobasystems/alpine-mariadb:latest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants