{"action":"created","issue":{"url":"https://api.github.com/repos/nijel/weblate/issues/713","labels_url":"https://api.github.com/repos/nijel/weblate/issues/713/labels{/name}","comments_url":"https://api.github.com/repos/nijel/weblate/issues/713/comments","events_url":"https://api.github.com/repos/nijel/weblate/issues/713/events","html_url":"https://github.com/nijel/weblate/issues/713","id":68750790,"number":713,"title":"Search gives internal error","user":{"login":"paulpach","id":466007,"avatar_url":"https://avatars.githubusercontent.com/u/466007?v=3","gravatar_id":"","url":"https://api.github.com/users/paulpach","html_url":"https://github.com/paulpach","followers_url":"https://api.github.com/users/paulpach/followers","following_url":"https://api.github.com/users/paulpach/following{/other_user}","gists_url":"https://api.github.com/users/paulpach/gists{/gist_id}","starred_url":"https://api.github.com/users/paulpach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulpach/subscriptions","organizations_url":"https://api.github.com/users/paulpach/orgs","repos_url":"https://api.github.com/users/paulpach/repos","events_url":"https://api.github.com/users/paulpach/events{/privacy}","received_events_url":"https://api.github.com/users/paulpach/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nijel/weblate/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"nijel","id":212189,"avatar_url":"https://avatars.githubusercontent.com/u/212189?v=3","gravatar_id":"","url":"https://api.github.com/users/nijel","html_url":"https://github.com/nijel","followers_url":"https://api.github.com/users/nijel/followers","following_url":"https://api.github.com/users/nijel/following{/other_user}","gists_url":"https://api.github.com/users/nijel/gists{/gist_id}","starred_url":"https://api.github.com/users/nijel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nijel/subscriptions","organizations_url":"https://api.github.com/users/nijel/orgs","repos_url":"https://api.github.com/users/nijel/repos","events_url":"https://api.github.com/users/nijel/events{/privacy}","received_events_url":"https://api.github.com/users/nijel/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-04-15T18:13:55Z","updated_at":"2015-04-16T14:02:24Z","closed_at":"2015-04-16T14:02:24Z","body":"When I try to search,  I get an internal server error,  here is the log error:\r\n\r\n```\r\n[Wed Apr 15 14:04:23 2015] [error] Traceback (most recent call last):\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/django/core/handlers/base.py\", line 132, in get_response\r\n[Wed Apr 15 14:04:23 2015] [error]     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/app-root/runtime/repo/weblate/trans/views/basic.py\", line 121, in search\r\n[Wed Apr 15 14:04:23 2015] [error]     search_form.cleaned_data,\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/app-root/runtime/repo/weblate/trans/models/unit.py\", line 229, in search\r\n[Wed Apr 15 14:04:23 2015] [error]     params\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/app-root/runtime/repo/weblate/trans/search.py\", line 232, in fulltext_search\r\n[Wed Apr 15 14:04:23 2015] [error]     index = get_source_index()\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/app-root/runtime/repo/weblate/trans/search.py\", line 108, in get_source_index\r\n[Wed Apr 15 14:04:23 2015] [error]     if not STORAGE.index_exists('source'):\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/filedb/filestore.py\", line 189, in index_exists\r\n[Wed Apr 15 14:04:23 2015] [error]     ix = self.open_index(indexname)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/filedb/filestore.py\", line 176, in open_index\r\n[Wed Apr 15 14:04:23 2015] [error]     return indexclass(self, schema=schema, indexname=indexname)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/index.py\", line 421, in __init__\r\n[Wed Apr 15 14:04:23 2015] [error]     TOC.read(self.storage, self.indexname, schema=self._schema)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/index.py\", line 632, in read\r\n[Wed Apr 15 14:04:23 2015] [error]     check_size(\"int\", _INT_SIZE)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/index.py\", line 626, in check_size\r\n[Wed Apr 15 14:04:23 2015] [error]     sz = stream.read_varint()\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/filedb/structfile.py\", line 191, in r\r\nead_varint\r\n[Wed Apr 15 14:04:23 2015] [error]     return read_varint(self.read)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/util/varints.py\", line 102, in read_varint\r\n[Wed Apr 15 14:04:23 2015] [error]     b = ord(readfn(1))\r\n[Wed Apr 15 14:04:23 2015] [error] TypeError: ord() expected a character, but string of length 0 found\r\n[Wed Apr 15 14:04:23 2015] [error] ERROR:django.request:Internal Server Error: /search/\r\n[Wed Apr 15 14:04:23 2015] [error] Traceback (most recent call last):\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/django/core/handlers/base.py\", line 132, in get_response\r\n[Wed Apr 15 14:04:23 2015] [error]     response = wrapped_callback(request, *callback_args, **callback_kwargs)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/app-root/runtime/repo/weblate/trans/views/basic.py\", line 121, in search\r\n[Wed Apr 15 14:04:23 2015] [error]     search_form.cleaned_data,\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/app-root/runtime/repo/weblate/trans/models/unit.py\", line 229, in search\r\n[Wed Apr 15 14:04:23 2015] [error]     params\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/app-root/runtime/repo/weblate/trans/search.py\", line 232, in fulltext_search\r\n[Wed Apr 15 14:04:23 2015] [error]     index = get_source_index()\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/app-root/runtime/repo/weblate/trans/search.py\", line 108, in get_source_index\r\n[Wed Apr 15 14:04:23 2015] [error]     if not STORAGE.index_exists('source'):\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/filedb/filestore.py\", line 189, in index_exists\r\n[Wed Apr 15 14:04:23 2015] [error]     ix = self.open_index(indexname)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/filedb/filestore.py\", line 176, in open_index\r\n[Wed Apr 15 14:04:23 2015] [error]     return indexclass(self, schema=schema, indexname=indexname)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/index.py\", line 421, in __init__\r\n[Wed Apr 15 14:04:23 2015] [error]     TOC.read(self.storage, self.indexname, schema=self._schema)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/index.py\", line 632, in read\r\n[Wed Apr 15 14:04:23 2015] [error]     check_size(\"int\", _INT_SIZE)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/index.py\", line 626, in check_size\r\n[Wed Apr 15 14:04:23 2015] [error]     sz = stream.read_varint()\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/filedb/structfile.py\", line 191, in read_varint\r\n[Wed Apr 15 14:04:23 2015] [error]     return read_varint(self.read)\r\n[Wed Apr 15 14:04:23 2015] [error]   File \"/var/lib/openshift/54ca55defcf933aff3000136/python/virtenv/lib/python2.7/site-packages/whoosh/util/varints.py\", line 102, in read_varint\r\n[Wed Apr 15 14:04:23 2015] [error]     b = ord(readfn(1))\r\n[Wed Apr 15 14:04:23 2015] [error] TypeError: ord() expected a character, but string of length 0 found\r\n144.9.40.131 - - [15/Apr/2015:14:04:21 -0400] \"GET /search/?q=monster&search=ftx&source=on&target=on&type=all&ignored=False HTTP/1.1\" 500 7984 \"http://weblate-blockstory.rhcloud.com/\" \"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.118 Safari/537.36\"\r\n```\r\n\r\n\r\n<bountysource-plugin>\r\n---\r\nWant to back this issue? **[Post a bounty on it!](https://www.bountysource.com/issues/11224257-search-gives-internal-error?utm_campaign=plugin&utm_content=tracker%2F253393&utm_medium=issues&utm_source=github)** We accept bounties via [Bountysource](https://www.bountysource.com/?utm_campaign=plugin&utm_content=tracker%2F253393&utm_medium=issues&utm_source=github).\r\n</bountysource-plugin>"},"comment":{"url":"https://api.github.com/repos/nijel/weblate/issues/comments/93741946","html_url":"https://github.com/nijel/weblate/issues/713#issuecomment-93741946","issue_url":"https://api.github.com/repos/nijel/weblate/issues/713","id":93741946,"user":{"login":"paulpach","id":466007,"avatar_url":"https://avatars.githubusercontent.com/u/466007?v=3","gravatar_id":"","url":"https://api.github.com/users/paulpach","html_url":"https://github.com/paulpach","followers_url":"https://api.github.com/users/paulpach/followers","following_url":"https://api.github.com/users/paulpach/following{/other_user}","gists_url":"https://api.github.com/users/paulpach/gists{/gist_id}","starred_url":"https://api.github.com/users/paulpach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulpach/subscriptions","organizations_url":"https://api.github.com/users/paulpach/orgs","repos_url":"https://api.github.com/users/paulpach/repos","events_url":"https://api.github.com/users/paulpach/events{/privacy}","received_events_url":"https://api.github.com/users/paulpach/received_events","type":"User","site_admin":false},"created_at":"2015-04-16T14:02:24Z","updated_at":"2015-04-16T14:02:24Z","body":"Thank you,  this worked.  I have search again\\o/"}}