View Single Post
Old 07-01-2008, 06:57 AM   #98
Jelis
Enthusiast
Jelis will become famous soon enoughJelis will become famous soon enoughJelis will become famous soon enoughJelis will become famous soon enoughJelis will become famous soon enoughJelis will become famous soon enoughJelis will become famous soon enough
 
Jelis's Avatar
 
Posts: 29
Karma: 742
Join Date: Jun 2008
Location: France
Device: sony 505
Kovid, sorry to bother you again, but I really would like to solve the problem I am having with Calibre 4.74. Yesterday created ticket number 835, but did not see it in trac, guess I did not do it right. Today tried to create new ticket, number 840, and on attaching small text file, error message, received this message:

Oops…
Trac detected an internal error: OperationalError: database is locked
There was an internal error in Trac. It is recommended that you inform your local Trac administrator and give him all the information he needs to reproduce the issue.

To that end, you could
==== How to Reproduce ====

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

''(please provide additional details here)''


Request parameters:
{{{
{'__FORM_TOKEN': u'43485c3280498f5a99566f46',
'action': u'new',
'attachment': FieldStorage('attachment', 'C:\\Documents and Settings\\Fran\xc3\xa7ois\\Desktop\\CalibreError.t xt', 'u\'\\xe7\'\r\nDetailed traceback:\r\nTraceback (most recent call last):\r\n File "main.py", line 686, in save_to_disk\r\n File "calibre\\gui2\\library.pyo", line 156, in save_to_disk\r\n File "calibre\\library\\database.pyo", line 1435, in export_to_dir\r\n File "C:\\Program Files\\calibre\\library.zip\\calibre\\ebooks\\meta data\\opf.py", line 504, in render\r\n File "calibre\\utils\\genshi\\core.pyo", line 179, in render\r\n File "calibre\\utils\\genshi\\output.pyo", line 60, in encode\r\n File "calibre\\utils\\genshi\\output.pyo", line 210, in __call__\r\n File "calibre\\utils\\genshi\\output.pyo", line 592, in __call__\r\n File "calibre\\utils\\genshi\\output.pyo", line 698, in __call__\r\n File "calibre\\utils\\genshi\\output.pyo", line 532, in __call__\r\n File "calibre\\utils\\genshi\\core.pyo", line 283, in _ensure\r\n File "calibre\\utils\\genshi\\template\\markup.pyo" , line 246, in _match\r\n File "calibre\\utils\\genshi\\template\\base.pyo", line 543, in _exec\r\n File "calibre\\utils\\genshi\\template\\base.pyo", line 510, in _eval\r\n File "calibre\\utils\\genshi\\template\\base.pyo", line 520, in _eval\r\n File "calibre\\utils\\genshi\\template\\base.pyo", line 286, in _eval_expr\r\n File "calibre\\utils\\genshi\\template\\eval.pyo", line 180, in evaluate\r\n File "", line 28, in \r\n File "calibre\\ebooks\\metadata\\__init__.pyo", line 91, in href\r\n File "urllib.pyo", line 1205, in quote\r\nKeyError: u\'\\xe7\''),
'description': u'',
'id': u'840',
'path': u'840',
'realm': u'ticket'}
}}}


User Agent was: `Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727)`

==== System Information ====

|| '''Trac''' || `0.11rc1` ||
|| '''Python''' || `2.5.1 (r251:54863, Mar 28 2008, 00:57:54) ` [[br]] `[GCC 4.1.2 (Gentoo 4.1.2 p1.0.2)]` ||
|| '''setuptools''' || `0.6c8` ||
|| '''SQLite''' || `3.5.6` ||
|| '''pysqlite''' || `2.4.1` ||
|| '''Genshi''' || `0.4.4` ||
|| '''mod_python''' || `3.3.1` ||
|| '''Pygments''' || `0.9` ||
|| '''jQuery:''' || `1.2.3` ||

==== Python Traceback ====
{{{
Traceback (most recent call last):
File "/usr/lib64/python2.5/site-packages/trac/web/main.py", line 417, in _dispatch_request
dispatcher.dispatch(req)
File "/usr/lib64/python2.5/site-packages/trac/web/main.py", line 197, in dispatch
resp = chosen_handler.process_request(req)
File "/usr/lib64/python2.5/site-packages/trac/attachment.py", line 393, in process_request
self._do_save(req, attachment)
File "/usr/lib64/python2.5/site-packages/trac/attachment.py", line 582, in _do_save
attachment.insert(filename, upload.file, size)
File "/usr/lib64/python2.5/site-packages/trac/attachment.py", line 232, in insert
self.author, self.ipnr))
File "/usr/lib64/python2.5/site-packages/trac/db/util.py", line 50, in execute
return self.cursor.execute(sql_escape_percent(sql), args)
File "/usr/lib64/python2.5/site-packages/trac/db/sqlite_backend.py", line 58, in execute
args or [])
File "/usr/lib64/python2.5/site-packages/trac/db/sqlite_backend.py", line 50, in _rollback_on_error
return function(self, *args, **kwargs)
OperationalError: database is locked

}}}
a ticket at this site.

The action that triggered the error was:

POST: /attachment/ticket/840
TracGuide — The Trac User and Administration Guide


Thanks for any help,

Jelis
Jelis is offline   Reply With Quote