Using Global Index to upload multiple images yields traceback

Issue #196 resolved
RogerHaase
created an issue

Using Firefox (or Chromium), go to global index page, select actions menu Create new item, Upload files, use file selector to select 2 image files, open, click Start All button: file server shows traceback in attached file - MultiFileUpload.txt.

Meanwhile, Firefox has rather strange display of resulting index page. After closing upload popup and clicking the global index tab the resulting page shows the image files were uploaded OK and may be viewed.

-- snip opened #327 as a separate issue: IE9 offers to download a file during upload.

Using Firefox or Chromium to upload one file at a time works OK.

Comments (9)

  1. RogerHaase reporter

    Whoosh closed bug as "invalid" long ago.

    Turns out this is not just a Windows bug, got similar error running on CentOS server trying to upload 4 small files.

    Traceback (most recent call last):
    File "/home/rockart/webapps/web/moin2-venv-python2.7/lib/python2.7/site-packages/flask/app.py", line 1982, in wsgi_app
     response = self.full_dispatch_request()
    File "/home/rockart/webapps/web/moin2-venv-python2.7/lib/python2.7/site-packages/flask/app.py", line 1614, in full_dispatch_request
     rv = self.handle_user_exception(e)
    File "/home/rockart/webapps/web/moin2-venv-python2.7/lib/python2.7/site-packages/flask/app.py", line 1517, in handle_user_exception
     reraise(exc_type, exc_value, tb)
    File "/home/rockart/webapps/web/moin2-venv-python2.7/lib/python2.7/site-packages/flask/app.py", line 1612, in full_dispatch_request
     rv = self.dispatch_request()
    File "/home/rockart/webapps/web/moin2-venv-python2.7/lib/python2.7/site-packages/flask/app.py", line 1598, in dispatch_request
     return self.view_functions[rule.endpoint](**req.view_args)
    File "/home/rockart/webapps/web/moin2/MoinMoin/apps/frontend/views.py", line 1019, in jfu_server
     revid, size = item.modify({}, data, contenttype_guessed=contenttype)
    File "/home/rockart/webapps/web/moin2/MoinMoin/items/__init__.py", line 553, in modify
     return self._save(meta, data, contenttype_guessed=contenttype_guessed, comment=comment)
    File "/home/rockart/webapps/web/moin2/MoinMoin/items/__init__.py", line 701, in _save
     return_rev=True,
    File "/home/rockart/webapps/web/moin2/MoinMoin/storage/middleware/protecting.py", line 319, in store_revision
     rev = self.item.store_revision(meta, data, overwrite=overwrite, return_rev=return_rev, fqname=fqname, **kw)
    File "/home/rockart/webapps/web/moin2/MoinMoin/storage/middleware/indexing.py", line 1143, in store_revision
     self.indexer.index_revision(meta, content, backend_name)
    File "/home/rockart/webapps/web/moin2/MoinMoin/storage/middleware/indexing.py", line 506, in index_revision
     writer = self.ix[ALL_REVS].writer()
    File "/home/rockart/webapps/web/moin2-venv-python2.7/lib/python2.7/site-packages/whoosh/index.py", line 464, in writer
     return SegmentWriter(self, **kwargs)
    File "/home/rockart/webapps/web/moin2-venv-python2.7/lib/python2.7/site-packages/whoosh/writing.py", line 515, in __init__
     raise LockError
    LockError
    
  2. Log in to comment