{"action":"opened","issue":{"url":"https://api.github.com/repos/guardian/alerta/issues/273","repository_url":"https://api.github.com/repos/guardian/alerta","labels_url":"https://api.github.com/repos/guardian/alerta/issues/273/labels{/name}","comments_url":"https://api.github.com/repos/guardian/alerta/issues/273/comments","events_url":"https://api.github.com/repos/guardian/alerta/issues/273/events","html_url":"https://github.com/guardian/alerta/issues/273","id":186574187,"number":273,"title":"problem installing, web ui working but api not","user":{"login":"yosefy","id":12940013,"avatar_url":"https://avatars.githubusercontent.com/u/12940013?v=3","gravatar_id":"","url":"https://api.github.com/users/yosefy","html_url":"https://github.com/yosefy","followers_url":"https://api.github.com/users/yosefy/followers","following_url":"https://api.github.com/users/yosefy/following{/other_user}","gists_url":"https://api.github.com/users/yosefy/gists{/gist_id}","starred_url":"https://api.github.com/users/yosefy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yosefy/subscriptions","organizations_url":"https://api.github.com/users/yosefy/orgs","repos_url":"https://api.github.com/users/yosefy/repos","events_url":"https://api.github.com/users/yosefy/events{/privacy}","received_events_url":"https://api.github.com/users/yosefy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-01T16:08:08Z","updated_at":"2016-11-01T16:08:08Z","closed_at":null,"body":"hi i am getting this:\r\ncan you help pls?\r\n\r\ninstalled with a script from repo\r\ntryed both ubuntu14, ubuntu 16\r\n\r\n[Tue Nov 01 12:04:03.174007 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266] mod_wsgi (pid=25306): Target WSGI script '/var/www/api.wsgi' cannot be loaded as Python module.\r\n[Tue Nov 01 12:04:03.174112 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266] mod_wsgi (pid=25306): Exception occurred processing WSGI script '/var/www/api.wsgi'.\r\n[Tue Nov 01 12:04:03.174280 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266] Traceback (most recent call last):\r\n[Tue Nov 01 12:04:03.174653 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]   File \"/var/www/api.wsgi\", line 4, in <module>\r\n[Tue Nov 01 12:04:03.174708 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]     from alerta.app import app as application\r\n[Tue Nov 01 12:04:03.174723 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]   File \"/opt/alerta/lib/python2.7/site-packages/alerta/app/__init__.py\", line 96, in <module>\r\n[Tue Nov 01 12:04:03.174887 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]     db = Mongo()\r\n[Tue Nov 01 12:04:03.174906 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]   File \"/opt/alerta/lib/python2.7/site-packages/alerta/app/database.py\", line 30, in __init__\r\n[Tue Nov 01 12:04:03.174928 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]     self.connect()\r\n[Tue Nov 01 12:04:03.174970 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]   File \"/opt/alerta/lib/python2.7/site-packages/alerta/app/database.py\", line 91, in connect\r\n[Tue Nov 01 12:04:03.174994 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]     self._create_indexes()\r\n[Tue Nov 01 12:04:03.175006 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]   File \"/opt/alerta/lib/python2.7/site-packages/alerta/app/database.py\", line 95, in _create_indexes\r\n[Tue Nov 01 12:04:03.175025 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]     self._db.alerts.create_index([('environment', ASCENDING), ('resource', ASCENDING), ('event', ASCENDING)], unique=True)\r\n[Tue Nov 01 12:04:03.175038 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]   File \"/opt/alerta/lib/python2.7/site-packages/pymongo/collection.py\", line 1387, in create_index\r\n[Tue Nov 01 12:04:03.175193 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]     self.__create_index(keys, kwargs)\r\n[Tue Nov 01 12:04:03.175213 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]   File \"/opt/alerta/lib/python2.7/site-packages/pymongo/collection.py\", line 1294, in __create_index\r\n[Tue Nov 01 12:04:03.175262 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]     with self._socket_for_writes() as sock_info:\r\n[Tue Nov 01 12:04:03.175280 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]   File \"/usr/lib/python2.7/contextlib.py\", line 17, in __enter__\r\n[Tue Nov 01 12:04:03.175331 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]     return self.gen.next()\r\n[Tue Nov 01 12:04:03.175373 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]   File \"/opt/alerta/lib/python2.7/site-packages/pymongo/mongo_client.py\", line 762, in _get_socket\r\n[Tue Nov 01 12:04:03.175416 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]     server = self._get_topology().select_server(selector)\r\n[Tue Nov 01 12:04:03.175433 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]   File \"/opt/alerta/lib/python2.7/site-packages/pymongo/topology.py\", line 210, in select_server\r\n[Tue Nov 01 12:04:03.175465 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]     address))\r\n[Tue Nov 01 12:04:03.175545 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]   File \"/opt/alerta/lib/python2.7/site-packages/pymongo/topology.py\", line 186, in select_servers\r\n[Tue Nov 01 12:04:03.175572 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266]     self._error_message(selector))\r\n[Tue Nov 01 12:04:03.175616 2016] [:error] [pid 25306:tid 140499057919744] [remote 192.168.101.9:59266] ServerSelectionTimeoutError: No servers found yet"}}
{"actor":{"display_login":"yosefy"}}