chenhong1990 opened a new issue, #2500:
URL: https://github.com/apache/incubator-hugegraph/issues/2500

   ### Bug Type (问题类型)
   
   rest-api (结果不合预期)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/apache/hugegraph/issues) 与 
[FAQ](https://hugegraph.apache.org/docs/guides/faq/) 中没有相同 / 重复问题 (I have 
confirmed and searched that there are no similar problems in the historical 
issue and documents)
   
   ### Environment (环境信息)
   
   - Server Version: 1.2.0 (Apache Release Version)
   - Backend: RocksDB x nodes, HDD or SSD 
   - OS: xx CPUs, xx G RAM, Ubuntu 2x.x / CentOS 7.x 
   - Data Size:  xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) -->
   
   
   ### Expected & Actual behavior (期望与实际表现)
   
   curl --location 'http://172.30.96.162:8081/graphs/test' \
   --header 'Content-Type: text/plain' \
   --header 'Authorization: Basic YWRtaW46MTIzNDU2Nzg=' \
   --data 'gremlin.graph=org.apache.hugegraph.auth.HugeFactoryAuthProxy
   backend=rocksdb
   serializer=binary
   store=test
   
rocksdb.data_path=/data/hugegraph1.2.0/apache-hugegraph-incubating-1.2.0/data/test
   
rocksdb.wal_path=/data/hugegraph1.2.0/apache-hugegraph-incubating-1.2.0/wal/test'
   
   
   根据api调用创建图报错如下:
   2024-04-02 17:47:42 [db-open-1] [INFO] o.a.h.b.s.r.RocksDBStore - Opening 
RocksDB with data path: 
/data/hugegraph1.2.0/apache-hugegraph-incubating-1.2.0/data/test/s
   2024-04-02 17:47:42 [db-open-1] [INFO] o.a.h.b.s.r.RocksDBStore - Opening 
RocksDB with data path: 
/data/hugegraph1.2.0/apache-hugegraph-incubating-1.2.0/data/test/g
   2024-04-02 17:47:42 [grizzly-http-server-8] [INFO] o.a.h.b.s.r.RocksDBStore 
- Write down the backend version: 1.11
   2024-04-02 17:47:43 [grizzly-http-server-8] [ERROR] o.a.h.c.GraphManager - 
Failed to create graph 'test' due to: Failed to update/query TaskStore: 
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: 
Missing authentication context when verifying resource permission
   org.apache.hugegraph.HugeException: Failed to update/query TaskStore: 
java.util.concurrent.ExecutionException: java.lang.IllegalStateException: 
Missing authentication context when verifying resource permission
        at 
org.apache.hugegraph.task.StandardTaskScheduler.call(StandardTaskScheduler.java:717)
 ~[hugegraph-core-1.2.0.jar:1.2.0]
        at 
org.apache.hugegraph.task.StandardTaskScheduler.call(StandardTaskScheduler.java:704)
 ~[hugegraph-core-1.2.0.jar:1.2.0]
        at 
org.apache.hugegraph.task.StandardTaskScheduler.init(StandardTaskScheduler.java:464)
 ~[hugegraph-core-1.2.0.jar:1.2.0]
        at 
org.apache.hugegraph.StandardHugeGraph.initSystemInfo(StandardHugeGraph.java:415)
 ~[hugegraph-core-1.2.0.jar:1.2.0]
        at 
org.apache.hugegraph.StandardHugeGraph.initBackend(StandardHugeGraph.java:364) 
~[hugegraph-core-1.2.0.jar:1.2.0]
        at 
org.apache.hugegraph.StandardHugeGraph.create(StandardHugeGraph.java:979) 
~[hugegraph-core-1.2.0.jar:1.2.0]
        at 
org.apache.hugegraph.auth.HugeGraphAuthProxy.create(HugeGraphAuthProxy.java:781)
 ~[hugegraph-api-1.2.0.jar:1.2.0]
        at 
org.apache.hugegraph.core.GraphManager.createGraph(GraphManager.java:586) 
~[hugegraph-api-1.2.0.jar:0.71.0.0]
        at 
org.apache.hugegraph.core.GraphManager.createGraph(GraphManager.java:186) 
~[hugegraph-api-1.2.0.jar:0.71.0.0]
        at 
org.apache.hugegraph.api.profile.GraphsAPI.create(GraphsAPI.java:136) 
~[hugegraph-api-1.2.0.jar:0.71.0.0]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
~[?:1.8.0_202]
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) 
~[?:1.8.0_202]
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:1.8.0_202]
        at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_202]
        at 
org.glassfish.jersey.server.model.internal.ResourceMethodInvocationHandlerFactory.lambda$static$0(ResourceMethodInvocationHandlerFactory.java:52)
 ~[jersey-server-3.0.3.jar:?]
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher$1.run(AbstractJavaResourceMethodDispatcher.java:124)
 ~[jersey-server-3.0.3.jar:?]
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.invoke(AbstractJavaResourceMethodDispatcher.java:167)
 ~[jersey-server-3.0.3.jar:?]
        at 
org.glassfish.jersey.server.model.internal.JavaResourceMethodDispatcherProvider$ObjectOutInvoker.doDispatch(JavaResourceMethodDispatcherProvider.java:192)
 ~[jersey-server-3.0.3.jar:?]
        at 
org.glassfish.jersey.server.model.internal.AbstractJavaResourceMethodDispatcher.dispatch(AbstractJavaResourceMethodDispatcher.java:79)
 ~[jersey-server-3.0.3.jar:?]
        at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:475)
 ~[jersey-server-3.0.3.jar:?]
        at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:397)
 ~[jersey-server-3.0.3.jar:?]
        at 
org.glassfish.jersey.server.model.ResourceMethodInvoker.apply(ResourceMethodInvoker.java:81)
 ~[jersey-server-3.0.3.jar:?]
   
   
   ### Vertex/Edge example (问题点 / 边数据举例)
   
   _No response_
   
   ### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to