Hello,

I am new to Invenio and have installed my first Server with it. The demo site 
is running and in gerneral it works.

But I have a few problems with the image processing.
When I call the "Multimedis & Arts" >> "Pictures" page, the page is published 
but the server sends an error message (see below).

I do not understand the problem. Can somebody tell me, what the problem is?

Thanks
 Martin Rosekeit

Additional Informations about the server:
$ ./inveniocfg --detect-system-details
>>> Going to detect system details...
* Hostname: litweb
* Invenio version: 1.0.0-rc0
* Python version: 2.7.1+ (r271:86832, Apr 11 2011, 18:13:53)  [GCC 4.5.2]
* Apache version: Apache/2.2.17 (Ubuntu) [/usr/sbin/apache2]
* MySQLdb version: 1.2.2
* MySQL version:
    - version: 5.1.54-1ubuntu4
    - character_set_client: utf8
    - character_set_connection: utf8
    - character_set_database: utf8
    - character_set_results: utf8
    - character_set_server: utf8
    - character_set_system: utf8
    - collation_connection: utf8_general_ci
    - collation_database: utf8_general_ci
    - collation_server: utf8_general_ci
>>> System details detected successfully.


-----Ursprüngliche Nachricht-----
Von: [email protected] [mailto:[email protected]]
Gesendet: Dienstag, 25. Oktober 2011 09:15
An: Rosekeit, Martin
Betreff: Exception (bibdocfile.py:2753:stream) at http://litweb

Hello:

This exception has already been seen 109 times
    last time it was seen: 2011-10-25 09:14:34
    last time it was notified: 2011-10-25 09:14:20



The following problem occurred on <http://litweb> (Invenio 1.0.0-rc0)

>> 2011-10-25 09:14:34 -> SERVER_RETURN: -2

>>> User details

                                     agent: Mozilla/5.0 (Windows NT 5.1; 
rv:6.0.1) Gecko/20100101 Firefox/6.0.1
                                     email: [email protected]
                                     group: []
                                     guest: 0
                                  language: en
                              login_method: Local
                                  nickname: admin
precached_permitted_restricted_collections: []
                        precached_useadmin: True
                       precached_usealerts: True
                      precached_useapprove: True
                      precached_usebaskets: True
                       precached_usegroups: True
                        precached_useloans: True
                     precached_usemessages: True
                        precached_usestats: True
                 precached_viewsubmissions: False
                                   referer: 
<http://litweb/collection/Pictures?ln=en>
                               remote_host:
                                 remote_ip: 137.226.252.120
                                   session: b451478d1d7073c6f34a06dd8d4d9ee2
                                       uid: 1
                                       uri: 
</record/7/files/9806033.gif?subformat=icon>
                   websearch_group_records: 10
                         websearch_helpbox: 1
                       websearch_latestbox: 1

>>> Traceback details

Traceback (most recent call last):
  File 
"/usr/local/lib/python2.7/dist-packages/invenio/webinterface_handler_wsgi.py", 
line 368, in application
    ret = invenio_handler(req)
  File 
"/usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/webinterface_handler.py",
 line 334, in _profiler
    return _handler(req)
  File 
"/usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/webinterface_handler.py",
 line 376, in _handler
    return root._traverse(req, path, False, guest_p)
  File 
"/usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/invenio/webinterface_handler.py",
 line 224, in _traverse
    return obj._traverse(req, path, do_head, guest_p)
  File 
"/usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/invenio/webinterface_handler.py",
 line 224, in _traverse
    return obj._traverse(req, path, do_head, guest_p)
  File 
"/usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/invenio/invenio/webinterface_handler.py",
 line 237, in _traverse
    result = _check_result(req, obj(req, form))
  File 
"/usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/invenio/websubmit_webinterface.py",
 line 209, in getfile
    return docfile.stream(req)
  File 
"/usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/invenio/invenio/bibdocfile.py",
 line 2753, in stream
    raise apache.SERVER_RETURN, apache.DONE
SERVER_RETURN: -2
Locals by frame, innermost last

>>>> Frame application in
>>>> /usr/local/lib/python2.7/dist-packages/invenio/webinterface_handler
>>>> _wsgi.py at line 385
*******************************************************************************
       382             else:
       383                 req.flush()
       384         except:
---->  385             register_exception(req=req, alert_admin=True)
       386             if not req.response_sent_p:
       387                 req.status = HTTP_INTERNAL_SERVER_ERROR
       388                 req.headers_out['content-type'] = 'text/html'
*******************************************************************************
              start_response =  '<built-in method start_response of 
mod_wsgi.Adapter object at 0x7ffac9235dc8>'
                     environ =  "{'mod_wsgi.listener_port': '80', 
'HTTP_COOKIE': 'INVENIOSESSION=b451478d1d7073c6f34a06dd8d4d9ee2', 
'mod_wsgi.listener_host': '', 'SERVER_SOFTWARE': 'Apache', 'SCRIPT_NAME': '', 
'mod_wsgi.handler_script': '', 'SERVER_SIGNATURE': '', 'REQUEST_METHOD': 'GET', 
'PATH_INFO': '/record/7/files/9806033.gif', 'SERVER_PROTOCOL': 'HTTP/1.1', 
'QUERY_STRING': 'subformat=icon', 'HTTP_ACCEPT_CHARSET': 
'ISO-8859-1,utf-8;q=0.7,*;q=0.7', 'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 
5.1; rv:6.0.1) Gecko/20100101 Fi [...]
                         req =  
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at 
0x7ffac921add0>'
            possible_handler =  'None'
             possible_module =  'None'

>>>> Frame _profiler in
>>>> /usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/webi
>>>> nterface_handler.py at line 334
*******************************************************************************
       331             req.write("\n<pre>%s</pre>" % profile_dump)
       332             return ret
       333         else:
---->  334             return _handler(req)
       335
       336     def _handler(req):
       337         """ This handler is invoked by mod_python with the apache 
request."""
*******************************************************************************
                    _handler =  '<function _handler at 0x7ffac922d8c0>'
                        args =  "{'subformat': ['icon']}"
                         req =  
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at 
0x7ffac921add0>'

>>>> Frame _handler in
>>>> /usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/webi
>>>> nterface_handler.py at line 411
*******************************************************************************
       408
       409             ## as suggested in
       410             ## <http://www.python.org/doc/2.3.5/lib/module-gc.html>
---->  411             del gc.garbage[:]
       412
       413     return _profiler
       414
*******************************************************************************
             allowed_methods =  "('GET', 'POST', 'HEAD', 'OPTIONS')"
                     guest_p =  '0'
                         req =  
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at 
0x7ffac921add0>'
                         uri =  "'/record/7/files/9806033.gif'"
                        path =  "['record', '7', 'files', '9806033.gif']"
                        root =  
'<invenio.invenio.webinterface_layout.WebInterfaceInvenio object at 
0x7ffac92154d0>'

>>>> Frame _traverse in
>>>> /usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/inve
>>>> nio/webinterface_handler.py at line 224
*******************************************************************************
       221         # renderer. We even pass it the parsed form arguments.
       222         if path:
       223             if hasattr(obj, '_traverse'):
---->  224                 return obj._traverse(req, path, do_head, guest_p)
       225             else:
       226                 raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND
       227
*******************************************************************************
                         obj =  
'<invenio.invenio.invenio.websearch_webinterface.WebInterfaceRecordPages object 
at 0x7ffac92370d0>'
                        name =  'None'
                     guest_p =  '0'
                         req =  
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at 
0x7ffac921add0>'
                   component =  "'record'"
                     do_head =  'False'
                        path =  "['files', '9806033.gif']"
                        self =  
'<invenio.invenio.webinterface_layout.WebInterfaceInvenio object at 
0x7ffac92154d0>'

>>>> Frame _traverse in
>>>> /usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/inve
>>>> nio/webinterface_handler.py at line 224
*******************************************************************************
       221         # renderer. We even pass it the parsed form arguments.
       222         if path:
       223             if hasattr(obj, '_traverse'):
---->  224                 return obj._traverse(req, path, do_head, guest_p)
       225             else:
       226                 raise apache.SERVER_RETURN, apache.HTTP_NOT_FOUND
       227
*******************************************************************************
                         obj =  
'<invenio.invenio.invenio.invenio.websubmit_webinterface.WebInterfaceFilesPages 
object at 0x7ffac9237290>'
                        name =  "'files'"
                     guest_p =  '0'
                         req =  
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at 
0x7ffac921add0>'
                   component =  "'files'"
                     do_head =  'False'
                        path =  "['9806033.gif']"
                        self =  
'<invenio.invenio.invenio.websearch_webinterface.WebInterfaceRecordPages object 
at 0x7ffac92370d0>'

>>>> Frame _traverse in
>>>> /usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/inve
>>>> nio/invenio/webinterface_handler.py at line 237
*******************************************************************************
       234                 req.uri not in CFG_NO_LANG_RECOGNITION_URIS:
       235             ln = get_preferred_user_language(req)
       236             form.add_field('ln', ln)
---->  237         result = _check_result(req, obj(req, form))
       238         return result
       239
       240     def __call__(self, req, form):
*******************************************************************************
                         obj =  '<function getfile at 0x7ffac9235ed8>'
                        name =  'None'
                        form =  "{'ln': [Field('ln', 'en')], 'subformat': 
[Field('subformat', 'icon')]}"
                          ln =  "'en'"
                     guest_p =  '0'
                         req =  
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at 
0x7ffac921add0>'
                   component =  "'9806033.gif'"
                     do_head =  'False'
                        path =  '[]'
                        self =  
'<invenio.invenio.invenio.invenio.websubmit_webinterface.WebInterfaceFilesPages 
object at 0x7ffac9237290>'

>>>> Frame getfile in
>>>> /usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/inve
>>>> nio/websubmit_webinterface.py at line 219
*******************************************************************************
       216                                 warn = print_warning(_("The 
requested file is hidden and can not be accessed."))
       217
       218                         except InvenioWebSubmitFileError, msg:
---->  219                             register_exception(req=req, 
alert_admin=True)
       220
       221             if docname and format and not warn:
       222                 req.status = apache.HTTP_NOT_FOUND
*******************************************************************************
                         uid =  '1'
                          ip =  "'137.226.252.120'"
                     docfile =  
'BibDocFile(\'/opt/invenio/var/data/files/g0/7/9806033.gif;icon;1\', \'Main\', 
1, \'9806033\', \'.gif;icon\', 7, 7, \'\', 
\'aa0b7a3d3774d7b394105391e4b65489\', BibDocMoreInfo(7, 
"(dp1\\nS\'flags\'\\np2\\n(dp3\\nsS\'descriptions\'\\np4\\n(dp5\\nsS\'comments\'\\np6\\n(dp7\\ns."),
 False)'
                     verbose =  '0'
                          ln =  "'en'"
                         res =  '0L'
                        self =  
'<invenio.invenio.invenio.invenio.websubmit_webinterface.WebInterfaceFilesPages 
object at 0x7ffac9237290>'
                         req =  
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at 
0x7ffac921add0>'
                    filename =  "'9806033.gif'"
                   user_info =  "{'uid': 1, 'agent': 'Mozilla/5.0 (Windows NT 
5.1; rv:6.0.1) Gecko/20100101 Firefox/6.0.1', 'precached_usegroups': True, 
'session': 'b451478d1d7073c6f34a06dd8d4d9ee2', 'precached_useadmin': True, 
'group': [], 'login_method': 'Local', 'websearch_latestbox': 1, 
'precached_viewsubmissions': False, 'websearch_helpbox': 1, 'email': 
'[email protected]', 'precached_usealerts': True, 'precached_usestats': 
True, 'precached_usemessages': True, 'referer': 
'http://litweb/collection/Pictures?ln=en', 'w [...]
                    readonly =  'False'
                     version =  "''"
                   auth_code =  '0'
                     docname =  "'9806033'"
                        form =  "{'ln': [Field('ln', 'en')], 'subformat': 
[Field('subformat', 'icon')]}"
                      format =  "'.gif;icon'"
                        args =  "{'verbose': 0, 'format': '', 'ln': 'en', 
'subformat': Field('subformat', 'icon'), 'version': '', 'docname': ''}"
                        warn =  "''"
                           _ =  '<bound method GNUTranslations.gettext of 
<gettext.GNUTranslations instance at 0x7ffac697ee18>>'
                  bibarchive =  'BibRecDocs(7)'
                         doc =  "BibDoc(7, 7, '9806033', 'Main', False)"
              display_hidden =  'True'
                auth_message =  "''"

>>>> Frame stream in
>>>> /usr/local/lib/python2.7/dist-packages/invenio/invenio/invenio/inve
>>>> nio/invenio/bibdocfile.py at line 2753
*******************************************************************************
      2750             if random.random() < 
CFG_BIBDOCFILE_MD5_CHECK_PROBABILITY and calculate_md5(self.fullpath) != 
self.checksum:
      2751                 raise InvenioWebSubmitFileError, "File %s, version 
%i, for record %s is corrupted!" % (self.fullname, self.version, self.recid)
      2752             stream_file(req, self.fullpath, "%s%s" % (self.name, 
self.superformat), self.mime, self.encoding, self.etag, self.checksum, 
self.fullurl)
----> 2753             raise apache.SERVER_RETURN, apache.DONE
      2754         else:
      2755             req.status = apache.HTTP_NOT_FOUND
      2756             raise InvenioWebSubmitFileError, "%s does not exists!" % 
self.fullpath
*******************************************************************************
                        self =  
'BibDocFile(\'/opt/invenio/var/data/files/g0/7/9806033.gif;icon;1\', \'Main\', 
1, \'9806033\', \'.gif;icon\', 7, 7, \'\', 
\'aa0b7a3d3774d7b394105391e4b65489\', BibDocMoreInfo(7, 
"(dp1\\nS\'flags\'\\np2\\n(dp3\\nsS\'descriptions\'\\np4\\n(dp5\\nsS\'comments\'\\np6\\n(dp7\\ns."),
 False)'
                         req =  
'<invenio.webinterface_handler_wsgi.SimulatedModPythonRequest object at 
0x7ffac921add0>'



Best regards
--
Atlantis Institute of Fictive Science <http://litweb> Need human intervention?  
Contact <[email protected]>

Reply via email to