------------------------------------------------------------------------------- Test set: org.dataone.integration.it.testImplementations.SidMNTestImplementations ------------------------------------------------------------------------------- Tests run: 13, Failures: 6, Errors: 0, Skipped: 1, Time elapsed: 642.485 sec <<< FAILURE! testUpdate(org.dataone.integration.it.testImplementations.SidMNTestImplementations) Time elapsed: 87.98 sec <<< FAILURE! java.lang.AssertionError: update() Case 1, setup step failed for testUpdate(): couldn't archive(). Error: There was a problem archiving the object.The error message was: ERROR: update or delete on table "xml_documents" violates foreign key constraint "xml_index_docid_fk" on table "xml_index" at org.junit.Assert.fail(Assert.java:91) at org.junit.Assert.assertTrue(Assert.java:43) at org.dataone.integration.it.testImplementations.SidMNTestImplementations.testUpdate(SidMNTestImplementations.java:834) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.rules.Verifier$1.evaluate(Verifier.java:34) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at com.sun.proxy.$Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) testSidReuse(org.dataone.integration.it.testImplementations.SidMNTestImplementations) Time elapsed: 68.326 sec <<< FAILURE! java.lang.AssertionError: testSidReuse() : unable to set up test! : InvalidRequest : Identifier is unused on this Member Node. Expected a Series ID (SID). id="S2_20183613434382" at org.dataone.integration.it.testImplementations.SidMNTestImplementations.testSidReuse(SidMNTestImplementations.java:940) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.rules.Verifier$1.evaluate(Verifier.java:34) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at com.sun.proxy.$Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) testSidReuseDiffChain(org.dataone.integration.it.testImplementations.SidMNTestImplementations) Time elapsed: 83.657 sec <<< FAILURE! java.lang.AssertionError: testSidReuseDiffChain() : unable to set up test! : InvalidRequest : Identifier is unused on this Member Node. Expected a Series ID (SID). id="S2_201836134434752" at org.dataone.integration.it.testImplementations.SidMNTestImplementations.testSidReuseDiffChain(SidMNTestImplementations.java:993) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.rules.Verifier$1.evaluate(Verifier.java:34) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at com.sun.proxy.$Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) testGetPackage(org.dataone.integration.it.testImplementations.SidMNTestImplementations) Time elapsed: 36.307 sec <<< FAILURE! java.lang.AssertionError: https://pangaea-dev-orc-1.test.dataone.org/mn/v2 Case: 1 : ServiceFailure : -1 : 500: Internal Server Error: parser for deserializing HTML not written yet. Providing stripped-down html message body starting next line: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at email@monicaihli.com to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Apache/2.4.18 (Ubuntu) Server at pangaea-dev-orc-1.test.dataone.org Port 443 : 500: Internal Server Error: parser for deserializing HTML not written yet. Providing stripped-down html message body starting next line: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at email@monicaihli.com to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Apache/2.4.18 (Ubuntu) Server at pangaea-dev-orc-1.test.dataone.org Port 443 at org.dataone.integration.it.testImplementations.SidMNTestImplementations.testGetPackage(SidMNTestImplementations.java:768) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.rules.Verifier$1.evaluate(Verifier.java:34) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at com.sun.proxy.$Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) testDelete(org.dataone.integration.it.testImplementations.SidMNTestImplementations) Time elapsed: 68.571 sec <<< FAILURE! java.lang.AssertionError: Case: 0 : 500: Internal Server Error: parser for deserializing HTML not written yet. Providing stripped-down html message body starting next line: ValueError at /v2/object/S1_201836134839133 invalid literal for int() with base 10: '8rc14' Request Method: DELETE Request URL: https://pangaea-dev-orc-1.test.dataone.org/mn/v2/object/S1_201836134839133 Django Version: 1.11.6 Exception Type: ValueError Exception Value: invalid literal for int() with base 10: '8rc14' Exception Location: /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/sciobj_store.py in get_gmn_version, line 59 Python Executable: /var/local/dataone/gmn_venv/bin/python Python Version: 2.7.12 Python Path: ['/var/local/dataone/gmn_venv/lib/python2.7', '/var/local/dataone/gmn_venv/lib/python2.7/plat-x86_64-linux-gnu', '/var/local/dataone/gmn_venv/lib/python2.7/lib-tk', '/var/local/dataone/gmn_venv/lib/python2.7/lib-old', '/var/local/dataone/gmn_venv/lib/python2.7/lib-dynload', '/usr/lib/python2.7', '/usr/lib/python2.7/plat-x86_64-linux-gnu', '/usr/lib/python2.7/lib-tk', '/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages', '/var/local/dataone/gmn_venv/lib/python2.7/site-packages', '/var/local/dataone/gmn_venv/lib/python2.7/site-packages/d1_gmn', '/var/local/dataone/gmn_venv/lib/python2.7/site-packages'] Server time: Mon, 5 Feb 2018 21:49:00 +0000 Traceback Switch to copy-and-paste view /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/django/core/handlers/exception.py in inner This decorator is automatically applied to all middleware to ensure that no middleware leaks an exception and that the next middleware in the stack can rely on getting a response instead of an exception. """ @wraps(get_response, assigned=available_attrs(get_response)) def inner(request): try: response = get_response(request) ... except Exception as exc: response = response_for_exception(request, exc) return response return inner ▶ Local vars Variable Value exc ValueError("invalid literal for int() with base 10: '8rc14'",) get_response <bound method D1WSGIHandler._legacy_get_response of <_mod_wsgi_f3e916cfa46d3529aa9d5eaf0de8f85e.D1WSGIHandler object at 0x7f5408327410>> request <D1WSGIRequest: DELETE '/mn/v2/object/S1_201836134839133'> /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/django/core/handlers/base.py in _legacy_get_response # Apply request middleware for middleware_method in self._request_middleware: response = middleware_method(request) if response: break if response is None: response = self._get_response(request) ... return response ▶ Local vars Variable Value middleware_method <bound method RequestHandler.process_request of <d1_gmn.app.middleware.request_handler.RequestHandler object at 0x7f5401195350>> request <D1WSGIRequest: DELETE '/mn/v2/object/S1_201836134839133'> response None self <_mod_wsgi_f3e916cfa46d3529aa9d5eaf0de8f85e.D1WSGIHandler object at 0x7f5408327410> /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/django/core/handlers/base.py in _get_response break if response is None: wrapped_callback = self.make_view_atomic(callback) try: response = wrapped_callback(request, *callback_args, **callback_kwargs) except Exception as e: response = self.process_exception_by_middleware(e, request) ... # Complain if the view returned None (a common error). if response is None: if isinstance(callback, types.FunctionType): # FBV view_name = callback.__name__ else: # CBV ▶ Local vars Variable Value callback <function dispatch_object at 0x7f53fb9c27d0> callback_args (u'S1_201836134839133',) callback_kwargs {} e ValueError("invalid literal for int() with base 10: '8rc14'",) middleware_method <bound method ViewHandler.process_view of <d1_gmn.app.middleware.view_handler.ViewHandler object at 0x7f5400042990>> request <D1WSGIRequest: DELETE '/mn/v2/object/S1_201836134839133'> resolver <RegexURLResolver 'd1_gmn.app.urls' (None:None) ^/> resolver_match ResolverMatch(func=d1_gmn.app.views.external.dispatch_object, args=(u'S1_201836134839133',), kwargs={}, url_name=dispatch_object, app_names=[], namespaces=[]) response None self <_mod_wsgi_f3e916cfa46d3529aa9d5eaf0de8f85e.D1WSGIHandler object at 0x7f5408327410> wrapped_callback <function dispatch_object at 0x7f541700ac08> /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/django/core/handlers/base.py in _get_response response = middleware_method(request, callback, callback_args, callback_kwargs) if response: break if response is None: wrapped_callback = self.make_view_atomic(callback) try: response = wrapped_callback(request, *callback_args, **callback_kwargs) ... except Exception as e: response = self.process_exception_by_middleware(e, request) # Complain if the view returned None (a common error). if response is None: if isinstance(callback, types.FunctionType): # FBV ▶ Local vars Variable Value callback <function dispatch_object at 0x7f53fb9c27d0> callback_args (u'S1_201836134839133',) callback_kwargs {} e ValueError("invalid literal for int() with base 10: '8rc14'",) middleware_method <bound method ViewHandler.process_view of <d1_gmn.app.middleware.view_handler.ViewHandler object at 0x7f5400042990>> request <D1WSGIRequest: DELETE '/mn/v2/object/S1_201836134839133'> resolver <RegexURLResolver 'd1_gmn.app.urls' (None:None) ^/> resolver_match ResolverMatch(func=d1_gmn.app.views.external.dispatch_object, args=(u'S1_201836134839133',), kwargs={}, url_name=dispatch_object, app_names=[], namespaces=[]) response None self <_mod_wsgi_f3e916cfa46d3529aa9d5eaf0de8f85e.D1WSGIHandler object at 0x7f5408327410> wrapped_callback <function dispatch_object at 0x7f541700ac08> /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/django/utils/decorators.py in inner """ A base class that enables a context manager to also be used as a decorator. """ def __call__(self, func): @wraps(func, assigned=available_attrs(func)) def inner(*args, **kwargs): with self: return func(*args, **kwargs) ... return inner class classproperty(object): def __init__(self, method=None): self.fget = method ▶ Local vars Variable Value args (<D1WSGIRequest: DELETE '/mn/v2/object/S1_201836134839133'>, u'S1_201836134839133') func <function dispatch_object at 0x7f53fb9c27d0> kwargs {} self <django.db.transaction.Atomic object at 0x7f53fadda890> /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/views/external.py in dispatch_object # MNRead.describe() return head_object(request, did) elif request.method == 'PUT': # MNStorage.update() return put_object(request, did) elif request.method == 'DELETE': # MNStorage.delete() return delete_object(request, did) ... else: return django.http.HttpResponseNotAllowed( ['GET', 'HEAD', 'POST', 'PUT', 'DELETE'] ) ▶ Local vars Variable Value did u'S1_201836134839133' request <D1WSGIRequest: DELETE '/mn/v2/object/S1_201836134839133'> /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/restrict_to_verb.py in wrapper def allow_only_verbs(f, verbs): @functools.wraps(f) def wrapper(request, *args, **kwargs): if request.method not in verbs: return django.http.HttpResponseNotAllowed(verbs) return f(request, *args, **kwargs) ... return wrapper def get(f): return allow_only_verbs(f, ['GET']) ▶ Local vars Variable Value args (u'S1_201836134839133',) f <function delete_object at 0x7f53fb9de7d0> kwargs {} request <D1WSGIRequest: DELETE '/mn/v2/object/S1_201836134839133'> verbs ['DELETE'] /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/views/decorators.py in wrapper Django decodes URL elements before passing them to views, but passes "%2f" ("/") through undecoded. Why..? """ @functools.wraps(f) def wrapper(request, did, *args, **kwargs): return f( request, did.replace('%2f', '/').replace('%2F', '/'), *args, **kwargs ... ) # return f(request, d1_common.url.decodeQueryElement(did), *args, **kwargs) #return f(request, did, *args, **kwargs) return wrapper ▶ Local vars Variable Value args () did u'S1_201836134839133' f <function delete_object at 0x7f53fb9de758> kwargs {} request <D1WSGIRequest: DELETE '/mn/v2/object/S1_201836134839133'> /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/views/decorators.py in wrapper - For v2 calls, if DID is a valid PID, return it. If not, try to resolve it as a SID and, if successful, return the new PID. Else, raise NotFound exception. """ @functools.wraps(f) def wrapper(request, did, *args, **kwargs): pid = resolve_sid_func(request, did) return f(request, pid, *args, **kwargs) ... return wrapper def resolve_sid_func(request, did): if d1_gmn.app.views.util.is_v1_api(request): ▶ Local vars Variable Value args () did u'S1_201836134839133' f <function delete_object at 0x7f53fb9de6e0> kwargs {} pid u'P1_201836134839131' request <D1WSGIRequest: DELETE '/mn/v2/object/S1_201836134839133'> /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/views/decorators.py in wrapper """Access only by subjects with Create/Update/Delete permission and by trusted infrastructure (CNs). """ @functools.wraps(f) def wrapper(request, *args, **kwargs): d1_gmn.app.auth.assert_create_update_delete_permission(request) return f(request, *args, **kwargs) ... return wrapper def authenticated(f): """Access only with a valid session. ▶ Local vars Variable Value args (u'P1_201836134839131',) f <function delete_object at 0x7f53fb9de668> kwargs {} request <D1WSGIRequest: DELETE '/mn/v2/object/S1_201836134839133'> /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/views/external.py in delete_object @d1_gmn.app.restrict_to_verb.delete @d1_gmn.app.views.decorators.decode_id @d1_gmn.app.views.decorators.resolve_sid @d1_gmn.app.views.decorators.assert_create_update_delete_permission def delete_object(request, pid): """MNStorage.delete(session, did) → Identifier """ return d1_gmn.app.delete.delete_sciobj(pid) ... @d1_gmn.app.restrict_to_verb.put @d1_gmn.app.views.decorators.decode_id @d1_gmn.app.views.decorators.resolve_sid @d1_gmn.app.views.decorators.write_permission ▶ Local vars Variable Value pid u'P1_201836134839131' request <D1WSGIRequest: DELETE '/mn/v2/object/S1_201836134839133'> /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/delete.py in delete_sciobj import django.apps import django.conf def delete_sciobj(pid): sciobj = d1_gmn.app.models.ScienceObject.objects.get(pid__did=pid) url_split = urlparse.urlparse(sciobj.url) d1_gmn.app.sciobj_store.delete_sciobj(url_split, pid) ... delete_sciobj_from_database(pid) return pid def delete_all(): d1_gmn.app.sciobj_store.delete_all_sciobj() ▶ Local vars Variable Value pid u'P1_201836134839131' sciobj <ScienceObject: ScienceObject object> url_split ParseResult(scheme=u'file', netloc=u'', path=u'/P1_201836134839131', params='', query='', fragment='') /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/sciobj_store.py in delete_sciobj # for item_name in os.listdir(get_root_path()): # item_path = os.path.join(get_root_path(), item_name) # if is_store_subdir(item_path): # shutil.rmtree(get_root_path()) def delete_sciobj(url_split, pid): assert_sciobj_store_version_match() ... if not url_split.scheme == 'file': return sciobj_path = get_sciobj_file_path(pid) try: os.unlink(sciobj_path) except EnvironmentError: ▶ Local vars Variable Value pid u'P1_201836134839131' url_split ParseResult(scheme=u'file', netloc=u'', path=u'/P1_201836134839131', params='', query='', fragment='') /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/sciobj_store.py in assert_sciobj_store_version_match def is_tmp(): return get_root_path().startswith('/tmp/') def assert_sciobj_store_version_match(): if not is_matching_version(): ... raise d1_common.types.exceptions.ServiceFailure( 0, u'Attempted to modify non-matching filesystem store version. ' 'store="{}" gmn="{}" store_path="{}"'.format( get_store_version(), get_gmn_version(), get_store_version_path() ) ) /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/sciobj_store.py in is_matching_version def get_gmn_version(): return map(int, d1_gmn.__version__.split('.')) def is_matching_version(): return get_store_version() == get_gmn_version() ... def is_lower_version(): return get_store_version() < get_gmn_version() /var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/sciobj_store.py in get_gmn_version """ assert_sciobj_store_exists() hash_str = hashlib.sha1(pid.encode('utf-8')).hexdigest() return os.path.join(get_root_path(), hash_str[:2], hash_str[2:4], hash_str) def get_gmn_version(): return map(int, d1_gmn.__version__.split('.')) ... def is_matching_version(): return get_store_version() == get_gmn_version() Environment: Request Method: DELETE Request URL: https://pangaea-dev-orc-1.test.dataone.org/mn/v2/object/S1_201836134839133 Django Version: 1.11.6 Python Version: 2.7.12 Installed Applications: ['django.contrib.staticfiles', 'd1_gmn.app', 'd1_gmn.app.startup.GMNStartupChecks'] Installed Middleware: ('d1_gmn.app.middleware.request_handler.RequestHandler', 'd1_gmn.app.middleware.exception_handler.ExceptionHandler', 'd1_gmn.app.middleware.response_handler.ResponseHandler', 'd1_gmn.app.middleware.profiling_handler.ProfilingHandler', 'd1_gmn.app.middleware.view_handler.ViewHandler') Traceback: File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/django/core/handlers/exception.py" in inner 41. response = get_response(request) File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _legacy_get_response 249. response = self._get_response(request) File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response 187. response = self.process_exception_by_middleware(e, request) File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/django/core/handlers/base.py" in _get_response 185. response = wrapped_callback(request, *callback_args, **callback_kwargs) File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/django/utils/decorators.py" in inner 185. return func(*args, **kwargs) File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/views/external.py" in dispatch_object 85. return delete_object(request, did) File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/restrict_to_verb.py" in wrapper 39. return f(request, *args, **kwargs) File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/views/decorators.py" in wrapper 88. request, did.replace('%2f', '/').replace('%2F', '/'), *args, **kwargs File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/views/decorators.py" in wrapper 55. return f(request, pid, *args, **kwargs) File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/views/decorators.py" in wrapper 166. return f(request, *args, **kwargs) File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/views/external.py" in delete_object 645. return d1_gmn.app.delete.delete_sciobj(pid) File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/delete.py" in delete_sciobj 39. d1_gmn.app.sciobj_store.delete_sciobj(url_split, pid) File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/sciobj_store.py" in delete_sciobj 160. assert_sciobj_store_version_match() File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/sciobj_store.py" in assert_sciobj_store_version_match 134. if not is_matching_version(): File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/sciobj_store.py" in is_matching_version 63. return get_store_version() == get_gmn_version() File "/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/sciobj_store.py" in get_gmn_version 59. return map(int, d1_gmn.__version__.split('.')) Exception Type: ValueError at /v2/object/S1_201836134839133 Exception Value: invalid literal for int() with base 10: '8rc14' Request information USER [unable to retrieve the current user] GET No GET data POST No POST data FILES No FILES data COOKIES No cookie data META Variable Value CONTEXT_DOCUMENT_ROOT '/var/www/html' CONTEXT_PREFIX '' DOCUMENT_ROOT '/var/www/html' GATEWAY_INTERFACE 'CGI/1.1' HTTP_ACCEPT_ENCODING 'gzip,deflate' HTTP_CONNECTION 'Keep-Alive' HTTP_HOST 'pangaea-dev-orc-1.test.dataone.org' HTTP_USER_AGENT 'Apache-HttpClient/4.3.6 (java 1.5)' HTTP_VIA '1.1 localhost (Apache-HttpClient/4.3.6 (cache))' PATH_INFO u'/v2/object/S1_201836134839133' PATH_TRANSLATED '/var/www/html/v2/object/S1_201836134839133' QUERY_STRING '' REMOTE_ADDR '64.106.40.19' REMOTE_PORT '39990' REQUEST_METHOD 'DELETE' REQUEST_SCHEME 'https' REQUEST_URI '/mn/v2/object/S1_201836134839133' SCRIPT_FILENAME '/var/local/dataone/gmn_venv/lib/python2.7/site-packages/d1_gmn/wsgi.py' SCRIPT_NAME u'/mn' SERVER_ADDR '160.36.13.167' SERVER_ADMIN 'email@monicaihli.com' SERVER_NAME 'pangaea-dev-orc-1.test.dataone.org' SERVER_PORT '443' SERVER_PROTOCOL 'HTTP/1.1' SERVER_SIGNATURE '<address>Apache/2.4.18 (Ubuntu) Server at pangaea-dev-orc-1.test.dataone.org Port 443</address>\n' SERVER_SOFTWARE 'Apache/2.4.18 (Ubuntu)' SSL_CLIENT_CERT '-----BEGIN CERTIFICATE-----\nMIIFqzCCA5OgAwIBAgIJANoyY6KhLQCdMA0GCSqGSIb3DQEBBQUAMFUxEzARBgoJ\nkiaJk/IsZAEZFgNvcmcxFzAVBgoJkiaJk/IsZAEZFgdkYXRhb25lMSUwIwYDVQQD\nDBxEYXRhT05FIFRlc3QgSW50ZXJtZWRpYXRlIENBMB4XDTE1MDMyMDE4MTcwNloX\nDTE4MDMxOTE4MTcwNlowTzETMBEGCgmSJomT8ixkARkWA29yZzEXMBUGCgmSJomT\n8ixkARkWB2RhdGFvbmUxHzAdBgNVBAMMFnVybjpub2RlOmNuU2FuZGJveE9SQzEw\nggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCpOO/YcfPm8fM2s1hwSSzT\naFPizLuxIC9x8GPmcU+zSJwKAjzcxKTC8p8u+e9lREmbrq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z9J+/Tb\n4Y9g8xCIadwSPZ5kE9bdjgP+/AnesARsYdKpykc5r6h0onWm1SznH2MPUIEYE3wq\nLwUDvhdIoThBmF7I4MjXNmw9Aa+8ktqkDmTBAAl3x8xFSXmR+2iliA6fQHMUM4ci\n7tqTXjxOWYzAaLxvPqwli8G+26bZI7sjVMmzY7LuS4Pw9qo13FKYNqDtqMafvTSz\ni9nwPFfq38q8424Pty+4F/0QIc/GJviLHZUD\n-----END CERTIFICATE-----\n' SSL_TLS_SNI 'pangaea-dev-orc-1.test.dataone.org' apache.version (2, 4, 18) mod_wsgi.application_group '' mod_wsgi.callable_object 'application' mod_wsgi.daemon_connects '1' mod_wsgi.daemon_restarts '0' mod_wsgi.daemon_start '1517867339916916' mod_wsgi.enable_sendfile '0' mod_wsgi.handler_script '' mod_wsgi.input_chunked '0' mod_wsgi.listener_host '' mod_wsgi.listener_port '443' mod_wsgi.process_group 'gmn2' mod_wsgi.queue_start '1517867339916659' mod_wsgi.request_handler 'wsgi-script' mod_wsgi.request_start '1517867339916139' mod_wsgi.script_reloading '1' mod_wsgi.script_start '1517867339916985' mod_wsgi.version (4, 3, 0) wsgi.errors <mod_wsgi.Log object at 0x7f53fab8c9c0> wsgi.file_wrapper '' wsgi.input <mod_wsgi.Input object at 0x7f53fac58e30> wsgi.multiprocess True wsgi.multithread True wsgi.run_once False wsgi.url_scheme 'https' wsgi.version (1, 0) Settings Using settings module d1_gmn.settings Setting Value ABSOLUTE_URL_OVERRIDES {} ADMINS (('My Name', 'my_address@my_email.tld'),) ALLOWED_HOSTS ['localhost', '127.0.0.1'] APPEND_SLASH True AUTHENTICATION_BACKENDS [u'django.contrib.auth.backends.ModelBackend'] AUTH_PASSWORD_VALIDATORS u'********************' AUTH_USER_MODEL u'auth.User' CACHES {'default': {'BACKEND': 'django.core.cache.backends.locmem.LocMemCache', 'TIMEOUT': 3600}} CACHE_MIDDLEWARE_ALIAS u'default' CACHE_MIDDLEWARE_KEY_PREFIX u'********************' CACHE_MIDDLEWARE_SECONDS 600 CLIENT_CERT_PATH '/var/local/dataone/certs/client/urn_node_mnTestPANGAEA-1.pem' CLIENT_CERT_PRIVATE_KEY_PATH u'********************' CSRF_COOKIE_AGE 31449600 CSRF_COOKIE_DOMAIN None CSRF_COOKIE_HTTPONLY False CSRF_COOKIE_NAME u'csrftoken' CSRF_COOKIE_PATH u'/' CSRF_COOKIE_SECURE False CSRF_FAILURE_VIEW u'django.views.csrf.csrf_failure' CSRF_HEADER_NAME u'HTTP_X_CSRFTOKEN' CSRF_TRUSTED_ORIGINS [] CSRF_USE_SESSIONS False DATABASES {'default': {'ATOMIC_REQUESTS': True, 'AUTOCOMMIT': True, 'CONN_MAX_AGE': 0, 'ENGINE': 'django.db.backends.postgresql_psycopg2', 'HOST': '', 'NAME': 'gmn2', 'OPTIONS': {}, 'PASSWORD': u'********************', 'PORT': '', 'TEST': {'CHARSET': None, 'COLLATION': None, 'MIRROR': None, 'NAME': None}, 'TIME_ZONE': None, 'USER': ''}} DATABASE_ROUTERS [] DATAONE_ROOT 'https://cn-sandbox.test.dataone.org/cn' DATAONE_TRUSTED_SUBJECTS set([]) DATA_UPLOAD_MAX_MEMORY_SIZE 2621440 DATA_UPLOAD_MAX_NUMBER_FIELDS 1000 DATETIME_FORMAT u'N j, Y, P' DATETIME_INPUT_FORMATS [u'%Y-%m-%d %H:%M:%S', u'%Y-%m-%d %H:%M:%S.%f', u'%Y-%m-%d %H:%M', u'%Y-%m-%d', u'%m/%d/%Y %H:%M:%S', u'%m/%d/%Y %H:%M:%S.%f', u'%m/%d/%Y %H:%M', u'%m/%d/%Y', u'%m/%d/%y %H:%M:%S', u'%m/%d/%y %H:%M:%S.%f', u'%m/%d/%y %H:%M', u'%m/%d/%y'] DATE_FORMAT u'N j, Y' DATE_INPUT_FORMATS [u'%Y-%m-%d', u'%m/%d/%Y', u'%m/%d/%y', u'%b %d %Y', u'%b %d, %Y', u'%d %b %Y', u'%d %b, %Y', u'%B %d %Y', u'%B %d, %Y', u'%d %B %Y', u'%d %B, %Y'] DEBUG True DEBUG_ALLOW_INTEGRATION_TESTS False DEBUG_ECHO_REQUEST False DEBUG_GMN True DEBUG_PROFILE_SQL False DEBUG_PROPAGATE_EXCEPTIONS False DEBUG_PYCHARM False DEBUG_PYCHARM_BIN 'pycharm.sh' DECIMAL_SEPARATOR u'.' DEFAULT_CHARSET u'utf-8' DEFAULT_CONTENT_TYPE u'text/html' DEFAULT_EXCEPTION_REPORTER_FILTER u'django.views.debug.SafeExceptionReporterFilter' DEFAULT_FILE_STORAGE u'django.core.files.storage.FileSystemStorage' DEFAULT_FROM_EMAIL u'webmaster@localhost' DEFAULT_INDEX_TABLESPACE u'' DEFAULT_TABLESPACE u'' DISALLOWED_USER_AGENTS [] EMAIL_BACKEND u'django.core.mail.backends.smtp.EmailBackend' EMAIL_HOST u'localhost' EMAIL_HOST_PASSWORD u'********************' EMAIL_HOST_USER u'' EMAIL_PORT 25 EMAIL_SSL_CERTFILE None EMAIL_SSL_KEYFILE u'********************' EMAIL_SUBJECT_PREFIX u'[Django] ' EMAIL_TIMEOUT None EMAIL_USE_LOCALTIME False EMAIL_USE_SSL False EMAIL_USE_TLS False FILE_CHARSET u'utf-8' FILE_UPLOAD_DIRECTORY_PERMISSIONS None FILE_UPLOAD_HANDLERS [u'django.core.files.uploadhandler.MemoryFileUploadHandler', u'django.core.files.uploadhandler.TemporaryFileUploadHandler'] FILE_UPLOAD_MAX_MEMORY_SIZE 2621440 FILE_UPLOAD_PERMISSIONS None FILE_UPLOAD_TEMP_DIR None FIRST_DAY_OF_WEEK 0 FIXTURE_DIRS [] FORCE_SCRIPT_NAME None FORMAT_MODULE_PATH None FORM_RENDERER u'django.forms.renderers.DjangoTemplates' IGNORABLE_404_URLS [] INSTALLED_APPS ['django.contrib.staticfiles', 'd1_gmn.app', 'd1_gmn.app.startup.GMNStartupChecks'] INTERNAL_IPS [] LANGUAGES [(u'af', u'Afrikaans'), (u'ar', u'Arabic'), (u'ast', u'Asturian'), (u'az', u'Azerbaijani'), (u'bg', u'Bulgarian'), (u'be', u'Belarusian'), (u'bn', u'Bengali'), (u'br', u'Breton'), (u'bs', u'Bosnian'), (u'ca', u'Catalan'), (u'cs', u'Czech'), (u'cy', u'Welsh'), (u'da', u'Danish'), (u'de', u'German'), (u'dsb', u'Lower Sorbian'), (u'el', u'Greek'), (u'en', u'English'), (u'en-au', u'Australian English'), (u'en-gb', u'British English'), (u'eo', u'Esperanto'), (u'es', u'Spanish'), (u'es-ar', u'Argentinian Spanish'), (u'es-co', u'Colombian Spanish'), (u'es-mx', u'Mexican Spanish'), (u'es-ni', u'Nicaraguan Spanish'), (u'es-ve', u'Venezuelan Spanish'), (u'et', u'Estonian'), (u'eu', u'Basque'), (u'fa', u'Persian'), (u'fi', u'Finnish'), (u'fr', u'French'), (u'fy', u'Frisian'), (u'ga', u'Irish'), (u'gd', u'Scottish Gaelic'), (u'gl', u'Galician'), (u'he', u'Hebrew'), (u'hi', u'Hindi'), (u'hr', u'Croatian'), (u'hsb', u'Upper Sorbian'), (u'hu', u'Hungarian'), (u'ia', u'Interlingua'), (u'id', u'Indonesian'), (u'io', u'Ido'), (u'is', u'Icelandic'), (u'it', u'Italian'), (u'ja', u'Japanese'), (u'ka', u'Georgian'), (u'kk', u'Kazakh'), (u'km', u'Khmer'), (u'kn', u'Kannada'), (u'ko', u'Korean'), (u'lb', u'Luxembourgish'), (u'lt', u'Lithuanian'), (u'lv', u'Latvian'), (u'mk', u'Macedonian'), (u'ml', u'Malayalam'), (u'mn', u'Mongolian'), (u'mr', u'Marathi'), (u'my', u'Burmese'), (u'nb', u'Norwegian Bokm\xe5l'), (u'ne', u'Nepali'), (u'nl', u'Dutch'), (u'nn', u'Norwegian Nynorsk'), (u'os', u'Ossetic'), (u'pa', u'Punjabi'), (u'pl', u'Polish'), (u'pt', u'Portuguese'), (u'pt-br', u'Brazilian Portuguese'), (u'ro', u'Romanian'), (u'ru', u'Russian'), (u'sk', u'Slovak'), (u'sl', u'Slovenian'), (u'sq', u'Albanian'), (u'sr', u'Serbian'), (u'sr-latn', u'Serbian Latin'), (u'sv', u'Swedish'), (u'sw', u'Swahili'), (u'ta', u'Tamil'), (u'te', u'Telugu'), (u'th', u'Thai'), (u'tr', u'Turkish'), (u'tt', u'Tatar'), (u'udm', u'Udmurt'), (u'uk', u'Ukrainian'), (u'ur', u'Urdu'), (u'vi', u'Vietnamese'), (u'zh-hans', u'Simplified Chinese'), (u'zh-hant', u'Traditional Chinese')] LANGUAGES_BIDI [u'he', u'ar', u'fa', u'ur'] LANGUAGE_CODE 'en-us' LANGUAGE_COOKIE_AGE None LANGUAGE_COOKIE_DOMAIN None LANGUAGE_COOKIE_NAME u'django_language' LANGUAGE_COOKIE_PATH u'/' LOCALE_PATHS [] LOGGING {'disable_existing_loggers': True, 'formatters': {'simple': {'format': '%(levelname)s %(message)s'}, 'verbose': {'datefmt': '%Y-%m-%d %H:%M:%S', 'format': '%(asctime)s %(levelname)-8s %(name)s %(module)s %(process)d %(thread)d %(message)s'}}, 'handlers': {'file': {'class': 'logging.FileHandler', 'filename': '/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/gmn.log', 'formatter': 'verbose', 'level': 'DEBUG'}, 'null': {'class': 'logging.NullHandler', 'level': 'DEBUG'}}, 'loggers': {'': {'handlers': ['file'], 'level': 'DEBUG', 'propagate': True}, 'django': {'handlers': ['file'], 'level': 'DEBUG', 'propagate': False}, 'django.db.backends': {'handlers': ['null'], 'level': 'WARNING', 'propagate': False}}, 'version': 1} LOGGING_CONFIG u'logging.config.dictConfig' LOGIN_REDIRECT_URL u'/accounts/profile/' LOGIN_URL u'/accounts/login/' LOGOUT_REDIRECT_URL None LOG_LEVEL 'DEBUG' LOG_PATH '/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/gmn.log' MANAGERS [] MAX_XML_DOCUMENT_SIZE 10485760 MEDIA_ROOT u'' MEDIA_URL '' MESSAGE_STORAGE u'django.contrib.messages.storage.fallback.FallbackStorage' MIDDLEWARE None MIDDLEWARE_CLASSES ('d1_gmn.app.middleware.request_handler.RequestHandler', 'd1_gmn.app.middleware.exception_handler.ExceptionHandler', 'd1_gmn.app.middleware.response_handler.ResponseHandler', 'd1_gmn.app.middleware.profiling_handler.ProfilingHandler', 'd1_gmn.app.middleware.view_handler.ViewHandler') MIGRATION_MODULES {} MONITOR True MONTH_DAY_FORMAT u'F j' NODE_BASEURL 'https://pangaea-dev-orc-1.test.dataone.org/mn' NODE_CONTACT_SUBJECT 'CN=M I A213106, O=Google, C=US, DC=cilogon, DC=org' NODE_DESCRIPTION 'PANGAEA is an Open Access library aimed at archiving, publishing and distributing georeferenced data from earth system research.' NODE_IDENTIFIER 'urn:node:mnTestPANGAEA' NODE_NAME 'Pangaea' NODE_REPLICATE False NODE_STATE 'up' NODE_SUBJECT 'CN=urn:node:mnTestPANGAEA,DC=dataone,DC=org' NODE_SYNCHRONIZE True NODE_SYNC_SCHEDULE_HOUR '*' NODE_SYNC_SCHEDULE_MINUTE '42' NODE_SYNC_SCHEDULE_MONTH '*' NODE_SYNC_SCHEDULE_MONTHDAY '*' NODE_SYNC_SCHEDULE_SECOND '0' NODE_SYNC_SCHEDULE_WEEKDAY '?' NODE_SYNC_SCHEDULE_YEAR '*' NUMBER_GROUPING 0 NUM_CHUNK_BYTES 1048576 OBJECT_STORE_PATH '/var/local/dataone/gmn_object_store' PASSWORD_HASHERS u'********************' PASSWORD_RESET_TIMEOUT_DAYS u'********************' PREPEND_WWW False PROXY_MODE_BASIC_AUTH_ENABLED False PROXY_MODE_BASIC_AUTH_PASSWORD u'********************' PROXY_MODE_BASIC_AUTH_USERNAME '' PROXY_MODE_STREAM_TIMEOUT 30 PUBLIC_LOG_RECORDS True PUBLIC_OBJECT_LIST True REPLICATION_ALLOWEDNODE () REPLICATION_ALLOWEDOBJECTFORMAT () REPLICATION_ALLOW_ONLY_PUBLIC False REPLICATION_MAXOBJECTSIZE -1 REPLICATION_MAX_ATTEMPTS 24 REPLICATION_SPACEALLOCATED 10737418240 REQUIRE_WHITELIST_FOR_UPDATE True ROOT_URLCONF 'd1_gmn.app.urls' SECRET_KEY u'********************' SECURE_BROWSER_XSS_FILTER False SECURE_CONTENT_TYPE_NOSNIFF False SECURE_HSTS_INCLUDE_SUBDOMAINS False SECURE_HSTS_PRELOAD False SECURE_HSTS_SECONDS 0 SECURE_PROXY_SSL_HEADER None SECURE_REDIRECT_EXEMPT [] SECURE_SSL_HOST None SECURE_SSL_REDIRECT False SERVER_EMAIL u'root@localhost' SESSION_CACHE_ALIAS u'default' SESSION_COOKIE_AGE 1209600 SESSION_COOKIE_DOMAIN None SESSION_COOKIE_HTTPONLY True SESSION_COOKIE_NAME u'sessionid' SESSION_COOKIE_PATH u'/' SESSION_COOKIE_SECURE True SESSION_ENGINE u'django.contrib.sessions.backends.db' SESSION_EXPIRE_AT_BROWSER_CLOSE False SESSION_FILE_PATH None SESSION_SAVE_EVERY_REQUEST False SESSION_SERIALIZER u'django.contrib.sessions.serializers.JSONSerializer' SETTINGS_MODULE 'd1_gmn.settings' SHORT_DATETIME_FORMAT u'm/d/Y P' SHORT_DATE_FORMAT u'm/d/Y' SIGNING_BACKEND u'django.core.signing.TimestampSigner' SILENCED_SYSTEM_CHECKS [] STAND_ALONE False STATICFILES_DIRS [] STATICFILES_FINDERS [u'django.contrib.staticfiles.finders.FileSystemFinder', u'django.contrib.staticfiles.finders.AppDirectoriesFinder'] STATICFILES_STORAGE u'django.contrib.staticfiles.storage.StaticFilesStorage' STATIC_ROOT None STATIC_URL '/static/' SYSMETA_REFRESH_MAX_ATTEMPTS 24 TEMPLATES [{'BACKEND': 'django.template.backends.django.DjangoTemplates', 'DIRS': ['/var/local/dataone/gmn_venv/local/lib/python2.7/site-packages/d1_gmn/app/templates'], 'OPTIONS': {'context_processors': ['django.contrib.auth.context_processors.auth', 'django.template.context_processors.debug', 'django.template.context_processors.i18n', 'django.template.context_processors.media', 'django.template.context_processors.static', 'django.template.context_processors.tz', 'django.contrib.messages.context_processors.messages'], 'loaders': ['django.template.loaders.filesystem.Loader']}}] TEST_NON_SERIALIZED_APPS [] TEST_RUNNER u'django.test.runner.DiscoverRunner' THOUSAND_SEPARATOR u',' TIME_FORMAT u'P' TIME_INPUT_FORMATS [u'%H:%M:%S', u'%H:%M:%S.%f', u'%H:%M'] TIME_ZONE 'UTC' TRUST_CLIENT_AUTHORITATIVEMEMBERNODE True TRUST_CLIENT_DATESYSMETADATAMODIFIED True TRUST_CLIENT_DATEUPLOADED True TRUST_CLIENT_ORIGINMEMBERNODE True TRUST_CLIENT_SERIALVERSION False TRUST_CLIENT_SUBMITTER True USE_ETAGS False USE_I18N False USE_L10N False USE_THOUSAND_SEPARATOR False USE_TZ False USE_X_FORWARDED_HOST False USE_X_FORWARDED_PORT False WSGI_APPLICATION None X_FRAME_OPTIONS u'SAMEORIGIN' YEAR_MONTH_FORMAT u'F Y' You're seeing this error because you have DEBUG = True in your Django settings file. Change that to False, and Django will display a standard page generated by the handler for this status code. [for host DELETE https://pangaea-dev-orc-1.test.dataone.org/mn/v2/object/S1_201836134839133 ] at org.junit.Assert.fail(Assert.java:91) at org.dataone.integration.ContextAwareTestCaseDataone$5.call(ContextAwareTestCaseDataone.java:1825) at org.junit.rules.ErrorCollector.checkSucceeds(ErrorCollector.java:70) at org.dataone.integration.ContextAwareTestCaseDataone.handleFail(ContextAwareTestCaseDataone.java:1820) at org.dataone.integration.it.testImplementations.SidCommonTestImplementations.testDelete(SidCommonTestImplementations.java:536) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.rules.Verifier$1.evaluate(Verifier.java:34) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at com.sun.proxy.$Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69) testView(org.dataone.integration.it.testImplementations.SidMNTestImplementations) Time elapsed: 40.908 sec <<< FAILURE! java.lang.AssertionError: 500: Internal Server Error: parser for deserializing HTML not written yet. Providing stripped-down html message body starting next line: Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator at email@monicaihli.com to inform them of the time this error occurred, and the actions you performed just before this error. More information about this error may be available in the server error log. Apache/2.4.18 (Ubuntu) Server at pangaea-dev-orc-1.test.dataone.org Port 443 [for host https://pangaea-dev-orc-1.test.dataone.org/mn/v2 ] at org.junit.Assert.fail(Assert.java:91) at org.dataone.integration.ContextAwareTestCaseDataone$5.call(ContextAwareTestCaseDataone.java:1825) at org.junit.rules.ErrorCollector.checkSucceeds(ErrorCollector.java:70) at org.dataone.integration.ContextAwareTestCaseDataone.handleFail(ContextAwareTestCaseDataone.java:1820) at org.dataone.integration.it.testImplementations.SidCommonTestImplementations.testView(SidCommonTestImplementations.java:729) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20) at org.junit.rules.Verifier$1.evaluate(Verifier.java:34) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76) at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184) at org.junit.runners.ParentRunner.run(ParentRunner.java:236) at org.apache.maven.surefire.junit4.JUnit4TestSet.execute(JUnit4TestSet.java:53) at org.apache.maven.surefire.junit4.JUnit4Provider.executeTestSet(JUnit4Provider.java:119) at org.apache.maven.surefire.junit4.JUnit4Provider.invoke(JUnit4Provider.java:101) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at org.apache.maven.surefire.booter.ProviderFactory$ClassLoaderProxy.invoke(ProviderFactory.java:103) at com.sun.proxy.$Proxy0.invoke(Unknown Source) at org.apache.maven.surefire.booter.SurefireStarter.invokeProvider(SurefireStarter.java:150) at org.apache.maven.surefire.booter.SurefireStarter.runSuitesInProcess(SurefireStarter.java:91) at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:69)