{"action":"closed","issue":{"url":"https://api.github.com/repos/gitpython-developers/gitdb/issues/21","labels_url":"https://api.github.com/repos/gitpython-developers/gitdb/issues/21/labels{/name}","comments_url":"https://api.github.com/repos/gitpython-developers/gitdb/issues/21/comments","events_url":"https://api.github.com/repos/gitpython-developers/gitdb/issues/21/events","html_url":"https://github.com/gitpython-developers/gitdb/issues/21","id":110579231,"number":21,"title":"\"couldn't find fanout table\" on PackIndexFile_sha_to_index()","user":{"login":"nareshov","id":273009,"avatar_url":"https://avatars.githubusercontent.com/u/273009?v=3","gravatar_id":"","url":"https://api.github.com/users/nareshov","html_url":"https://github.com/nareshov","followers_url":"https://api.github.com/users/nareshov/followers","following_url":"https://api.github.com/users/nareshov/following{/other_user}","gists_url":"https://api.github.com/users/nareshov/gists{/gist_id}","starred_url":"https://api.github.com/users/nareshov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nareshov/subscriptions","organizations_url":"https://api.github.com/users/nareshov/orgs","repos_url":"https://api.github.com/users/nareshov/repos","events_url":"https://api.github.com/users/nareshov/events{/privacy}","received_events_url":"https://api.github.com/users/nareshov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-09T03:03:00Z","updated_at":"2015-10-09T07:13:18Z","closed_at":"2015-10-09T07:13:18Z","body":"Here's a stack trace I'm seeing on upgrading Gerrit to a recent release, this looks gitdb specific so thought I'd ask here in case a workaround is known:\r\n\r\n```\r\nopsgerrit@IAD01-INSTALL01:/opt/opsgerrit/hooks/change-merged.d$ tail -f /opt/opsgerrit/logs/error_log \r\n[2015-10-09 02:37:26,928] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     return self._db_query(sha).info(sha)\r\n[2015-10-09 02:37:26,928] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/db/base.py\", line 239, in _db_query\r\n[2015-10-09 02:37:26,928] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     if db.has_object(sha):\r\n[2015-10-09 02:37:26,928] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/db/pack.py\", line 88, in has_object\r\n[2015-10-09 02:37:26,928] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     self._pack_info(sha)\r\n[2015-10-09 02:37:26,928] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/db/pack.py\", line 71, in _pack_info\r\n[2015-10-09 02:37:26,928] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     index = item[2](sha)\r\n[2015-10-09 02:37:26,928] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/pack.py\", line 492, in sha_to_index\r\n[2015-10-09 02:37:26,928] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     return PackIndexFile_sha_to_index(self, sha)\r\n[2015-10-09 02:37:26,928] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output: ValueError: Couldn't obtain fanout table\r\n\r\n\r\n[2015-10-09 02:56:56,708] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output: running: /opt/opsgerrit/hooks/change-merged.d/preseed-master-activate\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output: running: /opt/opsgerrit/hooks/change-merged.d/puppet-production-activate\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output: Traceback (most recent call last):\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/hooks/change-merged.d/puppet-production-activate\", line 107, in <module>\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     process_puppet_production(args)\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/hooks/change-merged.d/puppet-production-activate\", line 86, in process_puppet_production\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     commit = source_repo.commit(args.commit)\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/GitPython-0.3.2.RC1-py2.7.egg/git/repo/base.py\", line 378, in commit\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     return self.rev_parse(str(rev)+\"^0\")\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/GitPython-0.3.2.RC1-py2.7.egg/git/repo/fun.py\", line 151, in rev_parse\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     obj = name_to_object(repo, rev[:start])\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/GitPython-0.3.2.RC1-py2.7.egg/git/repo/fun.py\", line 89, in name_to_object\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     return Object.new_from_sha(repo, hex_to_bin(hexsha))\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/GitPython-0.3.2.RC1-py2.7.egg/git/objects/base.py\", line 64, in new_from_sha\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     oinfo = repo.odb.info(sha1)\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/db/base.py\", line 256, in info\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     return self._db_query(sha).info(sha)\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/db/base.py\", line 239, in _db_query\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     if db.has_object(sha):\r\n[2015-10-09 02:56:56,709] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/db/pack.py\", line 88, in has_object\r\n[2015-10-09 02:56:56,710] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     self._pack_info(sha)\r\n[2015-10-09 02:56:56,710] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/db/pack.py\", line 71, in _pack_info\r\n[2015-10-09 02:56:56,710] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     index = item[2](sha)\r\n[2015-10-09 02:56:56,710] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:   File \"/opt/opsgerrit/pyenv/local/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/pack.py\", line 492, in sha_to_index\r\n[2015-10-09 02:56:56,710] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output:     return PackIndexFile_sha_to_index(self, sha)\r\n[2015-10-09 02:56:56,710] INFO  com.google.gerrit.common.ChangeHookRunner : hook[change-merged] output: ValueError: Couldn't obtain fanout table\r\n```"}}