Unknown server error: server failed on moving files

Bug #860918 reported by JimPGlenn
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
KARL3
Invalid
Medium
Chris Rossi

Bug Description

This error occurred on branch 1 during testing of moving files from a folder to home in the tester community. The error on the screen read unknown server error. The monitor had the following:

Tue Sep 27 17:10:36 2011 Exception when processing https://karlstaging.gocept.com/branch1/osf/communities/tester/files/folderb/move_files.json Referer: https://karlstaging.gocept.com/branch1/osf/communities/tester/files/folderb/ Traceback (most recent call last): File "/srv/osfkarltest/staging/branch1/src/karl/karl/errorlog.py", line 18, in middleware return app(environ, start_response) File "/srv/osfkarltest/staging/branch1/eggs/repoze.retry-0.9.4-py2.6.egg/repoze/retry/__init__.py", line 88, in __call__ app_iter = self.application(environ, replace_start_response) File "/srv/osfkarltest/staging/branch1/eggs/repoze.zodbconn-0.11-py2.6.egg/repoze/zodbconn/connector.py", line 21, in __call__ result = self.next_app(environ, start_response) File "/srv/osfkarltest/staging/branch1/eggs/repoze.tm2-1.0a5-py2.6.egg/repoze/tm/__init__.py", line 23, in __call__ result = self.application(environ, save_status_and_headers) File "/srv/osfkarltest/staging/branch1/eggs/repoze.who-1.0.15-py2.6.egg/repoze/who/middleware.py", line 107, in __call__ app_iter = app(environ, wrapper.wrap_start_response) File "/srv/osfkarltest/staging/branch1/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/router.py", line 130, in __call__ response = view_callable(context, request) File "/srv/osfkarltest/staging/branch1/eggs/repoze.bfg-1.2-py2.6.egg/repoze/bfg/configuration.py", line 1753, in _secured_view return view(context, request) File "/srv/osfkarltest/staging/branch1/src/karl/karl/content/views/files.py", line 1141, in ajax_file_reorganize_moveto_view del context[filename] File "/srv/osfkarltest/staging/branch1/eggs/repoze.folder-0.6.2-py2.6.egg/repoze/folder/__init__.py", line 151, in __delitem__ return self.remove(name) File "/srv/osfkarltest/staging/branch1/eggs/repoze.folder-0.6.2-py2.6.egg/repoze/folder/__init__.py", line 180, in remove objectEventNotify(ObjectRemovedEvent(other, self, name)) File "/srv/osfkarltest/staging/branch1/eggs/zope.component-3.6.0-py2.6.egg/zope/component/event.py", line 33, in objectEventNotify adapters = zope.component.subscribers((event.object, event), None) File "/srv/osfkarltest/staging/branch1/eggs/zope.component-3.6.0-py2.6.egg/zope/component/_api.py", line 138, in subscribers return sitemanager.subscribers(objects, interface) File "/srv/osfkarltest/staging/branch1/eggs/zope.component-3.6.0-py2.6.egg/zope/component/registry.py", line 315, in subscribers return self.adapters.subscribers(objects, provided) File "/srv/osfkarltest/staging/branch1/eggs/zope.interface-3.5.1-py2.6-linux-i686.egg/zope/interface/adapter.py", line 535, in subscribers subscription(*objects) File "/srv/osfkarltest/staging/branch1/src/karl/karl/models/subscribers.py", line 209, in delete_in_repo repo.archive_container(adapter, user) File "/srv/osfkarltest/staging/branch1/eggs/repozitory-0.2-py2.6.egg/repozitory/archive.py", line 317, in archive_container .filter_by(container_id=container_id) File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/orm/query.py", line 1718, in first ret = list(self[0:1]) File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/orm/query.py", line 1615, in __getitem__ return list(res) File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/orm/query.py", line 1786, in __iter__ self.session._autoflush() File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/orm/session.py", line 901, in _autoflush self.flush() File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/orm/session.py", line 1473, in flush self._flush(objects) File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/orm/session.py", line 1542, in _flush flush_context.execute() File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/orm/unitofwork.py", line 327, in execute rec.execute(self) File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/orm/unitofwork.py", line 471, in execute uow File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/orm/mapper.py", line 2136, in _save_obj execute(statement, multiparams) File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/engine/base.py", line 1358, in execute params) File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/engine/base.py", line 1491, in _execute_clauseelement compiled_sql, distilled_params File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/engine/base.py", line 1599, in _execute_context context) File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/engine/base.py", line 1586, in _execute_context context) File "/srv/osfkarltest/staging/branch1/eggs/SQLAlchemy-0.7.1-py2.6-linux-i686.egg/sqlalchemy/engine/default.py", line 322, in do_executemany cursor.executemany(statement, parameters) IntegrityError: (IntegrityError) insert or update on table "archived_item" violates foreign key constraint "archived_item_docid_fkey" DETAIL: Key (docid)=(-1973369087) is not present in table "archived_object". 'INSERT INTO archived_item (container_id, namespace, name, docid) VALUES (%(container_id)s, %(namespace)s, %(name)s, %(docid)s)' ({'namespace': u'', 'container_id': 194121203, 'docid': -1973369087, 'name': u'folderb'}, {'namespace': u'', 'container_id': 194121203, 'docid': 134316986, 'name': u'test_text.txt'}, {'namespace': u'', 'container_id': 194121203, 'docid': 2025760051, 'name': u'chicken_recipe-1.jpg'}, {'namespace': u'', 'container_id': 194121203, 'docid': -1973369088, 'name': u'foldera'}, {'namespace': u'', 'container_id': 194121203, 'docid': 2025760050, 'name': u'chicken_recipe.jpg'})

JimPGlenn (jpglenn09)
Changed in karl3:
importance: Undecided → Medium
assignee: nobody → Chris Rossi (chris-archimedeanco)
milestone: none → m76
milestone: m76 → m75
Revision history for this message
Chris Rossi (chris-archimedeanco) wrote :

Sorry, there was still a step that hadn't run yet for initializing the repository on staging. This should work now.

Changed in karl3:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.