[josm-dev] TRAC: DatabaseError: database disk image is malformed

colliar colliar4ever at aol.com
Tue Jun 28 18:32:01 BST 2011


I get this error trying to add new tickets or adding comments to
existing ones logged in.

==== How to reproduce ====

While doing a POST operation on `/ticket/452`, Trac issued an internal
error.

''(please provide additional details here)''

Request parameters:
{{{
{'__FORM_TOKEN': u'9ec595c7304ea16b9eaee17e',
 'action': u'leave',
 'cnum': u'3',
 'comment': u'Replying to [comment:1 AndiPersti]:\r\n> There is no csv
support in JOSM anymore.\r\nAt least there exists
[http://wiki.openstreetmap.org/wiki/JOSM/Plugins/ColumbusCSV ColumbusCSV
plugin].[[BR]]\r\nMaybe it can be improved to work with other csv-files,
too, if it does not yet.',
 'field_cc': u'',
 'field_component': u'Core',
 'field_description': u'Situation:\r\n\r\nI have a CSV file which
contains lat long coordinates, and I have opened this in JOSM.  I get a
new data layer entitled "Tracks from \'\'myfilename\'\'".\r\n\r\nIf I
convert this to a data layer it automatically forms this into a way, it
would be nice to have the option of just converting to a series of
unconnected nodes.\r\n\r\nPerhaps this could be linked to the "Customize
line drawing option", so if lines were drawn between the points then
when the layer was converted then it was converted to a way, and if no
lines were drawn between the points on the layer then when it was
converted it was just converted into nodes.',
 'field_keywords': u'',
 'field_priority': u'minor',
 'field_summary': u'CSV import and data layers',
 'field_type': u'enhancement',
 'field_version': u'',
 'id': u'452',
 'replyto': u'1',
 'submit': u'Submit changes',
 'ts': u'2011-06-28 06:49:52.839893+00:00'}
}}}

User agent: `Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.16)
Gecko/20110430 Iceweasel/3.5.16 (like Firefox/3.5.16)`

==== System Information ====
''System information not available''

==== Enabled Plugins ====
''Plugin information not available''

==== Python Traceback ====
{{{
Traceback (most recent call last):
  File
"/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py",
line 511, in _dispatch_request
    dispatcher.dispatch(req)
  File
"/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/web/main.py",
line 237, in dispatch
    resp = chosen_handler.process_request(req)
  File
"/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/ticket/web_ui.py",
line 169, in process_request
    return self._process_ticket_request(req)
  File
"/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/ticket/web_ui.py",
line 537, in _process_ticket_request
    valid = self._validate_ticket(req, ticket, not valid) and valid
  File
"/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/ticket/web_ui.py",
line 1182, in _validate_ticket
    for field, message in manipulator.validate_ticket(req, ticket):
  File "build/bdist.linux-x86_64/egg/tracspamfilter/adapters.py", line
77, in validate_ticket
    FilterSystem(self.env).test(req, author, changes, ip)
  File "build/bdist.linux-x86_64/egg/tracspamfilter/api.py", line 179,
in test
    LogEntry.purge(self.env, self.purge_age)
  File "build/bdist.linux-x86_64/egg/tracspamfilter/model.py", line 223,
in purge
    (mktime(threshold.timetuple()),))
  File
"/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/db/util.py",
line 65, in execute
    return self.cursor.execute(sql_escape_percent(sql), args)
  File
"/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/db/sqlite_backend.py",
line 78, in execute
    result = PyFormatCursor.execute(self, *args)
  File
"/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/db/sqlite_backend.py",
line 56, in execute
    args or [])
  File
"/usr/local/lib/python2.6/dist-packages/Trac-0.12.2-py2.6.egg/trac/db/sqlite_backend.py",
line 48, in _rollback_on_error
    return function(self, *args, **kwargs)
DatabaseError: database disk image is malformed
}}}

Please do not add all my adds I commited the last minutes, if the have
survived somehow.

cu
Colliar



More information about the josm-dev mailing list