Skip to content
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 #31985

Closed
andilge opened this issue Feb 19, 2020 · 5 comments
Closed

Failed to fetch QNAP stats from the NAS #31985

andilge opened this issue Feb 19, 2020 · 5 comments

Comments

@andilge
Copy link

andilge commented Feb 19, 2020

Home Assistant release (hass --version):
0.105.5

Python release (python3 --version):
Python 3.7.6

Component/platform:
QNAP

Description of problem:
Failed to fetch QNAP stats from the NAS

Expected:
no errors

Problem-relevant configuration.yaml entries and steps to reproduce:
`

  • platform: qnap
    host: 192.168.244.20
    port: 446
    ssl: true
    verify_ssl: false
    username: !secret qnap_username
    password: !secret qnap_password
    monitored_conditions:
    • status
    • cpu_usage
    • memory_percent_used
    • volume_percentage_used
    • cpu_temp
    • system_temp
    • network_link_status
    • network_tx
    • network_rx
      `
      Reproducability:
      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.

Trackback
2020-02-19 14:56:47 ERROR (SyncWorker_4) [homeassistant.components.qnap.sensor] Failed to fetch QNAP stats from the NAS Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/components/qnap/sensor.py", line 191, in update self.data["system_stats"] = self._api.get_system_stats() File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 207, in get_system_stats force_list=("DNS_LIST") File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 67, in _get_url self._init_session() File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 49, in _init_session if self._login() is False: File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 57, in _login result = self._execute_post_url("authLogin.cgi", data, False) File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 98, in _execute_post_url return self._handle_response(resp, **kwargs) File "/usr/local/lib/python3.7/site-packages/qnapstats/qnap_stats.py", line 110, in _handle_response data = xmltodict.parse(resp.content, force_list=force_list)['QDocRoot'] File "/usr/local/lib/python3.7/site-packages/xmltodict.py", line 173, in parse handler = _DictSAXHandler(*args, **kwargs)

@probot-home-assistant
Copy link

Hey there @colinodell, mind taking a look at this issue as its been labeled with a integration (qnap) you are listed as a codeowner for? Thanks!

@springstan
Copy link
Member

Please fill out the new issue template, thanks :)

@andilge
Copy link
Author

andilge commented Feb 19, 2020

can't find "new issue template", pls point me in the right direction.

@springstan
Copy link
Member

Click on New Issue and then select Report a bug with Home Assistant. Please copy and paste the displayed template into this issue and fill it out.

@andilge
Copy link
Author

andilge commented Feb 19, 2020

closing this issue to to bad template. It's reopened with #31994.

@andilge andilge closed this as completed Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants