On Aug 21, 2009, at 6:32 PM, Erik Bray wrote:
> > On Thu, Aug 20, 2009 at 6:28 PM, Lukasz > Szybalski<[email protected]> wrote: >> >> On Thu, Aug 20, 2009 at 5:13 PM, Lukasz >> Szybalski<[email protected]> wrote >>> Traceback (most recent call last): >>> File "xxx.py", line 115, in <module> >>> >>> filename >>> = >>> server >>> .ticket >>> .putAttachment >>> (number >>> ,file_name >>> ,file_name >>> ,xmlrpclib.Binary(open(os.path.join(folder_name,file_name)).read())) >>> File "/usr/lib/python2.5/xmlrpclib.py", line 1147, in __call__ >>> return self.__send(self.__name, args) >>> File "/usr/lib/python2.5/xmlrpclib.py", line 1437, in __request >>> verbose=self.__verbose >>> File "/usr/lib/python2.5/xmlrpclib.py", line 1201, in request >>> return self._parse_response(h.getfile(), sock) >>> File "/usr/lib/python2.5/xmlrpclib.py", line 1340, in >>> _parse_response >>> return u.close() >>> File "/usr/lib/python2.5/xmlrpclib.py", line 787, in close >>> raise Fault(**self._stack[0]) >>> xmlrpclib.Fault: <Fault 2: "'[Errno 31] Too many links: >>> '/home/trac/trac/attachments/ticket/32433'' while executing >>> 'ticket.putAttachment()'"> >>> >>> >>> >>> Is there a way to close the xmlrpclib.ServerProxy. I think that is >>> what caused this error. Every time I upload a file I create a >>> service >>> that connects to trac. I do that because the filename of the file I >>> want to upload comes on stdin. >> >> >> I did reach the 32000 tickets. I have exactly: >> 31999 folder for ticket# on my ext3. >> >> ls -l |wc -l >> 31999 >> >> How do I increase that number on ext3? >> >> Thanks, >> Lucas > > Well, when lots of SVN users started hitting limits like that for > revisions, they just added a second directory level to handle the > situation. I don't think many Trac instances have, to this point, > been used in a such a way that they've hit this limit. Implementing this two level architecture seems reasonably easy to do so it is either that or you move to another filesystem, which is simpler if you don't want to extend trac. Theres a lot of fs that don't have this problem besides Reiserfs: ext4 with an extension has no limits (64k otherwise) http://en.wikipedia.org/wiki/Ext4#Break_32.2C000_subdirectory_limit jfs and xfs probably don't have this problem either http://en.wikipedia.org/wiki/XFS http://en.wikipedia.org/wiki/JFS_file_system -- Leonardo Santagada santagada at gmail.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Trac Users" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/trac-users?hl=en -~----------~----~----~----~------~----~------~--~---
