yuntong613 commented on issue #2711:
URL: 
https://github.com/apache/incubator-hugegraph/issues/2711#issuecomment-2560808741

   拉取最新镜像后,机器重启,由于cassandra启动较慢,不会一直等待cassandra容器加载完,而导致server连接后端超时
   ```
   2024-12-24 08:02:25 [main] [ERROR] o.a.h.d.HugeGraphServer - HugeRestServer 
start error:
   java.lang.RuntimeException: GraphFactory could not instantiate this Graph 
implementation [class org.apache.hugegraph.auth.HugeFactoryAuthProxy]
           at 
org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:84)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:72)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.hugegraph.auth.StandardAuthenticator.setup(StandardAuthenticator.java:138)
 ~[hugegraph-api-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.auth.HugeAuthenticator.loadAuthenticator(HugeAuthenticator.java:143)
 ~[hugegraph-api-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.core.GraphManager.<init>(GraphManager.java:100) 
~[hugegraph-api-1.5.0.jar:0.71.0.0]
           at 
org.apache.hugegraph.server.ApplicationConfig$GraphManagerFactory$1.onEvent(ApplicationConfig.java:141)
 ~[hugegraph-api-1.5.0.jar:0.71.0.0]
           at 
org.glassfish.jersey.server.internal.monitoring.CompositeApplicationEventListener.onEvent(CompositeApplicationEventListener.java:49)
 ~[jersey-server-3.0.3.jar:?]
           at 
org.glassfish.jersey.server.internal.monitoring.MonitoringContainerListener.onStartup(MonitoringContainerListener.java:56)
 ~[jersey-server-3.0.3.jar:?]
           at 
org.glassfish.jersey.server.ApplicationHandler.onStartup(ApplicationHandler.java:711)
 ~[jersey-server-3.0.3.jar:?]
           at 
org.glassfish.jersey.grizzly2.httpserver.GrizzlyHttpContainer.start(GrizzlyHttpContainer.java:330)
 ~[jersey-container-grizzly2-http-3.0.3.jar:?]
           at 
org.glassfish.grizzly.http.server.HttpHandlerChain.start(HttpHandlerChain.java:376)
 ~[grizzly-http-server-3.0.1.jar:3.0.1]
           at 
org.glassfish.grizzly.http.server.HttpServer.setupHttpHandler(HttpServer.java:268)
 ~[grizzly-http-server-3.0.1.jar:3.0.1]
           at 
org.glassfish.grizzly.http.server.HttpServer.start(HttpServer.java:245) 
~[grizzly-http-server-3.0.1.jar:3.0.1]
           at org.apache.hugegraph.server.RestServer.start(RestServer.java:70) 
~[hugegraph-api-1.5.0.jar:0.71.0.0]
           at org.apache.hugegraph.server.RestServer.start(RestServer.java:177) 
~[hugegraph-api-1.5.0.jar:0.71.0.0]
           at 
org.apache.hugegraph.dist.HugeRestServer.start(HugeRestServer.java:31) 
~[hugegraph-dist-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.dist.HugeGraphServer.<init>(HugeGraphServer.java:61) 
~[hugegraph-dist-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.dist.HugeGraphServer.main(HugeGraphServer.java:127) 
~[hugegraph-dist-1.5.0.jar:1.5.0]
   Caused by: java.lang.reflect.InvocationTargetException
           at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method) ~[?:?]
           at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 ~[?:?]
           at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
           at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
           at 
org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:80)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           ... 17 more
   Caused by: org.apache.hugegraph.exception.ConnectionException: Failed to 
connect to Cassandra
           at 
org.apache.hugegraph.backend.store.cassandra.CassandraStore.open(CassandraStore.java:186)
 ~[hugegraph-cassandra-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.backend.tx.AbstractTransaction.<init>(AbstractTransaction.java:80)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.backend.tx.IndexableTransaction.<init>(IndexableTransaction.java:28)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.backend.tx.SchemaTransaction.<init>(SchemaTransaction.java:79)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.backend.cache.CachedSchemaTransaction.<init>(CachedSchemaTransaction.java:54)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.StandardHugeGraph.openSchemaTransaction(StandardHugeGraph.java:492)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.StandardHugeGraph$TinkerPopTransaction.getOrNewTransaction(StandardHugeGraph.java:1512)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.StandardHugeGraph$TinkerPopTransaction.doOpen(StandardHugeGraph.java:1421)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction.open(AbstractTransaction.java:95)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.tinkerpop.gremlin.structure.Transaction$READ_WRITE_BEHAVIOR$1.accept(Transaction.java:213)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.tinkerpop.gremlin.structure.Transaction$READ_WRITE_BEHAVIOR$1.accept(Transaction.java:210)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.tinkerpop.gremlin.structure.util.AbstractThreadLocalTransaction.doReadWrite(AbstractThreadLocalTransaction.java:92)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction.readWrite(AbstractTransaction.java:136)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.hugegraph.StandardHugeGraph.graphTransaction(StandardHugeGraph.java:569)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.StandardHugeGraph.backendStoreFeatures(StandardHugeGraph.java:287)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.StandardHugeGraph.<init>(StandardHugeGraph.java:247) 
~[hugegraph-core-1.5.0.jar:1.5.0]
           at org.apache.hugegraph.HugeFactory.open(HugeFactory.java:88) 
~[hugegraph-core-1.5.0.jar:1.5.0]
           at org.apache.hugegraph.HugeFactory.open(HugeFactory.java:66) 
~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.auth.HugeFactoryAuthProxy.open(HugeFactoryAuthProxy.java:87)
 ~[hugegraph-api-1.5.0.jar:1.5.0]
           at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method) ~[?:?]
           at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 ~[?:?]
           at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
           at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
           at 
org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:80)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           ... 17 more
   Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All 
host(s) tried for query failed (tried: cas-cassandra/172.18.0.4:9042 
(com.datastax.driver.core.exceptions.TransportException: 
[cas-cassandra/172.18.0.4:9042] Cannot connect))
           at 
com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:268)
 ~[cassandra-driver-core-3.6.0.jar:?]
           at 
com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:107) 
~[cassandra-driver-core-3.6.0.jar:?]
           at 
com.datastax.driver.core.Cluster$Manager.negotiateProtocolVersionAndConnect(Cluster.java:1652)
 ~[cassandra-driver-core-3.6.0.jar:?]
           at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1571) 
~[cassandra-driver-core-3.6.0.jar:?]
           at com.datastax.driver.core.Cluster.init(Cluster.java:208) 
~[cassandra-driver-core-3.6.0.jar:?]
           at com.datastax.driver.core.Cluster.connectAsync(Cluster.java:376) 
~[cassandra-driver-core-3.6.0.jar:?]
           at com.datastax.driver.core.Cluster.connect(Cluster.java:332) 
~[cassandra-driver-core-3.6.0.jar:?]
           at 
org.apache.hugegraph.backend.store.cassandra.CassandraSessionPool$Session.open(CassandraSessionPool.java:224)
 ~[hugegraph-cassandra-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.backend.store.cassandra.CassandraStore.open(CassandraStore.java:168)
 ~[hugegraph-cassandra-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.backend.tx.AbstractTransaction.<init>(AbstractTransaction.java:80)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.backend.tx.IndexableTransaction.<init>(IndexableTransaction.java:28)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.backend.tx.SchemaTransaction.<init>(SchemaTransaction.java:79)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.backend.cache.CachedSchemaTransaction.<init>(CachedSchemaTransaction.java:54)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.StandardHugeGraph.openSchemaTransaction(StandardHugeGraph.java:492)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.StandardHugeGraph$TinkerPopTransaction.getOrNewTransaction(StandardHugeGraph.java:1512)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.StandardHugeGraph$TinkerPopTransaction.doOpen(StandardHugeGraph.java:1421)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction.open(AbstractTransaction.java:95)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.tinkerpop.gremlin.structure.Transaction$READ_WRITE_BEHAVIOR$1.accept(Transaction.java:213)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.tinkerpop.gremlin.structure.Transaction$READ_WRITE_BEHAVIOR$1.accept(Transaction.java:210)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.tinkerpop.gremlin.structure.util.AbstractThreadLocalTransaction.doReadWrite(AbstractThreadLocalTransaction.java:92)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.tinkerpop.gremlin.structure.util.AbstractTransaction.readWrite(AbstractTransaction.java:136)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           at 
org.apache.hugegraph.StandardHugeGraph.graphTransaction(StandardHugeGraph.java:569)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.StandardHugeGraph.backendStoreFeatures(StandardHugeGraph.java:287)
 ~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.StandardHugeGraph.<init>(StandardHugeGraph.java:247) 
~[hugegraph-core-1.5.0.jar:1.5.0]
           at org.apache.hugegraph.HugeFactory.open(HugeFactory.java:88) 
~[hugegraph-core-1.5.0.jar:1.5.0]
           at org.apache.hugegraph.HugeFactory.open(HugeFactory.java:66) 
~[hugegraph-core-1.5.0.jar:1.5.0]
           at 
org.apache.hugegraph.auth.HugeFactoryAuthProxy.open(HugeFactoryAuthProxy.java:87)
 ~[hugegraph-api-1.5.0.jar:1.5.0]
           at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native 
Method) ~[?:?]
           at 
jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 ~[?:?]
           at 
jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 ~[?:?]
           at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
           at 
org.apache.tinkerpop.gremlin.structure.util.GraphFactory.open(GraphFactory.java:80)
 ~[gremlin-core-3.5.1.jar:3.5.1]
           ... 17 more
   2024-12-24 08:02:25 [main] [INFO] o.a.h.HugeFactory - HugeFactory shutdown
   2024-12-24 08:02:28 [hugegraph-shutdown] [INFO] o.a.h.HugeFactory - 
HugeGraph is shutting down
   ```


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to