8000 logs filling with influxdb-related errors after 0.47 update · Issue #8136 · home-assistant/core · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

logs filling with influxdb-related errors after 0.47 update #8136

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

Closed
vbw-001 opened this issue Jun 21, 2017 · 2 comments
Closed

logs filling with influxdb-related errors after 0.47 update #8136

vbw-001 opened this issue Jun 21, 2017 · 2 comments

Comments

@vbw-001
Copy link
vbw-001 commented Jun 21, 2017

HASS 0.47.0
Python 3.4.2

influxdb-related issue (I presume) - EDIT: also possibly the BOM Australia sensor component.

After upgrade, logs show the traceback below, but there aren't any obvious consequences of this - data is still being saved to the database as far as I can tell. There were no similar errors prior to the upgrade.
EDIT - on closer inspection, weather data from the BOM component is not being saved since the upgrade, though appears correctly in the history component.

2017-06-21 20:06:09 ERROR (Thread-7) [homeassistant.core] Error doing job: Future exception was never retrieved
Traceback (most recent call last):
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/influxdb.py", line 164, in influx_event_listener
    json_body[0]['fields'][key] = float(value)
TypeError: float() argument must be a string or a number, not 'datetime.datetime'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.4/concurrent/futures/thread.py", line 54, in run
    result = self.fn(*self.args, **self.kwargs)
  File "/srv/homeassistant/lib/python3.4/site-packages/homeassistant/components/influxdb.py", line 170, in influx_event_listener
    non_decimal.sub('', value))
TypeError: expected string or buffer

@azogue
Copy link
Member
azogue commented Jun 21, 2017

I think this is the same as #8042 or #8086, and was fixed (but not released) in #8080.

Could you test the dev branch to check it is fixed? (or only the changes in homeassistant/components/influxdb.py

@vbw-001
Copy link
Author
vbw-001 commented Jun 21, 2017

OK, upgraded to 0.48.0.dev0 and no more errors. This has done the trick!

Apologies for not noticing the similar issues myself, and thanks for the support.

@vbw-001 vbw-001 closed this as completed Jun 21, 2017
@home-assistant home-assistant locked and limited conversation to collaborators Oct 20, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
0