Open Phil12026 opened 7 years ago
From the stack trace, looks like error is caused by config having an empty carbon
section. Can just remove that section if it's not needed, or just bad config maybe. Or you can show your config.
Removing that line seems to have fixed it. Now on systemctl status I'm getting,
raphite-api.service - Graphite-API service Loaded: loaded (/usr/lib/systemd/system/graphite-api.service; enabled; vendor preset: disabled) Active: active (running) since Fri 2017-08-04 18:37:38 CDT; 2min 7s ago Process: 2920 ExecStop=/bin/kill -s TERM $MAINPID (code=exited, status=1/FAILURE) Main PID: 3041 (gunicorn) CGroup: /system.slice/graphite-api.service ├─3041 /usr/bin/python2 /usr/bin/gunicorn -w2 graphite_api.app:app ├─3046 /usr/bin/python2 /usr/bin/gunicorn -w2 graphite_api.app:app └─3047 /usr/bin/python2 /usr/bin/gunicorn -w2 graphite_api.app:app
gunicorn[3041]: [2017-08-04 18:37:38 +0000] [3046] [INFO] Booting worker with pid: 3046 gunicorn[3041]: [2017-08-04 18:37:38 +0000] [3047] [INFO] Booting worker with pid: 3047 gunicorn[3041]: {"path": "/etc/graphite-api.yaml", "event": "loading configuration"} gunicorn[3041]: {"path": "/etc/graphite-api.yaml", "event": "loading configuration"} gunicorn[3041]: {"index_path": "/srv/graphite/index", "event": "reading index data"} gunicorn[3041]: {"index_path": "/srv/graphite/index", "event": "reading index data"} gunicorn[3041]: {"index_path": "/srv/graphite/index", "path": "/srv/graphite/index", ...dex"} gunicorn[3041]: {"index_path": "/srv/graphite/index", "path": "/srv/graphite/index", ...dex"}
I have yet to setup collectD to test it, The one thing that worries me is the "(code=exited, status=1/FAILURE)", however the proccess shows it as still running. I'm not familular with gunicorn so unsure if this is normal. Either way thanks so much for your help.
So I'm trying to install graphite API on centos to talk between Graphite and Grafana, all on the same VM. I keep getting the error:
Unit graphite-api.service has begun starting up. gunicorn[2828]: [2017-08-04 17:33:44 +0000] [2828] [INFO] Starting gunicorn 19.7.1 gunicorn[2828]: [2017-08-04 17:33:44 +0000] [2828] [INFO] Listening at: unix:/run/graphite-ap gunicorn[2828]: [2017-08-04 17:33:44 +0000] [2828] [INFO] Using worker: sync gunicorn[2828]: [2017-08-04 17:33:44 +0000] [2833] [INFO] Booting worker with pid: 2833 gunicorn[2828]: [2017-08-04 17:33:44 +0000] [2834] [INFO] Booting worker with pid: 2834 gunicorn[2828]: {"path": "/etc/graphite-api.yaml", "event": "loading configuration"} gunicorn[2828]: Traceback (most recent call last): gunicorn[2828]: File "/usr/lib/python2.7/site-packages/graphite_api/app.py", line 68, in <mod gunicorn[2828]: configure(app) gunicorn[2828]: File "/usr/lib/python2.7/site-packages/graphite_api/config.py", line 132, in gunicorn[2828]: if 'hashing_keyfunc' in config['carbon']: gunicorn[2828]: TypeError: argument of type 'NoneType' is not iterable gunicorn[2828]: {"path": "/etc/graphite-api.yaml", "event": "loading configuration"} gunicorn[2828]: Traceback (most recent call last): gunicorn[2828]: File "/usr/lib/python2.7/site-packages/graphite_api/app.py", line 68, in <mod gunicorn[2828]: configure(app) gunicorn[2828]: File "/usr/lib/python2.7/site-packages/graphite_api/config.py", line 132, in gunicorn[2828]: if 'hashing_keyfunc' in config['carbon']: gunicorn[2828]: TypeError: argument of type 'NoneType' is not iterable gunicorn[2828]: [2017-08-04 17:33:45 +0000] [2828] [INFO] Shutting down: Master gunicorn[2828]: [2017-08-04 17:33:45 +0000] [2828] [INFO] Reason: Worker failed to boot. systemd[1]: graphite-api.service: main process exited, code=exited, status=3/NOTIMPLEMENTED.
Not quite sure why app.py is causing the issue it is.. Thanks in advance for any help.