-
Notifications
You must be signed in to change notification settings - Fork 27
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
Proble at startup of service #107
Comments
@picoroma Can you, please, attach the file you are using? |
@picoroma Remove the last comma after |
@picoroma Most probably you still have your configuration file wrong. What do you have in?:
This are just examples, and the files must exist. If you want to use the exporter as a daemon, these files must have absolute paths, as the executable is in the binaries folder. You could try with something like this:
**But be sure that the logging config file ( |
Seems a problem of user\pswd\ port. |
Can be a problem because I use a " ! " as last char of my SYSTEM DB PSWD ? |
Hi @picoroma , Otherwise, we might be able to assist you when we have some more time. |
I have installed the exporter using zypper
Installation was fine.
After created the config file (config.json) I try to start with the sequence:
systemctl daemon-reload
systemctl start prometheus-hanadb_exporter@config
systemctl enable prometheus-hanadb_exporter@config
systemctl status prometheus-hanadb_exporter@config
systemctl stop prometheus-hanadb_exporter@config
systemctl restart prometheus-hanadb_exporter@config
But the service do not start. Below is the error
Traceback (most recent call last):
File "/usr/bin/hanadb_exporter", line 9, in
main.run()
File "/usr/lib/python3.6/site-packages/hanadb_exporter/main.py", line 110, in run
config = parse_config(config_file)
File "/usr/lib/python3.6/site-packages/hanadb_exporter/main.py", line 42, in parse_config
json_data = json.load(f_ptr)
File "/usr/lib64/python3.6/json/init.py", line 299, in load
parse_constant=parse_constant, object_pairs_hook=object_pairs_hook, **kw)
File "/usr/lib64/python3.6/json/init.py", line 354, in loads
return _default_decoder.decode(s)
File "/usr/lib64/python3.6/json/decoder.py", line 339, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
File "/usr/lib64/python3.6/json/decoder.py", line 355, in raw_decode
obj, end = self.scan_once(s, idx)
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 13 column 3 (char 260)
My python version is 3.6.15
My OS version is: SUSE Linux Enterprise Server 15 SP3
The text was updated successfully, but these errors were encountered: