Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deleting a collection....doesn't. #50

Closed
whikloj opened this issue Sep 28, 2015 · 20 comments
Closed

Deleting a collection....doesn't. #50

whikloj opened this issue Sep 28, 2015 · 20 comments

Comments

@whikloj
Copy link
Member

whikloj commented Sep 28, 2015

Created a collection via the Drupal interface.

(It did have the title "Archives & Special Collections")

When I went to delete it, it is removed from Drupal. But this is what I saw in the catalina.out logs.

[2015-09-28 18:06:09] LogUpdateProcessor INFO  [collection1] webapp=/solr path=/update params={wt=json} {} 0 1
[2015-09-28 18:06:09] SolrCore   ERROR org.apache.solr.common.SolrException: undefined field sm_parent_document_id
    at org.apache.solr.schema.IndexSchema.getDynamicFieldType(IndexSchema.java:1269)
    at org.apache.solr.schema.IndexSchema$SolrQueryAnalyzer.getWrappedAnalyzer(IndexSchema.java:434)
    at org.apache.lucene.analysis.DelegatingAnalyzerWrapper$DelegatingReuseStrategy.getReusableComponents(DelegatingAnalyzerWrapper.java:74)
    at org.apache.lucene.analysis.Analyzer.tokenStream(Analyzer.java:175)
    at org.apache.lucene.util.QueryBuilder.createFieldQuery(QueryBuilder.java:207)
    at org.apache.solr.parser.SolrQueryParserBase.newFieldQuery(SolrQueryParserBase.java:374)
    at org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:742)
    at org.apache.solr.parser.SolrQueryParserBase.getFieldQuery(SolrQueryParserBase.java:387)
    at org.apache.solr.parser.SolrQueryParserBase.handleQuotedTerm(SolrQueryParserBase.java:555)
    at org.apache.solr.parser.QueryParser.Term(QueryParser.java:403)
    at org.apache.solr.parser.QueryParser.Clause(QueryParser.java:185)
    at org.apache.solr.parser.QueryParser.Query(QueryParser.java:139)
    at org.apache.solr.parser.QueryParser.TopLevelQuery(QueryParser.java:96)
    at org.apache.solr.parser.SolrQueryParserBase.parse(SolrQueryParserBase.java:151)
    at org.apache.solr.search.LuceneQParser.parse(LuceneQParser.java:50)
    at org.apache.solr.search.QParser.getQuery(QParser.java:141)
    at org.apache.solr.update.DirectUpdateHandler2.getQuery(DirectUpdateHandler2.java:354)
    at org.apache.solr.update.DirectUpdateHandler2.deleteByQuery(DirectUpdateHandler2.java:384)
    at org.apache.solr.update.processor.RunUpdateProcessor.processDelete(RunUpdateProcessorFactory.java:80)
    at org.apache.solr.update.processor.UpdateRequestProcessor.processDelete(UpdateRequestProcessor.java:55)
    at org.apache.solr.update.processor.DistributedUpdateProcessor.doLocalDelete(DistributedUpdateProcessor.java:931)
    at org.apache.solr.update.processor.DistributedUpdateProcessor.doDeleteByQuery(DistributedUpdateProcessor.java:1433)
    at org.apache.solr.update.processor.DistributedUpdateProcessor.processDelete(DistributedUpdateProcessor.java:1226)
    at org.apache.solr.update.processor.LogUpdateProcessor.processDelete(LogUpdateProcessorFactory.java:121)
    at org.apache.solr.handler.loader.XMLLoader.processDelete(XMLLoader.java:349)
    at org.apache.solr.handler.loader.XMLLoader.processUpdate(XMLLoader.java:278)
    at org.apache.solr.handler.loader.XMLLoader.load(XMLLoader.java:174)
    at org.apache.solr.handler.UpdateRequestHandler$1.load(UpdateRequestHandler.java:99)
    at org.apache.solr.handler.ContentStreamHandlerBase.handleRequestBody(ContentStreamHandlerBase.java:74)
    at org.apache.solr.handler.RequestHandlerBase.handleRequest(RequestHandlerBase.java:135)
    at org.apache.solr.core.SolrCore.execute(SolrCore.java:1976)
    at org.apache.solr.servlet.SolrDispatchFilter.execute(SolrDispatchFilter.java:777)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:418)
    at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:207)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:241)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:220)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:122)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:170)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:98)
    at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:950)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:116)
    at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
    at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
    at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:607)
    at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:313)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    at java.lang.Thread.run(Thread.java:745)

It is not removed from Fedora.

@daniel-dgi
Copy link
Contributor

That solr bit might be a red herring. We should make another ticket to move to osgi fcrepo-camel-toolbox and not install the solr indexer since we get that for free with Drupal.

The not getting deleted from Fedora bit is still extremely relevant, though!

@whikloj
Copy link
Member Author

whikloj commented Sep 28, 2015

Yeah I just noted it was looking for Solr on the wrong port (localhost:8983). So that is not relevant.

@ruebot
Copy link
Member

ruebot commented Sep 28, 2015

Yeah, that's the camel tool box. We should probably custom compile that with the proper configuration.

@daniel-dgi
Copy link
Contributor

In case someone gets around to this before me, I recently did it for fcrepo4-vagrant in preperation for HydraConnect 2015.

See: fcrepo-exts/fcrepo-vagrant@82d1da5

@whikloj
Copy link
Member Author

whikloj commented Sep 28, 2015

...you already have karaf installed, so I'll work to add the fcrepo-camel-toolbox.script.

@ruebot
Copy link
Member

ruebot commented Sep 28, 2015

I think we just need to set the solr.baseUrl as described here, and then compile... instead of just grabbing the war.

@ruebot
Copy link
Member

ruebot commented Sep 28, 2015

...or not use Solr, because we're using Drupal's Solr 😄

@daniel-dgi
Copy link
Contributor

I'd just switch over to using karaf and then not install the indexing-solr feature.

@whikloj
Copy link
Member Author

whikloj commented Sep 28, 2015

Yeah but the karaf is easier, I've got a PR for the fcrepo-webapp-plus. You can even set the path once it's running and it just works. I may be coming around to OSGi.

@ruebot
Copy link
Member

ruebot commented Oct 7, 2015

I just tested this out on the #47 branch, and it deleted fine.

fcrepo web interface:

Discovered tombstone resource at /26/07/15/3b/2607153b-a967-4baf-a55a-4004bca02f82 {jcr:createdBy=bypassAdmin, jcr:primaryType=fedora:Tombstone, jcr:created=2015-10-07T01:55:23.596Z}

catalina.out

INFO 01:55:23.594 (FedoraLdp) Delete resource '26/07/15/3b/2607153b-a967-4baf-a55a-4004bca02f82'
INFO 01:55:23.653 (audit) Audit Event: /26/07/15/3b/2607153b-a967-4baf-a55a-4004bca02f82 :: <http://example.com/event/bdbfe384-9966-4270-82fb-24633ed486c4>
INFO 01:55:23.685 (TriplestoreRouter) Deleting Triplestore Object  /26/07/15/3b/2607153b-a967-4baf-a55a-4004bca02f82
ERROR: LexiconConfiguration.java:618: 2015-10-07T01:46:37 00:00: value=2015-10-07T01:46:37 00:00
ERROR: LexiconConfiguration.java:618: 2015-10-07T01:46:37 00:00: value=2015-10-07T01:46:37 00:00
ERROR: LexiconConfiguration.java:618: 2015-10-07T01:46:37 00:00: value=2015-10-07T01:46:37 00:00
INFO 01:55:24.161 (SolrRouter) Deleting Solr Object /26/07/15/3b/2607153b-a967-4baf-a55a-4004bca02f82

karaf:

 rdf:updateNode], executable=php, timeout=9223372036854775807, outFile=null, workingDir=/home/vagrant/islandora/camel/commands/bin, useStderrOnEmptyStdout=false] had exit value 0
2015-10-07 01:55:23,722 | ERROR | Consumer[fedora] | DefaultErrorHandler              | 109 - org.apache.camel.camel-core - 2.15.2 | Failed delivery for (MessageId: ID:islandora-38181-1444182246311-3:1:1:1:8 on ExchangeId: ID-islandora-48429-1444182243199-0-54). Exhausted after delivery attempt: 1 caught: org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost/islandora/user/login with statusCode: 401

Message History
---------------------------------------------------------------------------------------------------------------------------------------
RouteId              ProcessorId          Processor                                                                        Elapsed (ms)
[fedoraEventStream ] [fedoraEventStream ] [activemq://topic:fedora                                                       ] [        77]
[fedoraEventStream ] [setProperty21     ] [setProperty[CamelFcrepoBaseUrl]                                               ] [         0]
[fedoraEventStream ] [setProperty22     ] [setProperty[CamelFcrepoIdentifier]                                            ] [         0]
[fedoraEventStream ] [choice5           ] [when[simple{${headers[org.fcrepo.jms.eventType]} contains 'http://fedora.info/] [        79]
[fedoraEventStream ] [to38              ] [direct:handleNodeRemovedEvent                                                 ] [        79]
[nodeRemoveHandler ] [to32              ] [direct:getDrupalAuthInfo                                                      ] [        81]
[getDrupalAuthInfo ] [to15              ] [direct:getCookieFromCache                                                     ] [        81]
[getCookieFromCache] [setHeader13       ] [setHeader[CamelCacheOperation]                                                ] [         0]
[getCookieFromCache] [setHeader14       ] [setHeader[CamelCacheKey]                                                      ] [         0]
[getCookieFromCache] [to13              ] [cache://cookies?maxElementsInMemory=1000&eternal=true&timeToIdleSeconds=0&time] [        10]
[getCookieFromCache] [choice2           ] [when[simple{${headers.CamelCacheElementWasFound} == ${null}}]choice[]         ] [        80]
[getCookieFromCache] [to14              ] [direct:drupalAuthenticate                                                     ] [        80]
[drupalAuthenticate] [doTry1            ] [doTry                                                                         ] [        80]
[drupalAuthenticate] [to9               ] [direct:drupalLogin                                                            ] [        80]
[drupalLogin       ] [removeHeaders2    ] [removeHeaders[*]                                                              ] [         0]
[drupalLogin       ] [setHeader9        ] [setHeader[CamelHttpMethod]                                                    ] [         0]
[drupalLogin       ] [setHeader10       ] [setHeader[Content-Type]                                                       ] [         0]
[drupalLogin       ] [setBody2          ] [setBody[simple{{"username": "admin", "password" : "islandora"}}]              ] [         0]
[drupalLogin       ] [to6               ] [http:localhost/islandora/user/login                                           ] [        67]

Exchange
---------------------------------------------------------------------------------------------------------------------------------------
Exchange[
    Id                  ID-islandora-48429-1444182243199-0-54
    ExchangePattern     InOnly
    Headers             {CamelHttpMethod=POST, CamelRedelivered=false, CamelRedeliveryCounter=0, Content-Type=application/json}
    BodyType            String
    Body                {"username": "admin", "password" : "islandora"}
]

Stacktrace
---------------------------------------------------------------------------------------------------------------------------------------
org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost/islandora/user/login with statusCode: 401
    at org.apache.camel.component.http.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:230)[166:org.apache.camel.camel-http:2.15.2]
    at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:156)[166:org.apache.camel.camel-http:2.15.2]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:113)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.TryProcessor.process(TryProcessor.java:84)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:111)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:111)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:103)[144:org.apache.camel.camel-jms:2.15.2]
    at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:562)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:500)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:468)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1101)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1093)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:990)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_60]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_60]
    at java.lang.Thread.run(Thread.java:745)[:1.8.0_60]
2015-10-07 01:55:24,058 | WARN  | Consumer[fedora] | EndpointMessageListener          | 109 - org.apache.camel.camel-core - 2.15.2 | Execution of JMS message listener failed. Caused by: [org.apache.camel.RuntimeCamelException - org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost/islandora/delete_by_fedora_uri with statusCode: 404]
org.apache.camel.RuntimeCamelException: org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost/islandora/delete_by_fedora_uri with statusCode: 404
    at org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1619)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.component.jms.EndpointMessageListener$EndpointMessageListenerAsyncCallback.done(EndpointMessageListener.java:186)[144:org.apache.camel.camel-jms:2.15.2]
    at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:107)[144:org.apache.camel.camel-jms:2.15.2]
    at org.springframework.jms.listener.AbstractMessageListenerContainer.doInvokeListener(AbstractMessageListenerContainer.java:562)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.AbstractMessageListenerContainer.invokeListener(AbstractMessageListenerContainer.java:500)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.AbstractMessageListenerContainer.doExecuteListener(AbstractMessageListenerContainer.java:468)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.doReceiveAndExecute(AbstractPollingMessageListenerContainer.java:325)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.AbstractPollingMessageListenerContainer.receiveAndExecute(AbstractPollingMessageListenerContainer.java:263)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.invokeListener(DefaultMessageListenerContainer.java:1101)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.executeOngoingLoop(DefaultMessageListenerContainer.java:1093)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker.run(DefaultMessageListenerContainer.java:990)[143:org.apache.servicemix.bundles.spring-jms:3.2.11.RELEASE_1]
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_60]
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_60]
    at java.lang.Thread.run(Thread.java:745)[:1.8.0_60]
Caused by: org.apache.camel.component.http.HttpOperationFailedException: HTTP operation failed invoking http://localhost/islandora/delete_by_fedora_uri with statusCode: 404
    at org.apache.camel.component.http.HttpProducer.populateHttpOperationFailedException(HttpProducer.java:230)[166:org.apache.camel.camel-http:2.15.2]
    at org.apache.camel.component.http.HttpProducer.process(HttpProducer.java:156)[166:org.apache.camel.camel-http:2.15.2]
    at org.apache.camel.util.AsyncProcessorConverterHelper$ProcessorToAsyncProcessorBridge.process(AsyncProcessorConverterHelper.java:61)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.component.direct.DirectProducer.process(DirectProducer.java:51)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.SendProcessor.process(SendProcessor.java:129)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.ChoiceProcessor.process(ChoiceProcessor.java:111)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.management.InstrumentationProcessor.process(InstrumentationProcessor.java:77)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.RedeliveryErrorHandler.process(RedeliveryErrorHandler.java:448)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:118)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.Pipeline.process(Pipeline.java:80)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.CamelInternalProcessor.process(CamelInternalProcessor.java:191)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.util.AsyncProcessorHelper.process(AsyncProcessorHelper.java:109)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.processor.DelegateAsyncProcessor.process(DelegateAsyncProcessor.java:87)[109:org.apache.camel.camel-core:2.15.2]
    at org.apache.camel.component.jms.EndpointMessageListener.onMessage(EndpointMessageListener.java:103)[144:org.apache.camel.camel-jms:2.15.2]
    ... 11 more

@ruebot
Copy link
Member

ruebot commented Nov 2, 2015

@dmoses is going to test, and confirm whether or not this is still an issue.

@dmoses
Copy link
Contributor

dmoses commented Nov 3, 2015

I created a collection object in Drupal. I then Edit > Delete the Collection in Drupal. When I viewed it on Fedora I get this message:
Discovered tombstone resource at /b4/8d/9c/fc/b48d9cfc-4b7a-429d-bd29-d2c6a25aa15b {jcr:createdBy=bypassAdmin, jcr:primaryType=fedora:Tombstone, jcr:created=2015-11-03T21:38:19.715Z}

@DiegoPino
Copy link
Contributor

@dmoses, other of the particularities of LDP + Fedora4. Fedora makes tombstones for deleted resources, when deleting, resources get wiped out, but the resource path persists (means you can not reuse the same path), so it's expected behaviour. @daniel-dgi, do you know if there was a workaround at fedora level for this?

@bsw2
Copy link

bsw2 commented Nov 3, 2015

I've deleted the tombstones with curl

curl -X DELETE http://localhost:8080/fcrepo/rest/mycollection

deletes the collection but then you get the tombstone, so next do

curl -X DELETE http://localhost:8080/fcrepo/rest/mycollection/fcr:tombstone

then you can use that name again to add

@dmoses
Copy link
Contributor

dmoses commented Nov 3, 2015

I like the idea of tombstone data ... I think it is the UUID that can't be reused ... may be wrong though? There may be good reasons from a preservation perspective that you want to maintain tombstone info.
dm

@DiegoPino
Copy link
Contributor

@dmoses, we are using UUID, but for fedora, the unique id for a resource is the path. If they match (partially) depends on the pid minter used and/or the way we are creating our path. I also like having it, you are true, very useful in production, but sometimes trouble when you are testing/developing.

By the way @bsw2, thanks!

@ruebot
Copy link
Member

ruebot commented Nov 3, 2015

Tombstones are the intended behaviour.

@ruebot ruebot added help wanted Seeking a volunteer or co-worker question labels Apr 7, 2016
@whikloj whikloj added the wontfix label Apr 7, 2016
@whikloj
Copy link
Member Author

whikloj commented Apr 7, 2016

This is the old 7.x-2.x architecture. Microservices is different and does delete.

@ruebot
Copy link
Member

ruebot commented Apr 7, 2016

@whikloj close/won't fix? How's that sound?

@ruebot ruebot removed help wanted Seeking a volunteer or co-worker question labels Apr 7, 2016
@whikloj
Copy link
Member Author

whikloj commented Apr 7, 2016

👍

@ruebot ruebot closed this as completed Apr 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants