Got this when trying to do a --clean --all for it:
Traceback (most recent call last):
File "/var/local/allura/Allura/allura/model/monq_model.py", line 237, in __call__
self.result = func(*self.args, **self.kwargs)
File "/var/local/allura/Allura/allura/scripts/scripttask.py", line 60, in __new__
cls._execute_task(arg_string)
File "/var/local/allura/Allura/allura/scripts/scripttask.py", line 73, in _execute_task
cls.execute(options)
File "/var/local/allura/Allura/allura/scripts/refreshrepo.py", line 57, in execute
{"tree_ids": 1})
File "/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.3dev_20130322-py2.7.egg/ming/base.py", line 71, in next
doc = self.cursor.next()
File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.2-py2.7.egg/timermiddleware/__init__.py", line 116, in wrapper
return self.run_and_log(func, inst, *args, **kwargs)
File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.2-py2.7.egg/timermiddleware/__init__.py", line 125, in run_and_log
return func(*args, **kwargs)
File "/var/local/env-allura/lib/python2.7/site-packages/pymongo-2.4.2-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 814, in next
if len(self.__data) or self._refresh():
File "/var/local/env-allura/lib/python2.7/site-packages/pymongo-2.4.2-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 763, in _refresh
self.__uuid_subtype))
File "/var/local/env-allura/lib/python2.7/site-packages/pymongo-2.4.2-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 700, in __send_message
**kwargs)
File "/var/local/env-allura/lib/python2.7/site-packages/pymongo-2.4.2-py2.7-linux-x86_64.egg/pymongo/mongo_client.py", line 915, in _send_message_with_response
return self.__send_and_receive(message, sock_info)
File "/var/local/env-allura/lib/python2.7/site-packages/pymongo-2.4.2-py2.7-linux-x86_64.egg/pymongo/mongo_client.py", line 890, in __send_and_receive
(request_id, data) = self.__check_bson_size(message)
File "/var/local/env-allura/lib/python2.7/site-packages/pymongo-2.4.2-py2.7-linux-x86_64.egg/pymongo/mongo_client.py", line 805, in __check_bson_size
(max_doc_size, self.__max_bson_size))
InvalidDocument: BSON document too large (19106238 bytes) - the connected server supports BSON document sizes up to 16777216 bytes.
Got this the first time the refresh was attempted. Would be good to do a full --clean --all in production to confirm this is the actual error and not a transient issue of some sort.
File "/var/local/allura/Allura/allura/model/repo_refresh.py", line 47, in refresh_repo
repo.refresh_commit_info(oid, seen, not all_commits)
File "/var/local/allura/Allura/allura/model/repository.py", line 281, in refresh_commit_info
return self._impl.refresh_commit_info(oid, seen, lazy)
File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.2-py2.7.egg/timermiddleware/__init__.py", line 116, in wrapper
return self.run_and_log(func, inst, *args, **kwargs)
File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.2-py2.7.egg/timermiddleware/__init__.py", line 125, in run_and_log
return func(*args, **kwargs)
File "/var/local/allura/ForgeGit/forgegit/model/git_repo.py", line 209, in refresh_commit_info
tree_id=ci.tree.hexsha,
File "/var/local/env-allura/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/util.py", line 238, in __getattr__
self._set_cache_(attr)
File "/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1.20130214-py2.7.egg/git/objects/commit.py", line 132, in _set_cache_
self._deserialize(StringIO(stream.read()))
File "/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1.20130214-py2.7.egg/git/objects/commit.py", line 443, in _deserialize
self.author.name = self.author.name.decode(self.encoding)
LookupError: unknown encoding: object e9daff24a266307943457086533041bd971d0ef9
allura:cj/6078Gets past
--cleanbut getting a decode error on an author's name:Traceback (most recent call last): File "/home/cjohns/cjohns-7019/forge/Allura/allura/scripts/refreshrepo.py", line 114, in execute c.app.repo.refresh(options.all, notify=options.notify) File "/home/cjohns/cjohns-7019/forge/Allura/allura/model/repository.py", line 522, in refresh refresh_repo(self, all_commits, notify, new_clone) File "/home/cjohns/cjohns-7019/forge/Allura/allura/model/repo_refresh.py", line 48, in refresh_repo repo.refresh_commit_info(oid, seen, not all_commits) File "/home/cjohns/cjohns-7019/forge/Allura/allura/model/repository.py", line 309, in refresh_commit_info return self._impl.refresh_commit_info(oid, seen, lazy) File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.2-py2.7.egg/timermiddleware/__init__.py", line 116, in wrapper return self.run_and_log(func, inst, *args, **kwargs) File "/var/local/env-allura/lib/python2.7/site-packages/TimerMiddleware-0.4.2-py2.7.egg/timermiddleware/__init__.py", line 125, in run_and_log return func(*args, **kwargs) File "/home/cjohns/cjohns-7019/forge/ForgeGit/forgegit/model/git_repo.py", line 209, in refresh_commit_info tree_id=ci.tree.hexsha, File "/var/local/env-allura/lib/python2.7/site-packages/gitdb-0.5.4-py2.7-linux-x86_64.egg/gitdb/util.py", line 238, in __getattr__ self._set_cache_(attr) File "/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1.20130214-py2.7.egg/git/objects/commit.py", line 132, in _set_cache_ self._deserialize(StringIO(stream.read())) File "/var/local/env-allura/lib/python2.7/site-packages/GitPython-0.3.2.RC1.20130214-py2.7.egg/git/objects/commit.py", line 443, in _deserialize self.author.name = self.author.name.decode(self.encoding) LookupError: unknown encoding: object 19b0092e265fe9ab129902373c3127c0e0be3376allura:cj/6078https://github.com/johnsca/GitPython/commit/db82455bd91ce00c22f6ee2b0dc622f117f07137
Lookup error caused by this bug in GitPython.
Root encoding issue fixed. Other refresh issues of this large repo persist.