Update script fail

Elasticsearch version:
elasticsearch-2.3.5.tar.gz

Plugins installed: []
modules [reindex, lang-expression, lang-groovy], plugins [license, delete-by-query], sites []

JVM version:
java version "1.8.0_65"
Java(TM) SE Runtime Environment (build 1.8.0_65-b17)
Java HotSpot(TM) 64-Bit Server VM (build 25.65-b01, mixed mode)

OS version:
[search@search-02 es1]$ lsb_release -a
LSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarch
Distributor ID: CentOS
Description: CentOS release 6.5 (Final)
Release: 6.5
Codename: Final

[search@search-02 es1]$ uname -a
Linux search-02.cloud.mos 2.6.32-431.1.2.0.1.el6.x86_64 #1 SMP Fri Dec 13 13:06:13 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux

Description of the problem including expected versus actual behavior:
PUT test/type1/1
{
"counter" : 1,
"tags" : ["red"]
}
it ok

POST test/type1/1/_update
{
"script" : {
"inline": "ctx._source.counter += count",
"params" : {
"count" : 4
}
}
}

it fail.

error info:

"error": {
"root_cause": [
{
"type": "remote_transport_exception",
"reason": "[node-3][172.16.8.145:9300][indices:data/write/update[s]]"
}
],
"type": "illegal_argument_exception",
"reason": "failed to execute script",
"caused_by": {
"type": "script_exception",
"reason": "failed to run inline script [ctx._source.counter += count] using lang [groovy]",
"caused_by": {
"type": "no_class_def_found_error",
"reason": "Could not initialize class org.codehaus.groovy.vmplugin.v7.IndyGuardsFiltersAndSignatures"
}
}
},
"status": 400
}

you will find configures and logs by the flowing url.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.