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

Glances no longer writes to influxDB #25

Closed
misterfickey opened this issue Jul 24, 2019 · 7 comments
Closed

Glances no longer writes to influxDB #25

misterfickey opened this issue Jul 24, 2019 · 7 comments

Comments

@misterfickey
Copy link

misterfickey commented Jul 24, 2019

Problem/Motivation

I noticed after updating hassio and all add-ons that glances is no longer writing to InfluxDB.

Expected behavior

Data continuing to be written to the database

Actual behavior

On startup of the Glances add-on in hassio, I get the following alert:
INFO: Starting Glances...
INFO: Starting NGinx...
nginx: [alert] detected a LuaJIT version which is not OpenResty's; many optimizations will be disabled and performance will be compromised (see https://github.com/openresty/luajit2 for OpenResty's LuaJIT or, even better, consider using the OpenResty releases from https://openresty.org/en/download.html)
Traceback (most recent call last):
File "/usr/bin/glances", line 11, in
load_entry_point('Glances==3.1.1', 'console_scripts', 'glances')()
File "/usr/lib/python3.7/site-packages/glances/init.py", line 140, in main
start(config=config, args=args)
File "/usr/lib/python3.7/site-packages/glances/init.py", line 106, in start
mode = GlancesMode(config=config, args=args)
File "/usr/lib/python3.7/site-packages/glances/standalone.py", line 49, in init
self.stats = GlancesStats(config=config, args=args)
File "/usr/lib/python3.7/site-packages/glances/stats.py", line 47, in init
self.load_modules(self.args)
File "/usr/lib/python3.7/site-packages/glances/stats.py", line 101, in load_modules
self.load_exports(args=args)
File "/usr/lib/python3.7/site-packages/glances/stats.py", line 179, in load_exports
config=self.config)
File "/usr/lib/python3.7/site-packages/glances/exports/glances_influxdb.py", line 60, in init
self.client = self.init()
File "/usr/lib/python3.7/site-packages/glances/exports/glances_influxdb.py", line 70, in init
ssl=(self.protocol.lower() == 'https'),
AttributeError: 'NoneType' object has no attribute 'lower'

This is Glances version 0.5.1 on Hassio version 0.96.4. I am writing to databases via other add-ons as well, those are not broken.

Steps to reproduce

Start Hassio, start Glances

Proposed changes

(If you have a proposed change, workaround or fix,
describe the rationale behind it)

GitHub
OpenResty's Branch of LuaJIT 2. Contribute to openresty/luajit2 development by creating an account on GitHub.
@addons-assistant
Copy link

👋 Thanks for opening your first issue here! If you're reporting a 🐛 bug, please make sure you include steps to reproduce it. Also, logs, error messages and information about your hardware might be usefull.

@neophitus
Copy link

Im having the same issue here :(
Any tips to solve?

@FreddyLauwers
Copy link

Can confirm same issue and errors in log.
Using:

  • Add-on version: 0.5.1
  • System: Ubuntu 18.04.2 LTS (amd64 / qemux86-64)
  • Home Assistant version: 0.96.5
  • Supervisor version: 170

@unw1red
Copy link

unw1red commented Jul 27, 2019

I can confirm same issue with Hassio on Raspberry Pi 4.

Add-on version: 0.5.1
System: hass.io (64-bit/Raspberry Pi 4)
Home Assistant version: 0.96.5
Supervisor version: 170

@madmic1314
Copy link

madmic1314 commented Jul 27, 2019

Am having the same issue - same error at line 70 as reported above.
Add-on version: 0.5.1
System: hass.io (64-bit - ESXi vm)
Home Assistant version: 0.96.5
Supervisor version: 170

@sinclairpaul
Copy link
Member

sinclairpaul commented Jul 27, 2019

The Openresty log is not relevant to the issue, actual problem seems to be caused by https://github.com/nicolargo/glances/blob/3286e83ee07fdbfb27fc80e754deccacb7bf6882/glances/exports/glances_influxdb.py#L44

Above PR should resolve by adding config to specify the protocol used.

GitHub
Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems. - nicolargo/glances

@frenck frenck closed this as completed in 291f191 Jul 28, 2019
@addons-assistant
Copy link

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@addons-assistant addons-assistant bot locked as resolved and limited conversation to collaborators Aug 27, 2019
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

6 participants