{"action":"created","issue":{"url":"https://api.github.com/repos/MozillaFoundation/mofo-devops/issues/114","labels_url":"https://api.github.com/repos/MozillaFoundation/mofo-devops/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/MozillaFoundation/mofo-devops/issues/114/comments","events_url":"https://api.github.com/repos/MozillaFoundation/mofo-devops/issues/114/events","html_url":"https://github.com/MozillaFoundation/mofo-devops/issues/114","id":95085749,"number":114,"title":"Source search returning 500 errors for some queries","user":{"login":"jbuck","id":578466,"avatar_url":"https://avatars.githubusercontent.com/u/578466?v=3","gravatar_id":"","url":"https://api.github.com/users/jbuck","html_url":"https://github.com/jbuck","followers_url":"https://api.github.com/users/jbuck/followers","following_url":"https://api.github.com/users/jbuck/following{/other_user}","gists_url":"https://api.github.com/users/jbuck/gists{/gist_id}","starred_url":"https://api.github.com/users/jbuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbuck/subscriptions","organizations_url":"https://api.github.com/users/jbuck/orgs","repos_url":"https://api.github.com/users/jbuck/repos","events_url":"https://api.github.com/users/jbuck/events{/privacy}","received_events_url":"https://api.github.com/users/jbuck/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/MozillaFoundation/mofo-devops/milestones/9","html_url":"https://github.com/MozillaFoundation/mofo-devops/milestones/A%20Midsummer%20Night's%20Dream","labels_url":"https://api.github.com/repos/MozillaFoundation/mofo-devops/milestones/9/labels","id":1238623,"number":9,"title":"A Midsummer Night's Dream","description":"","creator":{"login":"jbuck","id":578466,"avatar_url":"https://avatars.githubusercontent.com/u/578466?v=3","gravatar_id":"","url":"https://api.github.com/users/jbuck","html_url":"https://github.com/jbuck","followers_url":"https://api.github.com/users/jbuck/followers","following_url":"https://api.github.com/users/jbuck/following{/other_user}","gists_url":"https://api.github.com/users/jbuck/gists{/gist_id}","starred_url":"https://api.github.com/users/jbuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbuck/subscriptions","organizations_url":"https://api.github.com/users/jbuck/orgs","repos_url":"https://api.github.com/users/jbuck/repos","events_url":"https://api.github.com/users/jbuck/events{/privacy}","received_events_url":"https://api.github.com/users/jbuck/received_events","type":"User","site_admin":false},"open_issues":8,"closed_issues":7,"state":"open","created_at":"2015-08-03T15:42:23Z","updated_at":"2015-08-10T21:46:34Z","due_on":"2015-08-17T04:00:00Z","closed_at":null},"comments":15,"created_at":"2015-07-15T02:04:51Z","updated_at":"2015-08-10T22:00:15Z","closed_at":null,"body":"@ryanpitts emailed me:\r\n> Getting some super weird errors on Source when you run certain searches. These searches throw 500s:\r\n> \r\n>         https://source.opennews.org/en-US/search/?q=work\r\n>         https://source.opennews.org/en-US/search/?q=journalism\r\n> \r\n> But this works as expected:\r\n> \r\n>         https://source.opennews.org/en-US/search/?q=django\r\n> \r\n> And this empty result set works fine too:\r\n> \r\n>         https://source.opennews.org/en-US/search/?q=djangofoobarbaz\r\n> \r\n> So I have no idea what’s triggering the 500s. Any chance you could pull a log so I could start trying to troubleshoot?\r\n"},"comment":{"url":"https://api.github.com/repos/MozillaFoundation/mofo-devops/issues/comments/129627485","html_url":"https://github.com/MozillaFoundation/mofo-devops/issues/114#issuecomment-129627485","issue_url":"https://api.github.com/repos/MozillaFoundation/mofo-devops/issues/114","id":129627485,"user":{"login":"jbuck","id":578466,"avatar_url":"https://avatars.githubusercontent.com/u/578466?v=3","gravatar_id":"","url":"https://api.github.com/users/jbuck","html_url":"https://github.com/jbuck","followers_url":"https://api.github.com/users/jbuck/followers","following_url":"https://api.github.com/users/jbuck/following{/other_user}","gists_url":"https://api.github.com/users/jbuck/gists{/gist_id}","starred_url":"https://api.github.com/users/jbuck/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jbuck/subscriptions","organizations_url":"https://api.github.com/users/jbuck/orgs","repos_url":"https://api.github.com/users/jbuck/repos","events_url":"https://api.github.com/users/jbuck/events{/privacy}","received_events_url":"https://api.github.com/users/jbuck/received_events","type":"User","site_admin":false},"created_at":"2015-08-10T22:00:15Z","updated_at":"2015-08-10T22:00:15Z","body":"@ryanpitts That did the trick! Logs:\r\n\r\n```\r\n(source)ubuntu@i-4ed38db3:/var/www/source$ python manage.py rebuild_index --remove --verbosity 1\r\n\r\nWARNING: This will irreparably remove EVERYTHING from your search index in connection 'default'.\r\nYour choices after this are to restore from backups or rebuild via the `rebuild_index` command.\r\nAre you sure you wish to continue? [y/N] y\r\n\r\nRemoving all documents from your index because you said so.\r\nFailed to clear Elasticsearch index: Non-OK status code returned (404) containing u'IndexMissingException[[haystack] missing]'.\r\nAll documents removed.\r\nIndexing 413 articles.\r\nIndexing 124 codes.\r\nIndexing 508 People.\r\nIndexing 143 organizations.\r\n```"}}