Nesousx / nesatmo-s6

Please, use new repo, see readme for more info.
4 stars 0 forks source link

Container exited with code 1: exec user process caused "exec format error" #2

Open AlfaJackal opened 4 years ago

AlfaJackal commented 4 years ago

Hi!

I am trying to use your docker file and netatmo influxdb script, running on a Pi4b. Unfortunately the container crashes with this error message:

pi@Eggman:~/Nesatmo $ docker-compose logs -f
Attaching to nesatmo
nesatmo    | standard_init_linux.go:211: exec user process caused "exec format error"
nesatmo    | standard_init_linux.go:211: exec user process caused "exec format error"
nesatmo    | standard_init_linux.go:211: exec user process caused "exec format error"
nesatmo    | standard_init_linux.go:211: exec user process caused "exec format error"
nesatmo exited with code 1

This is my docker-compose.yml:

version: '2'
services:
    nesatmo:
        container_name: nesatmo
        image: nesousx/nesatmo-s6-auto
        restart: unless-stopped
        environment:
          - NETATMO_CLIENT_ID=xxx
          - NETATMO_CLIENT_SECRET=xxx
          - NETATMO_CLIENT_USERNAME=mail@domain.com
          - NETATMO_CLIENT_PASSWORD=xxx
          - INFLUX_URL_WITH_PORT=http://10.10.0.6:32784
          - INFLUX_DB=telegraf
          - INFLUX_USER=telegraf
          - INFLUX_PASS=telegraf

Triple checked credentials, that is all correct.

Any help is much appreciated!

Best, AJ

Nesousx commented 4 years ago

Hi,

I can't reproduce the error on my server.. however. I see you are using a RPI, which means ARM architecture. My container is based on x86_64.

I strongly believe, this might be related. I'll try to create an ARM version, or if you know your way around Docker a bit, you could try to edit my DockerFile and use an ARM alpine image in the FROM line.

Let me know if that helps,

AlfaJackal commented 4 years ago

Hi @Nesousx,

thanks for your reply. According to other reports on this error message, it definately has something to do with ARM/x86_64. Unfortunately I am not into docker that much so I don't know how to build an ARM version out of this x86_64 container. Therefore I would really love to have an ARM version created by you.

AlfaJackal commented 4 years ago

Any chances for that promise?

Nesousx commented 4 years ago

Hi,

This was never a promise.

EDIT

I am in the process of making this image "multi arch", so that it can work for you (and others). I'll keep you posted.

Thanks in advance.

Nesousx commented 4 years ago

Any chances for that promise?

Hi,

Can you try to use the following image : nesousx/nesatmo?

Please keep me posted.