Closed bugzke closed 2 years ago
@felipecrs I suppose this is related to HA Addon docker images packaging. Do you have any idea what could cause this ? @bugzke On what architecture/hardware is your HA system running ?
Architecture can be one possible issue indeed. I have only tested it on amd64.
From what I saw, the CI is only building amd64 anyway, so you have to either remove all the unsupported archs from the list:
Or to make the pipeline build them. Here is how:
https://github.com/home-assistant/addons-example/blob/main/.github/workflows/builder.yaml
I run HA on a pi3b+ aarch64
Good morning, also on my Raspberry Pi4 it gives me the same problem.
version | core-2022.3.1 |
---|---|
installation_type | Home Assistant OS |
dev | false |
hassio | true |
docker | true |
user | root |
virtualenv | false |
python_version | 3.9.9 |
os_name | Linux |
os_version | 5.10.92-v8 |
arch | aarch64 |
timezone | Europe/Rome |
Good morning @vanackej If it helps you, I added the HA addon locally on Rpi4. I replaced the Dockerfile with the v0.3.4 by adding the line: ENV RISCO_MQTT_HA_CONFIG_FILE = "/config/risco-mqtt.json" I added the build.yaml and run.sh files from V0.3.4. And the addon seems to work. Dockerfile.txt run.sh.txt build.yaml.txt
Debug Log HA log.txt
Hello, same issue here. @teruggim what do you mean for replace docker file?
Yep. Same issue here on RPI 4. Not too familiar with the alternative setup proposed @teruggim, could you elaborate the steps for us folks itching to give this a go please?
Good morning @richardcastle and @tetionet, unfortunately I don't know if it works with the latest versions because I don't use RPI4 anymore. Download repository risco-mqtt-local in zip format. Extract the risco-mqtt-local-main folder and save it via SambaShare in \IP_RPI4\addons
Download RPI4.zip Extract the Dockerfile run.sh build.yaml files inside \IP_RPI4\addons\risco-mqtt-local-main With Supervisor install as a local addon.
Good morning @richardcastle and @tetionet, unfortunately I don't know if it works with the latest versions because I don't use RPI4 anymore. Download repository risco-mqtt-local in zip format. Extract the risco-mqtt-local-main folder and save it via SambaShare in \IP_RPI4\addons
Download RPI4.zip Extract the Dockerfile run.sh build.yaml files inside \IP_RPI4\addons\risco-mqtt-local-main With Supervisor install as a local addon.
I followed this instructions, but it still fails to start on RPi4. I tried both the files from the Zip file and the individual downloads.
Any suggestions?
Good morning @richardcastle and @tetionet, unfortunately I don't know if it works with the latest versions because I don't use RPI4 anymore. Download repository risco-mqtt-local in zip format. Extract the risco-mqtt-local-main folder and save it via SambaShare in \IP_RPI4\addons Download RPI4.zip Extract the Dockerfile run.sh build.yaml files inside \IP_RPI4\addons\risco-mqtt-local-main With Supervisor install as a local addon.
I followed this instructions, but it still fails to start on RPi4. I tried both the files from the Zip file and the individual downloads.
Any suggestions?
Unfortunately no success on RPI3B+ either
Same issue here on rpi4 :( Pity its not straigt forward
Multi architecture build is not yet in place. I don't have time currently to set it up, but pull requests are welcome 👍
Le dim. 3 juil. 2022 à 22:04, skank01 @.***> a écrit :
Same issue here on rpi4 :( Pity its not straigt forward
— Reply to this email directly, view it on GitHub https://github.com/vanackej/risco-mqtt-local/issues/27#issuecomment-1173162733, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAECPHIA722DZLCMUTW3UK3VSHW3RANCNFSM5P2Y2MKA . You are receiving this because you were mentioned.Message ID: @.***>
@vanackej it seems that @teruggim has solved or found a fix for it, can you include it?
The fix provided by @teruggim is more a workaround than a fix I can integrate in the addon itself. I just realeased v0.4.3 with an attempt to provide aarch64 compatibility. Can someone give it a try and let me know ?I don't have any raspberry setup to try by myself
I think we have a winner! Add-on starting (I guess the error is as expected as I haven't set up the config file yet, will try to set it up further when I have some more time)
Loading config from: /config/risco-mqtt.json
Startup error SyntaxError: /config/risco-mqtt.json: Unexpected token / in JSON at position 21
at parse (
Good to know. You should be able to add the conf file now
Excuse if it is a stupid question, but where is version 0.4.3? Under releases the newest option shows 0.4.2/
Thank you!
EDIT: Nevermind - found it I was using the local build of 0.4.2 for RPi.
I can confirm this now works on RPi4. Thank you!
Ok, so I close this issue for now, please reopen specific issues if needed
Describe the bug I'm stuck in getting the add-on to run in Home Assistant. Installation of the add-on works fine, and even got an update notification a few days ago, so that seems ok. However when I try to start the add-on, I immediately get errors that it fails to start. risco-mqtt.json is in place in the config folder, but whether or not it is there, same result. Any idea what I'm missing here? The logs don't tell much, except it fails to start.
Configuration
Logs In the add-on log;
In the HA supervisor log: