I’ve written a simple lighting automation legacy groovy app and have had a heck of time consistently getting through the install/update process without getting a ‘Something went wrong. Please try to install the SmartApp again.’ message. When I was first iterating on the app, it was often a problem in my code and live logging would spit out an exception. However, at this point, when these errors occur, there are no exceptions in the live logs. What’s odd is, without changing any code, sometimes I’ll make it through the setup pages successfully without doing anything differently than when it fails.
How can I troubleshoot this? Are there app logs for the iOS app itself that may be of use?
A couple of other things I’ve noticed regarding live logs:
- Sometimes, ALL logs for my app in Live Logging will be [TRUNCATED]. Again, no code change and suddenly, the full logs will start emitting again.
- Sometimes, some log lines appear to be missing from the live logs? For example, if there are 3 log events in code with no conditional logic gating them, I’ll sometimes see event 1 and event 3, but not event 2.
I can post code, but am first curious if there are general instabilities/issues in the aforementioned SmartThings systems (the SmartApp install process on the iOS app and live logging) that I should be aware of?