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

Failing on startup #24

Closed
samcro1967 opened this issue Feb 3, 2019 · 2 comments
Closed

Failing on startup #24

samcro1967 opened this issue Feb 3, 2019 · 2 comments

Comments

@samcro1967
Copy link

My speedtest script stopped working on 1/26/19 at 22:30 PM CST. Below is the error in the logs when it tries to run, The server filed in my config.ini is blank. I am running telegraf and data from it is still being inserted into influxDB so I do not believe it is a DB problem.

File "/src/influxspeedtest/config/configmanager.py", line 37, in _load_config_values,
self.logging_level = self.config['LOGGING'].get('Level', fallback='debug'),
File "/usr/local/lib/python3.7/configparser.py", line 958, in getitem,
raise KeyError(key),
KeyError: 'LOGGING',
Loading Configuration File config.ini,
Traceback (most recent call last):,
File "/src/influxspeedtest.py", line 3, in ,
from influxspeedtest.InfluxdbSpeedtest import InfluxdbSpeedtest,
File "/src/influxspeedtest/InfluxdbSpeedtest.py", line 9, in ,
from influxspeedtest.common import log,
File "/src/influxspeedtest/common/init.py", line 1, in ,
from .utils import log,
File "/src/influxspeedtest/common/utils.py", line 5, in ,
from influxspeedtest.config import config,
File "/src/influxspeedtest/config/init.py", line 10, in ,
config = ConfigManager(config),
File "/src/influxspeedtest/config/configmanager.py", line 19, in init,
self._load_config_values(),
File "/src/influxspeedtest/config/configmanager.py", line 37, in _load_config_values,
self.logging_level = self.config['LOGGING'].get('Level', fallback='debug'),
File "/usr/local/lib/python3.7/configparser.py", line 958, in getitem,
raise KeyError(key),

@barrycarey
Copy link
Owner

barrycarey commented Feb 3, 2019

Looks like the logging section is missing from the config. This was a bug in a commit from a few days ago.

Ad this to the bottom of the config:

[LOGGING]
Level = info

@samcro1967
Copy link
Author

That fixed it. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants