-
Notifications
You must be signed in to change notification settings - Fork 68
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature Request]: Add more specific error message on database timeout #411
Comments
Not sure how to do that as ioBroker gives no specific output with the actual command i use for database check. Any ideas? Regards, |
Hi Andre, sorry for keep you waiting. Tbh I am really low level linux user, so I hunted the script through ChatGPT, he suggested this at a first glace:
with the hints:
I am not sure whether it is possible to access the exit status in the way chat GPT suggests. Another Thing is, if we know the timeout, we may just run a stopwatch and assume that it depended on a timeout if the database connection is exiting after the timeout value from /opt/iobroker/iobroker-data |
I took a look into the startup script. It turned out, that there is still a logging output when database check fails. But until now, this was only shown when debug log was active.
I changed this to be displayed every time the check fails. I do not plan to put more energy into this. Regards, |
Description / Beschreibung
In short: Please add a specific debug message if database connection fails due timeout.
In long:
After installing a new adapter I needed to connect an USB device, so I changed the docker config and restarted the container. Afterwards the system did not work any longer, error message was:
Checking Database connection... Failed. Please check your configuration and try again.
Set ENV
DEBUG
to true to get more details, but forgot to safe the outputs.Switched some versions of the image (started from my stable running 8.1.0, went to latest / 9.0.1 and back).
Then set up ENV variables for
IOB_STATESDB_TYPE
/IOB_OBJECTSDB_TYPE
/ ff to json and corresponding values. Ran into failed DB check again.Found this post in ioBroker forums, changed
connectTimeout
inobjects
andstates
iniobroker/iobroker-data/iobroker.json
and then ioBroker ran again.Took me quite a while to figure this out. I am not sure if there is a hint somewhere in the docs - did not find it yet. So I am requesting an additional debug / error message after checking db type / connection and running in an error due timeout.
Thank you for the really good work ( :) ).
The text was updated successfully, but these errors were encountered: