[Bug] 改变gremlin-server.yaml里empty-sample.groovy为example.groovy后start-hugegraph出现报错Could not create GremlinScriptEngine for gremlin-groovy
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Compare the ScriptFileGremlinPlugin entries in gremlin-server.yaml for scripts/empty-sample.groovy and scripts/example.groovy, then reproduce with ./start-hugegraph.sh. Read the attached hugegraph-server.log alongside the Gremlin engine initialization errors and the RocksDB provider registration message. Done means the configured example script can be used without the gremlin-groovy engine or server startup errors.
Written by the indexing model from the issue text.
Description
主要报错
[ERROR] o.a.t.g.j.DefaultGremlinScriptEngineManager - Could not create GremlinScriptEngine for gremlin-groovy**
Bug Type (问题类型)
server status (启动/运行异常)
Before submit
- 我已经确认现有的 Issues 与 FAQ 中没有相同 / 重复问题 (I have confirmed and searched that there are no similar problems in the historical issue and documents)
Environment (环境信息)
- Server Version: 1.5.0 (Apache Release Version)
- Backend: RocksDB x nodes, HDD or SSD
- OS: Ubuntu 20.04.6 LTS
Expected & Actual behavior (期望与实际表现)
打算解决以下issue时发现复现情况2时出现问题:
相关issue 原始issue
原始的gremlin.server.yaml 中的 org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin: 属性,直接运行./start-hugegraph.sh没有报错
org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin: {
files: [scripts/empty-sample.groovy]
}
上述属性修改为scripts/example.groovy
org.apache.tinkerpop.gremlin.jsr223.ScriptFileGremlinPlugin: {
files: [scripts/example.groovy]
}
后出现以下报错 (截取主要片段
**2025-06-05 22:14:09 [gremlin-server-exec-1] [WARN] o.a.h.c.OptionSpace - Already registered option holder: rocksdb (class org.apache.hugegraph.backend.store.rocksdb.RocksDBOptions)
2025-06-05 22:14:09 [gremlin-server-exec-1] [ERROR] o.a.t.g.j.DefaultGremlinScriptEngineManager - Could not create GremlinScriptEngine for gremlin-groovy**
**Caused by: javax.script.ScriptException: javax.script.ScriptException: org.apache.hugegraph.backend.BackendException: Exists BackendStoreProvider: rocksdb (class org.apache.hugegraph.backend.store.rocksdb.RocksDBStoreProvider)**
**Caused by: javax.script.ScriptException: org.apache.hugegraph.backend.BackendException: Exists BackendStoreProvider: rocksdb (class org.apache.hugegraph.backend.store.rocksdb.RocksDBStoreProvider)**
**Caused by: org.apache.hugegraph.backend.BackendException: Exists BackendStoreProvider: rocksdb (class org.apache.hugegraph.backend.store.rocksdb.RocksDBStoreProvider)**
**2025-06-05 22:14:09 [main] [WARN] o.a.t.g.s.u.ServerGremlinExecutor - Could not initialize gremlin-groovy GremlinScriptEngine as init script could not be evaluated**
**Caused by: java.lang.IllegalArgumentException: gremlin-groovy is not an available GremlinScriptEngine
at org.apache.tinkerpop.gremlin.jsr223.CachedGremlinScriptEngineManager.registerLookUpInfo(CachedGremlinScriptEngineManager.java:95) ~[gremlin-core-3.5.1.jar:3.5.1]**
具体的logfile如下
- Dominant language
- Java
- Stars
- 3.2k
- Forks
- 637
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 23
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from apache/hugegraph
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
-
Difficulty 3/5 1-2 days Newbie friendliness 64/100
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
-
Difficulty 5/5 Over a week Newbie friendliness 28/100
All issues in apache/hugegraph
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
infinispan/infinispan#18150 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
-
untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
opensearch-project/k-NN#3597 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100