I mostly use the IOS OpenHAB app, and I started noticing a red bar on the bottom adding an error message.
In fact there are a few that pop up. It happens in at least every 10th time I use the app.
Error. Request failed, service unavailable (503)
And there is a (500) that also pops up. Sometimes the “sitemap” in my IOS app dissapears, like when the server is unreachable.
As I was typing this, I used BASIC UI a few times and the IOS app to invoke the errors. While I got “service unavailable 503” on the IOS app, neither the openhab.log or events.log logged anything.
On BASIC UI, I got a “SSE subscription failed: running in fallback mode” error, and nothing in the openhab.log or events.log.
hope that helps.
(BTW, I also cleared the cache again, but no luck.)
I did as you suggested re debug. I cannot see anything weird, here is the last 13 seconds of logs. During this time I did manage to invoke the error once from the IOS app. (Sorry it is nasty )
On my mobile so not easy to see the wood from the trees in the log but looks like you have more than just the core.karaf debug enabled given the amount of data.
I was only expecting a few lines relating to bindings and
This suggests oh is repeatedly installing the gpio binding, are you using that binding and do you define it/them in the addons.cfg or via UI?
I had a similar issue, 3 different bindings, and had to remove them one at a time and re-add until the “Installed” messages stopped after which I had no more 500/503 errors using the IOS app.
Your symptoms appear very similar mine but I’d be tempted to turn off the http debug while removing/re-adding any bindings as the log is very busy.
Hi Kevin,
You nailed it, it is the GPIO binding. I did a grep for “openhab-binding-gpio” while tailing the openhab.log file. Each time I got the the error to occur, the log entry appeared.
I have the “binding-gpio1 - 1.13.0” installed, but there are no config to it in addons.cfg and I don’t have a gpio.cfg in the /etc/openhab2/services directories.
The only config I have is the two items in my items file.
AFAIK you can keep using the old one (mqtt1) while migrating to the new one (mqtt).
If you don’t have plans to migrate anytime soon you can again remove the new one (mqtt).
If you’ve succesfully migrated from the old one to the new one you can remove the old one (mqtt1).
If you don’t use MQTT at all you can remove both (mqtt, mqtt1).