Chibald / maestrogateway

Manage MCZ pellet stoves that are equipped with Maestro technology
GNU General Public License v3.0
38 stars 13 forks source link

standard_init_linux.go: 219: exec user process caused: exec format error #27

Closed VoetenK closed 3 years ago

VoetenK commented 3 years ago

Using DockerHub, I run maestrogateway as container in Home Assistant's Portainer. Its status is running, but in the log it says: portainer standard_init_linux.go: 219: exec user process caused: exec format error. What is the explanation for this?

Chibald commented 3 years ago

Can you please post your docker-compose file so i can try to reproduce. It may be settings related.

VoetenK commented 3 years ago

Can you tell me where or how I can find it?

VoetenK commented 3 years ago

Is this what you mean?

2021-02-05_15-53-17

Kam1ni commented 3 years ago

@Chibald I was helping @VoetenK with the issue. His specific environment runs on Home Assistant OS which is based on Alpine Linux. At first we tried using portainer which is a web based ui for docker. Then we set up a docker-compose file which was an exact copy of the one in the example except for the 3 environment variables. Both solutions ended showing this error: standard_init_linux.go: 219: exec user process caused: exec format error

I think it might be caused by home assistant being an incomplete installation of Alpine. Cause basic utilities like rc-service aren't available. We did manage to get it running through the bash install command. But it would be more useful if we could run it as a service in the background cause we only have one terminal available. The bash install_daemon command also didn't work. Probably because systemd isn't available.

Chibald commented 3 years ago

Bit late answer probably, but its getting colder and i needed to reinstall my HA software.
I decided to do some refactoring of the code and can confirm at least that the latest version of the docker image works, because i'm using it myself.

Chibald commented 3 years ago

Additional info: Found out the images on docker hub are build using an ubuntu servers so these won't work for a Rasberry PI. I have added ARM versions on docker hub. Make sure to get the right version for your architecture and use that one. It should now work on a raspberry.

docker pull chibald/maestrogateway:v1.02arm