Roundup Tracker - Issues

Issue 923784

classification
python error on webinterface when modifying an issue
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed fixed
:
: richard : femeijer, richard
Priority: normal :

Created on 2004-03-26 10:08 by femeijer, last changed 2004-03-29 13:05 by femeijer.

Messages
msg1156 Author: [hidden] (femeijer) Date: 2004-03-26 10:08
We have roundup running as an issuetracker on a netbsd 
machine.

It worked fine, but this morning for no apparent reason it 
gives the following error on any modification to an issue:


error: Error -5 while decompressing data Python 2.2.3
/usr/pkg/bin/python2.2 

A problem occurred while running a Python script. Here is 
the sequence of function calls leading up to the error, 
with the most recent (innermost) call first. The 
exception attributes are:
      __doc__ = None 
      __getitem__ = <bound method error.__getitem__ of 
<zlib.error instance>> 
      __init__ = <bound method error.__init__ of 
<zlib.error instance>> 
      __module__ = 'zlib' 
      __str__ = <bound method error.__str__ of 
<zlib.error instance>> 
      args = ('Error -5 while decompressing data',)

/usr/pkg/lib/python2.2/site-packages/roundup/indexer.py 
in load_index(self=<roundup.indexer.Indexer instance>, 
reload=0, wordlist=None) 
  259                 if error.errno != errno.ENOENT: raise
  260             else:
  261                 pickle_str = zlib.decompress(f.read())
 
      pickle_str = '{s\x05\x00\x00\x00FILESNs\x05\x00
\x00\x00WORDS{s\x05\x00\x00\x00LEZEN{i$\x00\x00
\x00i\x01\x00\x00\x000s\x07\x00...\x000s\x0f\x00\x00
\x00LIB000000130413{i\x97\x00\x00\x00i\x02\x00\x00
\x0000s\x07\x00\x00\x00FILEIDSN0', global zlib = 
<module 'zlib' from '/usr/pkg/lib/python2.2/lib-
dynload/zlib.so'>, global decompress = undefined, f = 
<open 
file '/var/roundup/interactive/db/indexes/index.dbM', 
mode 'rb'>, global read = undefined
  262                 f.close()
  263                 dbslice = marshal.loads(pickle_str)


/usr/pkg/lib/python2.2/site-packages/roundup/indexer.py 
in add_text(self=<roundup.indexer.Indexer instance>, 
identifier=('issue', '56', 'title'), text='XWING development 
and network access.', mime_type='text/plain') 
   74         '''
   75         # make sure the index is loaded
   76         self.load_index()
 
      self = <roundup.indexer.Indexer instance>, global 
load_index = undefined
   77 
   78         # remove old entries for this identifier


/usr/pkg/lib/python2.2/site-
packages/roundup/backends/rdbms_common.py in index
(self=<hyperdb.Class "issue">, nodeid='56') 
 2010                     # and index them under 
(classname, nodeid, property)
 2011                     self.db.indexer.add_text
((self.classname, nodeid, prop),
 2012                         value)
 
      value = 'XWING development and network access.'
 2013 
 2014 


/usr/pkg/lib/python2.2/site-
packages/roundup/backends/rdbms_common.py in commit
(self=<myroundsql 0x849ea6c>) 
  816         for classname, nodeid in filter(None, 
reindex.keys()):
  817             print >>hyperdb.DEBUG, 'commit.reindex', 
(classname, nodeid)
  818             self.getclass(classname).index(nodeid)
 
      self = <myroundsql 0x849ea6c>, global getclass = 
undefined, classname = 'issue', global index = undefined, 
nodeid = '56'
  819 
  820         # save the indexer state


/usr/pkg/lib/python2.2/site-
packages/roundup/cgi/client.py in editItemAction
(self=<_roundup_tracker_1.interfaces.Client instance>) 
 1007 
 1008         # commit now that all the tricky stuff is done
 1009         self.db.commit()
 
      self = <_roundup_tracker_1.interfaces.Client 
instance>, global db = undefined, global commit = 
undefined
 1010 
 1011         # redirect to the item's edit page


/usr/pkg/lib/python2.2/site-
packages/roundup/cgi/client.py in handle_action
(self=<_roundup_tracker_1.interfaces.Client instance>) 
  563                 raise ValueError, 'No such action "%s"'%
action
  564             # call the mapped action
  565             getattr(self, method)()
 
      global getattr = undefined, self = 
<_roundup_tracker_1.interfaces.Client instance>, 
method = 'editItemAction'
  566         except Redirect:
  567             raise


/usr/pkg/lib/python2.2/site-
packages/roundup/cgi/client.py in inner_main
(self=<_roundup_tracker_1.interfaces.Client instance>) 
  285         except:
  286             # everything else
  287             self.write(cgitb.html())
 
      self = <_roundup_tracker_1.interfaces.Client 
instance>, global write = undefined, global cgitb = 
<module 'roundup.cgi.cgitb' 
from '/usr/pkg/lib/python2.2/site-
packages/roundup/cgi/cgitb.pyc'>, global html = 
undefined
  288 
  289     def clean_sessions(self):


msg1157 Author: [hidden] (richard) Date: 2004-03-26 11:25
Logged In: YES 
user_id=6405

Stop your server, delete the tracker/db/indexes directory and restart. 
 
*only* delete the indexes directory, *no* others. 
 
The indexes will be re-generated when you next acccess the tracker. 
 
Which backend are you using? 
msg1158 Author: [hidden] (femeijer) Date: 2004-03-26 17:01
Logged In: YES 
user_id=202633

i am using netbsd / mysql /apache

i will follow your suggestion and get bak to you.

thanks 

Frank
msg1159 Author: [hidden] (richard) Date: 2004-03-29 03:22
Logged In: YES 
user_id=6405

This has been resolved in 0.7 
msg1160 Author: [hidden] (femeijer) Date: 2004-03-29 13:05
Logged In: YES 
user_id=202633

works like a charm. thanks
History
Date User Action Args
2004-03-26 10:08:28femeijercreate