igabriel85 / DICE-Monitoring

IeAT Repository for H2020 DICE Project
http://www.dice-h2020.eu/
Apache License 2.0
2 stars 2 forks source link

Error when starting v2 ES Core #159

Closed igabriel85 closed 7 years ago

igabriel85 commented 7 years ago

When starting ES Core using: http://:5001/dmon/v2/overlord/core/es

Error:

Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1836, in call return self.wsgi_app(environ, start_response) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1820, in wsgi_app response = self.make_response(self.handle_exception(e)) File "/usr/local/lib/python2.7/dist-packages/flask_restful/init.py", line 270, in error_router return original_handler(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1403, in handle_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask_restful/init.py", line 267, in error_router return self.handle_error(e) File "/usr/local/lib/python2.7/dist-packages/flask_restplus/api.py", line 345, in handle_error return super(Api, self).handle_error(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1817, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1477, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python2.7/dist-packages/flask_restful/init.py", line 270, in error_router return original_handler(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1381, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python2.7/dist-packages/flask_restful/init.py", line 267, in error_router return self.handle_error(e) File "/usr/local/lib/python2.7/dist-packages/flask_restplus/api.py", line 345, in handle_error return super(Api, self).handle_error(e) File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1475, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python2.7/dist-packages/flask/app.py", line 1461, in dispatch_request return self.view_functionsrule.endpoint File "/usr/local/lib/python2.7/dist-packages/flask_restful/init.py", line 471, in wrapper resp = resource(*args, kwargs) File "/usr/local/lib/python2.7/dist-packages/flask/views.py", line 84, in view return self.dispatch_request(*args, *kwargs) File "/usr/local/lib/python2.7/dist-packages/flask_restful/init.py", line 581, in dispatch_request resp = meth(args, kwargs) File "/opt/IeAT-DICE-Repository/src/pyDMON.py", line 2266, in post esPIDf = check_proc(pidESLoc) File "/opt/IeAT-DICE-Repository/src/pyUtil.py", line 709, in check_proc pid = int(stats_pid.read()) ValueError: invalid literal for int() with base 10: ''

igabriel85 commented 7 years ago

Could be because of missing pidfile or pid in pidfile caused by non sudo permissions for dmon-controller.

igabriel85 commented 7 years ago

fixed