{"action":"created","issue":{"url":"https://api.github.com/repos/crits/crits/issues/475","labels_url":"https://api.github.com/repos/crits/crits/issues/475/labels{/name}","comments_url":"https://api.github.com/repos/crits/crits/issues/475/comments","events_url":"https://api.github.com/repos/crits/crits/issues/475/events","html_url":"https://github.com/crits/crits/issues/475","id":72276344,"number":475,"title":"AttributeError: 'WSGIRequest' object has no attribute 'user'","user":{"login":"sdsponger","id":6786168,"avatar_url":"https://avatars.githubusercontent.com/u/6786168?v=3","gravatar_id":"","url":"https://api.github.com/users/sdsponger","html_url":"https://github.com/sdsponger","followers_url":"https://api.github.com/users/sdsponger/followers","following_url":"https://api.github.com/users/sdsponger/following{/other_user}","gists_url":"https://api.github.com/users/sdsponger/gists{/gist_id}","starred_url":"https://api.github.com/users/sdsponger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sdsponger/subscriptions","organizations_url":"https://api.github.com/users/sdsponger/orgs","repos_url":"https://api.github.com/users/sdsponger/repos","events_url":"https://api.github.com/users/sdsponger/events{/privacy}","received_events_url":"https://api.github.com/users/sdsponger/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":22,"created_at":"2015-04-30T20:42:34Z","updated_at":"2015-05-04T13:31:07Z","closed_at":null,"body":"Things were up and running fine, but as soon as I added the crits_services dir and restarted apache2, I haven't been able to log back into the GUI.  It just throws a 500 Internal Server Error. \r\n\r\nMy apache2 error.log and crits.log are below.\r\n\r\nThanks for the help on this!\r\n\r\ntail -f /var/log/apache2/error.log \r\n[Thu Apr 30 12:23:39.670593 2015] [:error] [pid 944:tid 140586032006912]\r\n[client 192.168.100.101:64491]     resolver, sys.exc_info())\r\n[Thu Apr 30 12:23:39.670603 2015] [:error] [pid 944:tid 140586032006912]\r\n[client 192.168.100.101:64491]   File\r\n\"/usr/local/lib/python2.7/dist-packages/django/core/handlers/base.py\", line\r\n236, in handle_uncaught_exception [Thu Apr 30 12:23:39.670660 2015] [:error]\r\n[pid 944:tid 140586032006912]\r\n[client 192.168.100.101:64491]     return callback(request, **param_dict)\r\n[Thu Apr 30 12:23:39.670683 2015] [:error] [pid 944:tid 140586032006912]\r\n[client 192.168.100.101:64491]   File \"/data/crits/crits/core/errors.py\",\r\nline 17, in custom_500\r\n[Thu Apr 30 12:23:39.670701 2015] [:error] [pid 944:tid 140586032006912]\r\n[client 192.168.100.101:64491]     RequestContext(request))\r\n[Thu Apr 30 12:23:39.670712 2015] [:error] [pid 944:tid 140586032006912]\r\n[client 192.168.100.101:64491]   File\r\n\"/usr/local/lib/python2.7/dist-packages/django/template/context.py\", line\r\n169, in __init__ [Thu Apr 30 12:23:39.670727 2015] [:error] [pid 944:tid\r\n140586032006912]\r\n[client 192.168.100.101:64491]     self.update(processor(request))\r\n[Thu Apr 30 12:23:39.670737 2015] [:error] [pid 944:tid 140586032006912]\r\n[client 192.168.100.101:64491]   File \"/data/crits/crits/core/views.py\",\r\nline 1056, in base_context\r\n[Thu Apr 30 12:23:39.670751 2015] [:error] [pid 944:tid 140586032006912]\r\n[client 192.168.100.101:64491]     if request.user.is_authenticated():\r\n[Thu Apr 30 12:23:39.670767 2015] [:error] [pid 944:tid 140586032006912]\r\n[client 192.168.100.101:64491] AttributeError: 'WSGIRequest' object has no\r\nattribute 'user'\r\n\r\ntail -f /data/crits/logs/crits.log\r\nWARNING 2015-04-30 13:00:03,754 crits.services.core Failed to import service (shodan_service): No module named shodan\r\nWARNING 2015-04-30 13:00:03,756 crits.services.core Failed to import service (pyinstaller_service): No module named PyInstaller.cliutils.archive_viewer\r\nWARNING 2015-04-30 13:00:03,756 crits.services.core Failed to import service (unswf_service): No module named pylzma\r\nWARNING 2015-04-30 13:00:03,758 crits.services.core Failed to import service (pdfinfo_service): No module named numpy\r\nWARNING 2015-04-30 13:00:03,759 crits.services.core Failed to import service (chminfo_service): No module named chm\r\nWARNING 2015-04-30 13:00:03,767 crits.services.core Failed to import service (shodan_service): No module named shodan\r\nWARNING 2015-04-30 13:00:03,769 crits.services.core Failed to import service (pyinstaller_service): No module named PyInstaller.cliutils.archive_viewer\r\nWARNING 2015-04-30 13:00:03,769 crits.services.core Failed to import service (unswf_service): No module named pylzma\r\nWARNING 2015-04-30 13:00:03,771 crits.services.core Failed to import service (pdfinfo_service): No module named numpy\r\nWARNING 2015-04-30 13:00:03,772 crits.services.core Failed to import service (chminfo_service): No module named chm\r\n"},"comment":{"url":"https://api.github.com/repos/crits/crits/issues/comments/98704953","html_url":"https://github.com/crits/crits/issues/475#issuecomment-98704953","issue_url":"https://api.github.com/repos/crits/crits/issues/475","id":98704953,"user":{"login":"mgoffin","id":260873,"avatar_url":"https://avatars.githubusercontent.com/u/260873?v=3","gravatar_id":"","url":"https://api.github.com/users/mgoffin","html_url":"https://github.com/mgoffin","followers_url":"https://api.github.com/users/mgoffin/followers","following_url":"https://api.github.com/users/mgoffin/following{/other_user}","gists_url":"https://api.github.com/users/mgoffin/gists{/gist_id}","starred_url":"https://api.github.com/users/mgoffin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mgoffin/subscriptions","organizations_url":"https://api.github.com/users/mgoffin/orgs","repos_url":"https://api.github.com/users/mgoffin/repos","events_url":"https://api.github.com/users/mgoffin/events{/privacy}","received_events_url":"https://api.github.com/users/mgoffin/received_events","type":"User","site_admin":false},"created_at":"2015-05-04T13:31:07Z","updated_at":"2015-05-04T13:31:07Z","body":"https://github.com/crits/crits/wiki/Production-grade-CRITs-install#optional-configure-crits-via-management-command\n\nOn Mon, May 4, 2015 at 9:28 AM, sdsponger <notifications@github.com> wrote:\n\n> Can you please let me know how to turn it back on since I can't log into\n> the GUI. Thanks!\n>\n> On Monday, May 4, 2015, dsnellgrove <notifications@github.com> wrote:\n>\n> > Turn DEBUG back on. If this resolves your error than the issue is very\n> > likely your allowed_host setting (which is ignored when DEBUG is enabled)\n> > or a similar item.\n> >\n> > —\n> > Reply to this email directly or view it on GitHub\n> > <https://github.com/crits/crits/issues/475#issuecomment-98677068>.\n>\n> >\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/crits/crits/issues/475#issuecomment-98704311>.\n>\n"}}