From 454e5f3d9cc94efc7dcdc1ee05c8a29fa5c7d4e7 Mon Sep 17 00:00:00 2001 From: Volker Theile Date: Fri, 26 Jan 2018 14:44:57 +0100 Subject: [PATCH] mgr/dashboard_v2: Disable CherryPi autoreload feature. It does not work, either with the below code to fix the error ``` 2018-01-26 13:21:15.779 7fa454add700 -1 log_channel(cluster) log [ERR] : Unhandled exception from module 'dashboard_v2' while running on mgr.x: execv() arg 2 must not be empty 2018-01-26 13:21:15.779 7fa454add700 -1 dashboard_v2.serve: File "/ceph/src/pybind/mgr/dashboard_v2/module.py", line 112, in serve ``` ``` def _get_true_argv(): return sys.argv[:] cherrypy.engine._get_true_argv = _get_true_argv ``` Signed-off-by: Volker Theile --- src/pybind/mgr/dashboard_v2/module.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/pybind/mgr/dashboard_v2/module.py b/src/pybind/mgr/dashboard_v2/module.py index 1e23845d89bf6..a7651ab22cb05 100644 --- a/src/pybind/mgr/dashboard_v2/module.py +++ b/src/pybind/mgr/dashboard_v2/module.py @@ -54,6 +54,7 @@ class Module(MgrModule): cherrypy.config.update({ 'server.socket_host': server_addr, 'server.socket_port': int(server_port), + 'engine.autoreload.on': False }) cherrypy.tools.authenticate = cherrypy.Tool('before_handler', Auth.check_auth) -- 2.39.5