SelfhostedPro / selfhosted_templates

Portainer templates for selfhosted services
GNU General Public License v3.0
1.24k stars 238 forks source link

[BUG] Constant login request #260

Open Surgical71 opened 2 years ago

Surgical71 commented 2 years ago

DashMachine requests login again at random times. I am connecting to it directly and not via a proxy.

Expected behavior Not being asked to constantly log in.

Screenshots image

Portainer Logs

[2022-05-31 14:54:06,175] ERROR in app: Exception on /load_data_source [GET] Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app response = self.full_dispatch_request() File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request rv = self.handle_user_exception(e) File "/usr/local/lib/python3.8/site-packages/flask_restful/init.py", line 272, in error_router return original_handler(e) File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1821, in handle_user_exception reraise(exc_type, exc_value, tb) File "/usr/local/lib/python3.8/site-packages/flask/_compat.py", line 39, in reraise raise value File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1950, in full_dispatch_request rv = self.dispatch_request() File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1936, in dispatch_request return self.view_functionsrule.endpoint File "/dashmachine/dashmachine/main/routes.py", line 64, in load_data_source data = get_data_source(data_source) File "/dashmachine/dashmachine/main/utils.py", line 94, in get_data_source return platform.process() File "/dashmachine/dashmachine/platform/ping.py", line 33, in process command = ["ping", param, "1", self.resource] AttributeError: 'Platform' object has no attribute 'resource'