Issue
Monitor menu is not listing the running applications by user and project.
You may see the following lines in the log file, /opt/wakari/wakari-server/var/log/wakari/server.log
:
DEBUG: Starting new HTTPS connection (1): aen-gateway-dev.dev.schwab.com [connectionpool.py:818]
DEBUG: https://aen-gateway-dev.dev.schwab.com:8089 "GET /api/apps-status HTTP/1.1" 200 45907 [connectionpool.py:395]
ERROR: Error: 'NoneType' object has no attribute '__getitem__' [views.py:141]
DEBUG: admin.monitor_jobs 0.0855982303619 [side_effects.py:26]
Solution
You need to look for the duplicate user accounts and delete them. It may happen when an active project was owned by an inactive user, one of the duplicates.
If that does not resolves your issue, upgrade to 4.2.2 or do a small code change in/opt/wakari/wakari-server/lib/python2.7/site-packages/wk_server/blueprints/admin/views.py
:
Change the following:
app_data['access'] = db.get_project(db.get_user(app_data['userName']), ##Line 126
app_data['projectName'])['access'] ##Line 128
To:
project = db.get_project(db.get_user(app_data['userName']),
app_data['projectName'])
Rename app_data['access']
variable to project
and remove ['access']
from app_data['projectName'])['access']
Then restart the wakari-server using:
sudo service wakari-server restart
and login to AEN to see the running applications from Monitor menu.