You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by GitBox <gi...@apache.org> on 2022/10/15 14:47:33 UTC

[GitHub] [incubator-hugegraph] zhui6688 opened a new issue, #1978: [Question] describe your problem

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

   ### Problem Type (问题类型)
   
   server status (启动/运行异常)
   
   ### Before submit
   
   - [X] 我已经确认现有的 [Issues](https://github.com/hugegraph/hugegraph/issues) 与 [FAQ](https://hugegraph.github.io/hugegraph-doc/guides/faq.html) 中没有相同 / 重复问题
   
   ### Environment (环境信息)
   
   - Server Version: v0.12.0
   - Backend: RocksDB
   - OS:Windows 10+Ubuntu 22.04子系统,OS安装于VMware
   
   --hugegraph.properties配置,参考官网
   backend=rocksdb
   serializer=binary
   rocksdb.data_path=.
   rocksdb.wal_path=.
   
   --初始化数据库(仅第一次启动时需要),参考官网
   bin/init-store.sh
   
   --启动server,参考官网
   bin/start-hugegraph.sh
   
   ### Your Question (问题描述)
   
   (1)、第一个问题
   --初始化数据库,运行结果,如加粗部分。应如何处理?
   Initializing HugeGraph Store...
   2022-10-15 22:13:26 [main] [INFO] c.b.h.u.ConfigUtil - Scaning option 'graphs' directory './conf/graphs'
   2022-10-15 22:13:27 [main] [INFO] c.b.h.c.InitStore - Init graph with config file: ./conf/graphs/hugegraph.properties
   2022-10-15 22:13:27 [db-open-1] [INFO] c.b.h.b.s.r.RocksDBStore - Opening RocksDB with data path: ./m
   **2022-10-15 22:13:28 [db-open-1] [INFO] c.b.h.b.s.r.RocksDBStore - Failed to open RocksDB './m' with database 'hugegraph', try to init CF later**
   2022-10-15 22:13:28 [db-open-1] [INFO] c.b.h.b.s.r.RocksDBStore - Opening RocksDB with data path: ./s
   main dict load finished, time elapsed 1423 ms
   model load finished, time elapsed 54 ms.
   2022-10-15 22:13:30 [db-open-1] [INFO] c.b.h.b.s.r.RocksDBStore - Opening RocksDB with data path: ./g
   2022-10-15 22:13:30 [main] [INFO] o.c.o.l.Uns - OHC using JNA OS native malloc/free
   2022-10-15 22:13:31 [main] [INFO] c.b.h.HugeGraph - Graph 'hugegraph' has been initialized
   2022-10-15 22:13:31 [main] [INFO] c.b.h.HugeGraph - Close graph standardhugegraph[hugegraph]
   2022-10-15 22:13:31 [hugegraph-shutdown] [INFO] c.b.h.HugeGraph - HugeGraph is shutting down
   Initialization finished.
   
   (2)、第二个问题
   --启动server,运行显示连接超时,如加粗部分:
   Starting HugeGraphServer...
   Connecting to HugeGraphServer (http://127.0.0.1:8080/graphs)................**The operation timed out(30s) when attempting to connect to http://127.0.0.1:8080/graphs**
   
   --日志显示,好像没有报错。为什么?
   2022-10-15 22:19:59 [main] [INFO] c.j.m.Manifests - 89 attributes loaded from 223 stream(s) in 594ms, 89 saved, 3028 ignored: ["Agent-Class", "Ant-Version", "Archiver-Version", "Automatic-Module-Name", "Bnd-LastModified", "Build-Id", "Build-Jdk", "Build-Jdk-Spec", "Build-Version", "Built-By", "Built-Date", "Built-JDK", "Bundle-ActivationPolicy", "Bundle-Activator", "Bundle-Category", "Bundle-ClassPath", "Bundle-ContactAddress", "Bundle-Copyright", "Bundle-Description", "Bundle-DocURL", "Bundle-License", "Bundle-ManifestVersion", "Bundle-Name", "Bundle-NativeCode", "Bundle-RequiredExecutionEnvironment", "Bundle-SCM", "Bundle-SymbolicName", "Bundle-Vendor", "Bundle-Version", "CLDR-Version", "Class-Path", "Created-By", "DSTAMP", "DynamicImport-Package", "Eclipse-BuddyPolicy", "Eclipse-ExtensibleAPI", "Embed-Dependency", "Export-Package", "Extension-Name", "Extension-name", "Fragment-Host", "Ignore-Package", "Implementation-Build", "Implementation-Build-Date", "Implementation-Build-Id
 ", "Implementation-Title", "Implementation-URL", "Implementation-Vendor", "Implementation-Vendor-Id", "Implementation-Version", "Import-Package", "Include-Resource", "JCabi-Build", "JCabi-Date", "JCabi-Version", "Log4jReleaseKey", "Log4jReleaseManager", "Log4jReleaseVersion", "Log4jReleaseVersionJava6", "Log4jReleaseVersionJava7", "Log4jSigningUserName", "Main-Class", "Manifest-Version", "Multi-Release", "Originally-Created-By", "Package", "Premain-Class", "Private-Package", "Provide-Capability", "Require-Bundle", "Require-Capability", "Source-Compatibility", "Specification-Title", "Specification-Vendor", "Specification-Version", "TODAY", "TSTAMP", "Target-Compatibility", "Time-Zone-Database-Version", "Tool", "X-Compile-Source-JDK", "X-Compile-Target-JDK", "hash", "implementation-version", "mode", "package", "service", "url", "version"]
   2022-10-15 22:19:59 [main] [INFO] c.b.h.d.HugeGremlinServer - 3.4.3
            \,,,/
            (o o)
   -----oOOo-(3)-oOOo-----
   
   2022-10-15 22:19:59 [main] [INFO] c.b.h.u.ConfigUtil - Scaning option 'graphs' directory './conf/graphs'
   2022-10-15 22:19:59 [main] [INFO] c.b.h.d.HugeGremlinServer - Configuring Gremlin Server from /mnt/c/hugegraph-0.12.0/conf/gremlin-server.yaml
   2022-10-15 22:20:00 [main] [INFO] o.a.t.g.s.GremlinServer - Graph [hugegraph] was successfully configured via [./conf/graphs/hugegraph.properties].
   2022-10-15 22:20:00 [main] [INFO] o.a.t.g.s.u.ServerGremlinExecutor - Initialized Gremlin thread pool.  Threads in pool named with pattern gremlin-*
   2022-10-15 22:20:02 [main] [INFO] o.a.t.g.s.u.ServerGremlinExecutor - Initialized GremlinExecutor and preparing GremlinScriptEngines instances.
   2022-10-15 22:20:09 [main] [INFO] o.a.t.g.s.u.ServerGremlinExecutor - Initialized gremlin-groovy GremlinScriptEngine and registered metrics
   2022-10-15 22:20:09 [main] [INFO] o.a.t.g.s.o.OpLoader - Adding the standard OpProcessor.
   2022-10-15 22:20:09 [main] [INFO] o.a.t.g.s.o.OpLoader - Adding the session OpProcessor.
   2022-10-15 22:20:09 [main] [INFO] o.a.t.g.s.o.OpLoader - Adding the traversal OpProcessor.
   2022-10-15 22:20:09 [main] [INFO] o.a.t.g.s.o.t.TraversalOpProcessor - Initialized cache for TraversalOpProcessor with size 1000 and expiration time of 600000 ms
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.GremlinServer - Executing start up LifeCycleHook
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.GremlinServer - Executed once at startup of Gremlin Server.
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.GremlinServer - idleConnectionTimeout was set to 0 which resolves to 0 seconds when configuring this value - this feature will be disabled
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.GremlinServer - keepAliveInterval was set to 0 which resolves to 0 seconds when configuring this value - this feature will be disabled
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - Configured application/vnd.graphbinary-v1.0 with org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - Configured application/json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - Configured application/vnd.gremlin-v2.0+json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV2d0
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - application/json already has org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0 configured - it will not be replaced by org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV2d0, change order of serialization configuration if this is not desired.
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - Configured application/vnd.gremlin-v3.0+json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - application/json already has org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0 configured - it will not be replaced by org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0, change order of serialization configuration if this is not desired.
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - Configured application/vnd.graphbinary-v1.0 with org.apache.tinkerpop.gremlin.driver.ser.GraphBinaryMessageSerializerV1
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - Configured application/json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - Configured application/vnd.gremlin-v2.0+json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV2d0
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - application/json already has org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0 configured - it will not be replaced by org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV2d0, change order of serialization configuration if this is not desired.
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - Configured application/vnd.gremlin-v3.0+json with org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0
   2022-10-15 22:20:10 [main] [INFO] o.a.t.g.s.AbstractChannelizer - application/json already has org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV1d0 configured - it will not be replaced by org.apache.tinkerpop.gremlin.driver.ser.GraphSONMessageSerializerV3d0, change order of serialization configuration if this is not desired.
   2022-10-15 22:20:10 [gremlin-server-boss-1] [INFO] o.a.t.g.s.GremlinServer - Gremlin Server configured with worker thread pool of 1, gremlin pool of 4 and boss thread pool of 1.
   2022-10-15 22:20:10 [gremlin-server-boss-1] [INFO] o.a.t.g.s.GremlinServer - Channel started at port 8182.
   2022-10-15 22:20:10 [main] [INFO] c.b.h.s.RestServer - RestServer starting...
   2022-10-15 22:20:27 [main] [INFO] c.b.h.u.ConfigUtil - Scaning option 'graphs' directory './conf/graphs'
   2022-10-15 22:20:28 [main] [INFO] c.b.h.s.RestServer - Graph 'hugegraph' was successfully configured via './conf/graphs/hugegraph.properties'
   2022-10-15 22:20:28 [db-open-1] [INFO] c.b.h.b.s.r.RocksDBStore - Opening RocksDB with data path: ./m
   2022-10-15 22:20:29 [db-open-1] [INFO] c.b.h.b.s.r.RocksDBStore - Opening RocksDB with data path: ./s
   2022-10-15 22:20:30 [db-open-1] [INFO] c.b.h.b.s.r.RocksDBStore - Opening RocksDB with data path: ./g
   2022-10-15 22:20:31 [main] [INFO] o.c.o.l.Uns - OHC using JNA OS native malloc/free
   2022-10-15 22:20:32 [main] [INFO] c.b.h.r.RpcServer - RpcServer config is empty, skip starting RpcServer
   2022-10-15 22:20:32 [main] [INFO] c.b.h.HugeGraph - Init server info [server-1-MASTER] for graph 'hugegraph'...
   2022-10-15 22:20:34 [main] [INFO] c.b.h.t.ServerInfoManager - Init server info: HugeServerInfo(server-1){server_load=0, server_role=MASTER, id=server-1, label=~server, server_update_time=Sat Oct 15 22:20:33 CST 2022, server_max_load=10000}
   2022-10-15 22:20:34 [main] [INFO] c.b.h.HugeGraph - Check olap property-key tables for graph 'hugegraph'
   2022-10-15 22:20:34 [main] [INFO] c.b.h.HugeGraph - Restoring incomplete tasks for graph 'hugegraph'...
   2022-10-15 22:20:34 [main] [INFO] c.b.h.s.RestServer - The maximum batch writing threads is 6 (total threads 8)
   2022-10-15 22:20:34 [main] [INFO] c.b.h.s.RestServer - RestServer started
   
   
   ### 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: dev-unsubscribe@hugegraph.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] github-actions[bot] commented on issue #1978: [Question] 启动server异常

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #1978:
URL: https://github.com/apache/incubator-hugegraph/issues/1978#issuecomment-1301255176

   Due to the lack of activity, the current issue is marked as stale and will be closed after 20 days, any update will remove the stale label


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] imbajin closed issue #1978: [Question] 启动server异常

Posted by GitBox <gi...@apache.org>.
imbajin closed issue #1978: [Question] 启动server异常
URL: https://github.com/apache/incubator-hugegraph/issues/1978


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] zhui6688 commented on issue #1978: [Question] 启动server异常

Posted by GitBox <gi...@apache.org>.
zhui6688 commented on issue #1978:
URL: https://github.com/apache/incubator-hugegraph/issues/1978#issuecomment-1282258864

   感谢[imbajin]的回复


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] imbajin commented on issue #1978: [Question] 启动server异常

Posted by GitBox <gi...@apache.org>.
imbajin commented on issue #1978:
URL: https://github.com/apache/incubator-hugegraph/issues/1978#issuecomment-1280955944

   > 解决方案:
   > (1)、由于使用的是win10下的ubuntu子系统进行搭建,故可使用ifconfig命令,在子系统中查看一下其IP地址,
   
   你可以试试, 应该直接改成 `0.0.0.0` 更为通用和简单, 毕竟其他的内网 ip 可能变化, 本来配置中默认使用 `0.0.0.0` 我觉得更好点, 但是好像是考虑到有些测试需要, 就用的本地回环, 如果你愿意的话, 也可以提交一个 PR 增加一行注释, 说明一下本机使用/堆外提供服务可直接用 `0.0.0.0` 即可


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] zhui6688 commented on issue #1978: [Question] 启动server异常

Posted by GitBox <gi...@apache.org>.
zhui6688 commented on issue #1978:
URL: https://github.com/apache/incubator-hugegraph/issues/1978#issuecomment-1279987972

   万分感谢[javeme]的回复,问题已解决。现将解决方案记录如下,以对后续学习者有所帮助。
   
   解决方案:
   (1)、由于使用的是win10下的ubuntu子系统进行搭建,故可使用ifconfig命令,在子系统中查看一下其IP地址,如下图:
   ![VXT(V`% C8~0@}QKVC PHM1](https://user-images.githubusercontent.com/38718591/196041676-bd5c664a-b460-4fc1-bcf0-84e816026e60.png)
   (2)、将rest-server.properties文件中的restserver.url=http://172.24.70.12:8080(上图中对应的IP地址)
   (3)、使用bin/start-hugegraph.sh -s false命令启动server,如下图(启动成功):
   ![image](https://user-images.githubusercontent.com/38718591/196042020-1bcde78c-1813-472a-b5ad-3924a8f25279.png)
   (4)、可在windows中的浏览器中查看启动结果,如下图:
   ![image](https://user-images.githubusercontent.com/38718591/196041972-5fba5ad1-516f-4079-8892-8467a9b84ab9.png)
   (5)、也可在ubuntu子系统中运行links http://172.24.70.12:8080/graphs的命令,查看启动结果。
   


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] zhui6688 commented on issue #1978: [Question] 启动server异常

Posted by GitBox <gi...@apache.org>.
zhui6688 commented on issue #1978:
URL: https://github.com/apache/incubator-hugegraph/issues/1978#issuecomment-1301255977

   这是来自QQ邮箱的自动回复邮件。
    
   您好,该回复仅表明本人已收到此邮件,并不代表本人已查看过邮件。我将查看邮件后,亲自回复您的邮件!!谢谢


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] zhui6688 commented on issue #1978: [Question] 启动server异常

Posted by GitBox <gi...@apache.org>.
zhui6688 commented on issue #1978:
URL: https://github.com/apache/incubator-hugegraph/issues/1978#issuecomment-1279891013

   这是来自QQ邮箱的自动回复邮件。
    
   您好,该回复仅表明本人已收到此邮件,并不代表本人已查看过邮件。我将查看邮件后,亲自回复您的邮件!!谢谢


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] javeme commented on issue #1978: [Question] 启动server异常

Posted by GitBox <gi...@apache.org>.
javeme commented on issue #1978:
URL: https://github.com/apache/incubator-hugegraph/issues/1978#issuecomment-1279989136

   @zhui6688 感谢反馈及记录


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [incubator-hugegraph] javeme commented on issue #1978: [Question] 启动server异常

Posted by GitBox <gi...@apache.org>.
javeme commented on issue #1978:
URL: https://github.com/apache/incubator-hugegraph/issues/1978#issuecomment-1279890982

   超时仅仅是启动脚本的检测超时,不影响服务实际的运行状态,如果服务正常启动(仅仅是启动时间超过30s),则忽略该信息即可。


-- 
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: dev-unsubscribe@hugegraph.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org