indiefan / home_assistant_nanit

Docker container for mirroring nanit feed suitable for Home Assistant integration
61 stars 12 forks source link

exec /app/scripts/init-nanit.sh: exec format error #18

Open M0LTE opened 2 months ago

M0LTE commented 2 months ago
$ docker run -it -v /root/.docker-conf/nanit:/data --entrypoint=/app/scripts/init-nanit.sh indiefan/nanit
exec /app/scripts/init-nanit.sh: exec format error
$ uname -a
Linux services-pi-2 5.4.0-1115-raspi #127-Ubuntu SMP PREEMPT Wed Aug 7 14:38:47 UTC 2024 aarch64 aarch64 aarch64 GNU/Linux

Anything I can do to assist?

M0LTE commented 2 months ago

Out of curiosity I just tried building the docker image from the Dockerfile, but the base image is... indiefan/nanit 😕

and it also fails with exec format error

cstraface commented 1 month ago

Yeah I'm having the same issue. @M0LTE you're running on a Pi?

absreda commented 2 weeks ago

Same here - and yes, I'm running a Pi5

absreda commented 2 weeks ago

Nevermind...got it to work by running the script directly on the machine and copying the output file to the mounted /data folder.

Needed to install jq (apt-get install jq) to parse the json and change the path in the last line of the script to output the file in the right place.

tonyjly commented 2 weeks ago

Opened PR #19 with the proposed change to automatically install jq if it is missing.