I finally tracked this down and wanted to document for the archives. Apparently there was a change somewhere along the line of ElasticSearch/AttachmentMapper where they went from looking for "content" to "_content". I am using ES 1.5 with mapper plugin 2.4.3 locally, but the linux installation had a slightly older plugin version. The elasticsearch log made this clear.
For anyone suffering through this same error there is a matrix here: https://github.com/elastic/elasticsearch-mapper-attachments My log is error free finally, but I'm still unable to search the content correctly. The matrix says I should really be using 2.5 so I'm going to update once more. Deanna [2015-05-19 10:42:24,670][DEBUG][action.index ] [James Howlett] [index1][2], node[kTvSWwvlQq2LCPHgR9xmXg], [P], s[STARTED]: Failed to execute [index {[index1][map1][ http://localhost:8080/alfresco/api/-default-/public/cmis/versions/1.1/atom/content/6.4.1.5.1.txt?id=cebb0872-4678-43ac-87b2-c981d3e1ffd5%3B1.0], source[{"cmis:name" : "6.4.1.5.1.txt","allow_token_document" : "__nosecurity__","deny_token_document" : "__nosecurity__","allow_token_share" : "__nosecurity__","deny_token_share" : "__nosecurity__","allow_token_parent" : "__nosecurity__","deny_token_parent" : "__nosecurity__","file" : {"_content_type" : "text\/plain","_name" : "6.4.1.5.1.txt", "_content" : "DQpJIGFtIGFuIEFsZnJlc2NvIGZpbGUuDQo="}}]}] org.elasticsearch.index.mapper.*MapperParsingException*:* No content is provided.* at org.elasticsearch.index.mapper.attachment.AttachmentMapper.parse(AttachmentMapper.java:371) at org.elasticsearch.index.mapper.object.ObjectMapper.serializeObject(ObjectMapper.java:554) at org.elasticsearch.index.mapper.object.ObjectMapper.parse(ObjectMapper.java:487) at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:544) at org.elasticsearch.index.mapper.DocumentMapper.parse(DocumentMapper.java:493) at org.elasticsearch.index.shard.IndexShard.prepareIndex(IndexShard.java:465) at org.elasticsearch.action.index.TransportIndexAction.shardOperationOnPrimary(TransportIndexAction.java:192) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction.performOnPrimary(TransportShardReplicationOperationAction.java:515) at org.elasticsearch.action.support.replication.TransportShardReplicationOperationAction$AsyncShardOperationAction$1.run(TransportShardReplicationOperationAction.java:422) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:745) On Mon, May 18, 2015 at 5:33 PM, Karl Wright <[email protected]> wrote: > Hi Deanna, > > Do you have the "curl" utility installed? > > The request that is failing looks fine as far as I can tell. I would try > submitting it with curl and debugging the ElasticSearch side, because > clearly that's where something is going wrong. > > PUT /csss/base/http%3A%2F%2Flocalhost%3A8080%2Falfresco% > 2Fapi%2F-default-%2Fpublic%2Fcmis%2Fversions%2F1.1% > 2Fatom%2Fcontent%2F6.5.txt%3Fid%3D082ded6d-fef4-47d6- > a53a-e27d3a4ec581%253B1.2 > > Content-type: application/x-www-form-urlencoded > > Content: > > {"csss:csssBase_bookOwner" : "someBookOwner","cmis:name" : > "6.5.txt","csss:csssBase_cageCode" : "someCageCode","allow_token_document" > : "__nosecurity__","deny_token_document" : > "__nosecurity__","allow_token_share" > : "__nosecurity__","deny_token_share" : "__nosecurity__","allow_token_parent" > : "__nosecurity__","deny_token_parent" : "__nosecurity__","file" : > {"_content_type" : "text\/plain","_name" : "6.5.txt", "_content" : " > DQpJIGFtIGFuIEFsZnJlc2NvIGZpbGUuDQoNCmtleXdvcmQga2FuZ2Fyb28N > Cg0KenVsdQ0KenVsdQ0KDQo="}} > > > Karl > > > On Mon, May 18, 2015 at 6:11 PM, Delapasse, Deanna < > [email protected]> wrote: > >> I've been running locally on windows (CMIS->ElasticSearch) successfully >> and today I tried to run the same configuration. It worked for a while, >> but I deleted my ES indexes and recreated them. Since then I've had >> problems. I am currently just trying to index a single row (ie my CMIS >> query returns 1 row). I see the data for the row so the select worked, but >> I can't figure out what is wrong with the ES insert. The new indexes look >> find in the browser. >> >> Could y'all please take a look and advise me? The sequence is similar to >> my windows, but gets "No content is provided" and then cancels the job. >> >> thanks! >> Deanna >> >> ps. Yes, I have restarted Manifold, ES & even Alfresco :-). >> >> >> ==================== error log ===================== >> >> DEBUG 2015-05-18 17:44:56,900 (Thread-6470) - Connection request: [route: >> {}->http://localhost:9200][total kept alive: 0; route allocated: 0 of 2; >> total allocated: 0 of 20] >> DEBUG 2015-05-18 17:44:56,900 (Thread-6470) - Connection leased: [id: >> 4][route: {}->http://localhost:9200][total kept alive: 0; route >> allocated: 1 >> of 2; total allocated: 1 of 20] >> DEBUG 2015-05-18 17:44:56,900 (Thread-6470) - Opening connection {}-> >> http://localhost:9200 >> DEBUG 2015-05-18 17:44:56,900 (Thread-6470) - Connecting to localhost/ >> 127.0.0.1:9200 >> DEBUG 2015-05-18 17:44:56,900 (Thread-6470) - Connection established >> 127.0.0.1:55692<->127.0.0.1:9200 >> DEBUG 2015-05-18 17:44:56,900 (Thread-6470) - Executing request PUT >> /csss/base/http%3A%2F%2Flocalhost%3A8080%2Falfresco%2Fapi%2F-default-%2Fpublic >> %2Fcmis%2Fversions%2F1.1%2Fatom%2Fcontent%2F6.5.txt%3Fid%3D082ded6d-fef4-47d6-a53a-e27d3a4ec581%253B1.2 >> HTTP/1.1 >> DEBUG 2015-05-18 17:44:56,900 (Thread-6470) - Target auth state: >> UNCHALLENGED >> DEBUG 2015-05-18 17:44:56,900 (Thread-6470) - Proxy auth state: >> UNCHALLENGED >> DEBUG 2015-05-18 17:44:56,900 (Thread-6470) - http-outgoing-4 >> PUT >> /csss/base/http%3A%2F%2Flocalhost%3A8080%2Falfresco%2Fapi%2F-default-%2Fpubli >> c%2Fcmis%2Fversions%2F1.1%2Fatom%2Fcontent%2F6.5.txt%3Fid%3D082ded6d-fef4-47d6-a53a-e27d3a4ec581%253B1.2 >> HTTP/1.1 >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> >> Transfer-Encoding: chunked >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> >> Content-type: application/x-www-form-urlencoded >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> Host: >> localhost:9200 >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> >> Connection: Keep-Alive >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> >> User-Agent: Apache-HttpClient/4.3.5 (java 1.5) >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> Expect: >> 100-continue >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> >> Accept-Encoding: gzip,deflate >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> "PUT >> /csss/base/http%3A%2F%2Flocalhost%3A8080%2Falfresco%2Fapi%2F-default-%2Fpubl >> ic%2Fcmis%2Fversions%2F1.1%2Fatom%2Fcontent%2F6.5.txt%3Fid%3D082ded6d-fef4-47d6-a53a-e27d3a4ec581%253B1.2 >> HTTP/1.1[\r][\n]" >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> >> "Transfer-Encoding: chunked[\r][\n]" >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> >> "Content-type: application/x-www-form-urlencoded[\r][\n]" >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> "Host: >> localhost:9200[\r][\n]" >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> >> "Connection: Keep-Alive[\r][\n]" >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> >> "User-Agent: Apache-HttpClient/4.3.5 (java 1.5)[\r][\n]" >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> "Expect: >> 100-continue[\r][\n]" >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> >> "Accept-Encoding: gzip,deflate[\r][\n]" >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 >> >> "[\r][\n]" >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 << >> "HTTP/1.1 100 Continue[\r][\n]" >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 << >> "[\r][\n]" >> DEBUG 2015-05-18 17:44:56,901 (Thread-6470) - http-outgoing-4 << HTTP/1.1 >> 100 Continue >> DEBUG 2015-05-18 17:44:56,902 (Thread-6470) - http-outgoing-4 >> >> "202[\r][\n]" >> DEBUG 2015-05-18 17:44:56,902 (Thread-6470) - http-outgoing-4 >> >> "{"csss:csssBase_bookOwner" : "someBookOwner","cmis:name" : >> "6.5.txt","csss:csssBase_cageCode" : "someCageCode","allow_token_document" >> : "__nosecurity__","deny_token_document" : >> "__nosecurity__","allow_token_share" : "__nosecurity__","deny_token_share" >> : "__nosecurity__","allow_token_parent" : >> "__nosecurity__","deny_token_parent" : "__nosecurity__","file" : >> {"_content_type" : "text\/plain","_name" : "6.5.txt", "_content" : >> "DQpJIGFtIGFuIEFsZnJlc2NvIGZpbGUuDQoNCmtleXdvcmQga2FuZ2Fyb28NCg0KenVsdQ0KenVsdQ0KDQo="}}[\r][\n]" >> DEBUG 2015-05-18 17:44:56,902 (Thread-6470) - http-outgoing-4 >> >> "0[\r][\n]" >> DEBUG 2015-05-18 17:44:56,902 (Thread-6470) - http-outgoing-4 >> >> "[\r][\n]" >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - http-outgoing-4 << >> "HTTP/1.1 400 Bad Request[\r][\n]" >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - http-outgoing-4 << >> "Content-Type: application/json; charset=UTF-8[\r][\n]" >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - http-outgoing-4 << >> "Content-Length: 72[\r][\n]" >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - http-outgoing-4 << >> "[\r][\n]" >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - http-outgoing-4 << >> "{"error":"MapperParsingException[No content is provided.]","status":400}" >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - http-outgoing-4 << HTTP/1.1 >> 400 Bad Request >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - http-outgoing-4 << >> Content-Type: application/json; charset=UTF-8 >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - http-outgoing-4 << >> Content-Length: 72 >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - Connection can be kept >> alive indefinitely >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - Connection [id: 4][route: >> {}->http://localhost:9200] can be kept alive indefinitely >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - Connection released: [id: >> 4][route: {}->http://localhost:9200][total kept alive: 1; route >> allocated: 1 of 2; total allocated: 1 of 20] >> DEBUG 2015-05-18 17:44:56,904 (Thread-6470) - Cancelling request execution >> DEBUG 2015-05-18 17:45:01,496 (Thread-6577) - CookieSpec selected: >> best-match >> DEBUG 2015-05-18 17:45:01,497 (Thread-6577) - Auth cache not set in the >> context >> DEBUG 2015-05-18 17:45:01,497 (Thread-6577) - Connection request: [route: >> {}->http://localhost:9200][total kept alive: 1; route allocated: 1 of 2; >> >> >
