#4864 Error 500 when clicking most GIT patch/history links [ss429]

unreleased
wont-fix
nobody
General
nobody
2014-12-05
2012-09-05
Chris Tsai
No

[forge:site-support:#429]

A 500 Error occurs when trying to view any history, including individual patches, on either branch of the git repository.

Most but not all histories return this error.

There links don't work (+ many others)
https://sourceforge.net/p/linuxwmt/code/ci/ff4365be23618595bdb366d560acec6bda9620f2/log/

https://sourceforge.net/p/linuxwmt/code/ci/5b716ac728bcc01b1f2a7ed6e437196602237c27/log/

https://sourceforge.net/p/linuxwmt/code/ci/454940b26cb5f2b22ec48ff152d6a3dd62c1c744/

This links work fine:
https://sourceforge.net/p/linuxwmt/code/ci/a08660274acd85ba045cefbdd3afc8c6a6f766c0/

It appears that a few of the newest patch links work, but not much earlier.

Regards

Tony Prisk

Discussion

  • Dave Brondsema

    Dave Brondsema - 2012-09-05
    • milestone: limbo --> forge-backlog
     
  • Dave Brondsema

    Dave Brondsema - 2012-09-05
    File '/var/local/allura/Allura/allura/controllers/repository.py', line 408 in index
      for f in self._commit.diffs[t]
    File '/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.2dev_20120803-py2.7.egg/ming/utils.py', line 18 in __get__
    = self._func(obj)
    File '/var/local/allura/Allura/allura/model/repo.py', line 272 in diffs
      copied = self._diffs_copied(added, removed)
    File '/var/local/allura/Allura/allura/model/repo.py', line 323 in _diffs_copied
      prev_commit = self.log(1, 1)[0]
    File '/var/local/allura/Allura/allura/model/repo.py', line 228 in log
      return list(self.log_iter(skip, count))
    File '/var/local/allura/Allura/allura/model/repo.py', line 210 in log_iter
      for oids in utils.chunked_iter(commitlog([self._id]), QSIZE):
    File '/var/local/allura/Allura/allura/model/repo.py', line 648 in commitlog
      _visit(cid)
    File '/var/local/allura/Allura/allura/model/repo.py', line 613 in _visit
      _visit(oid)
    File '/var/local/allura/Allura/allura/model/repo.py', line 613 in _visit
      _visit(oid)
    File '/var/local/allura/Allura/allura/model/repo.py', line 613 in _visit
      _visit(oid)
    File '/var/local/allura/Allura/allura/model/repo.py', line 613 in _visit
      _visit(oid)
    File '/var/local/allura/Allura/allura/model/repo.py', line 613 in _visit
      _visit(oid)
    File '/var/local/allura/Allura/allura/model/repo.py', line 613 in _visit
      _visit(oid)
    File '/var/local/allura/Allura/allura/model/repo.py', line 613 in _visit
      _visit(oid)
    
     
  • Dave Brondsema

    Dave Brondsema - 2012-09-06

    Full reindex failed with:

      File "/var/local/allura/scripts/refresh-all-repos.py", line 66, in main
        {"tree_ids": 1})
      File "/var/local/env-allura/lib/python2.7/site-packages/Ming-0.3.2dev_20120803-py2.7.egg/ming/base.py", line 71, in next    doc = self.cursor.next()
      File "/var/local/env-allura/lib/python2.7/site-packages/pymongo-2.2.1-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 749, in next    if len(self.__data) or self._refresh():
      File "/var/local/env-allura/lib/python2.7/site-packages/pymongo-2.2.1-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 700, in _refresh
        self.__uuid_subtype))
      File "/var/local/env-allura/lib/python2.7/site-packages/pymongo-2.2.1-py2.7-linux-x86_64.egg/pymongo/cursor.py", line 638, in __send_message
        **kwargs)
      File "/var/local/env-allura/lib/python2.7/site-packages/pymongo-2.2.1-py2.7-linux-x86_64.egg/pymongo/connection.py", line 808, 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.2.1-py2.7-linux-x86_64.egg/pymongo/connection.py", line 787, in __send_and_receive
        (request_id, data) = self.__check_bson_size(message)
      File "/var/local/env-allura/lib/python2.7/site-packages/pymongo-2.2.1-py2.7-linux-x86_64.egg/pymongo/connection.py", line 709, in __check_bson_size
        (max_doc_size, self.__max_bson_size))
    bson.errors.InvalidDocument: BSON document too large (16980673 bytes) - the connected server supports BSON document sizes up to 16777216 bytes.
    
     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-09-11

    Originally by: sentientnz

    Which document is anywhere near 16MB (even in BSON format)?

     
  • Dave Brondsema

    Dave Brondsema - 2012-09-26

    We internally store representations of trees, sets of trees, and commit runs (sets of commits). Since this repository appears to be based off of the git repo of linux, which is very very large, the error is occurring on a TreesDoc query that is too big.

     
  • Comment has been marked as spam. 
    Undo

    You can see all pending comments posted by this user  here

    Anonymous - 2012-09-27

    Originally by: sentientnz

    Cheers for your help Dave.
    Since it seems unlikely to be resolvable, feel free to close this ticket.

    Regards

    Tony P

     
  • Dave Brondsema

    Dave Brondsema - 2012-09-27
    • status: open --> wont-fix
    • milestone: forge-backlog --> forge-oct-05
     

Log in to post a comment.