-
-
Notifications
You must be signed in to change notification settings - Fork 32.2k
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
Failed to fetch QNAP stats from the NAS #31994
Comments
Hey there @colinodell, mind taking a look at this issue as its been labeled with a integration ( |
Thanks for filling out the issue template! 👍 |
never mind, thx for pointing in the right direction. forgot to put
|
I have the same problem with Home Assistant release: 0.105.5 QNAP
I own a QNAP TS251 with latest firmware. |
This error is coming from the xmltodict functionality that the underlying qnapstats library uses.
I don't understand why this would be suddenly failing. Is HASS now using a different version of xmltodict which no longer has this |
Not as far as I can tell, it is not a requirement for HA. However, this version conforms with the requirements for qnapstats ( |
Thanks for checking on that, @springstan. I re-ran the I also tried to replicate this issue using @chezpaul's configuration but cannot - everything works as expected. (FWIW I'm using the alternative install method of HA Supervised on a generic Linux host myself, not on a Pi) @chezpaul or @andilge - could one of you please run |
@colinodell on my RasPi 3+ pip isn't installed, I assume you want me to run the command on the QNAP, right? Just tried enter QNAP with bash shell and got 3 times credential mismatch (no idea why). Now my laptop's IP is banned for 24 hours. I will have to retry tomorrow. I can't temporarily dis-activate the IP filter even with QNAP admin account, it refuses to accept this config @@ Somebody interested in buying that device, I get really pi***d off by it. Like chezpaul, I use model TS-251. |
Hi I ran those commands on my install of HA (docker install) and got the following results which are different to what you believe it should be bash-5.0# pip show xmltodict |
further info ran pip install qnapstats and this reinstalled qnapstats version 3 but upgraded xmltodict to version 0.12.0 ran pip install qnapstats==0.2.7 But i understand on next upgrade this will be reverted |
I also updated using pip to 0.3.0 and 0.12.0 but I still get an error.
|
@chezpaul that seems like a different error i still had issues on 0.3.0 of qnapstats |
Nope the didn't do the trick.
And I confirm that I have 0.12.0 and 0.2.7 respectively running |
Is there anything I need to do on the Qnap side that I missed maybe? |
i didnt have to touch qnap |
I also see the issue on my docker based installation. |
I think I found the reason. Some days ago I installed the hpprinter component from HACS, and today I updated it. The release notes stated that the upgrade consisted of an upgrade to the xmldict library, from 0.4 (or so) to 0.12 - after this, the QNAP sensors works again. |
@larserhardsen Good catch, can confirm this is the case here. |
@andilge has this solved your problem as well? |
Hi all, I did have the hp printer integration installed from HACS when reporting. In the mean time I've reinstalled HA from zero, have now reactivated QNAP installation and it works fine. After adding HP printer integration form HACS again I see both integrations work fine. Yes, my problem has been solved. I'll close this Issue. |
Maybe I should just add the HP Printer integration even though I don't have an HP printer. ;-) |
The problem
Constant failures fetching QNAP stats from the NAS
Environment
Problem-relevant
configuration.yaml
Traceback/Error logs
Additional information
I've seen this error on with previous firmware QTS 4.4.1.1146 build 20191206 and now, after update to most recent with QTS 4.4.1.1216 build 20200214.
The text was updated successfully, but these errors were encountered: