Cannot open existing dashboard.
502 Bad Gateway
On clicking reports on the kooplex homepage, following message appears insted of the list of reports:
AttributeError at /hub/worksheets
'NoneType' object has no attribute 'ports'
Request Method: GET
Request URL: http://kooplex1/hub/worksheets
Django Version: 1.9
Exception Type: AttributeError
Exception Value:
'NoneType' object has no attribute 'ports'
Exception Location: /kooplexhub/kooplexhub/kooplex/lib/dashboards.py in list_dashboards, line 152
Python Executable: /usr/bin/python3
Python Version: 3.5.2
Python Path:
['/usr/local/lib/python3.5/dist-packages/git/ext/gitdb',
'/kooplexhub/kooplexhub',
'/usr/lib/python35.zip',
'/usr/lib/python3.5',
'/usr/lib/python3.5/plat-x86_64-linux-gnu',
'/usr/lib/python3.5/lib-dynload',
'/usr/local/lib/python3.5/dist-packages',
'/usr/lib/python3/dist-packages',
'/usr/local/lib/python3.5/dist-packages/gitdb/ext/smmap']
Server time: Wed, 31 May 2017 05:21:30 -0500
Environment:
Request Method: GET
Request URL: http://kooplex1/hub/worksheets
Django Version: 1.9
Python Version: 3.5.2
Installed Applications:
('django.contrib.auth',
'django.contrib.contenttypes',
'django.contrib.sessions',
'django.contrib.sites',
'django.contrib.messages',
'django.contrib.staticfiles',
'django.contrib.admin',
'django.contrib.admindocs',
'kooplex.hub.apps.HubConfig')
Installed Middleware:
('django.middleware.common.CommonMiddleware',
'django.contrib.sessions.middleware.SessionMiddleware',
'django.middleware.csrf.CsrfViewMiddleware',
'django.contrib.auth.middleware.AuthenticationMiddleware',
'django.contrib.messages.middleware.MessageMiddleware',
'threadlocals.middleware.ThreadLocalMiddleware')
Traceback:
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in get_response
149. response = self.process_exception_by_middleware(e, request)
File "/usr/local/lib/python3.5/dist-packages/django/core/handlers/base.py" in get_response
147. response = wrapped_callback(request, *callback_args, **callback_kwargs)
File "/kooplexhub/kooplexhub/kooplex/hub/views/worksheets.py" in worksheets
27. list_of_dashboards = D.list_dashboards(request)
File "/kooplexhub/kooplexhub/kooplex/lib/dashboards.py" in list_dashboards
152. ports=dashboard_container.ports
Exception Type: AttributeError at /hub/worksheets
Exception Value: 'NoneType' object has no attribute 'ports'