Comments (5)
🤖
你好 @ingla9988! 我是Dosu🤖,一个能帮助你解决bug、回答问题,甚至成为贡献者的机器人。在等待一个人类维护者的同时,我在这里为你提供帮助。很高兴遇见你!💻😸
如果HugeGraphServer 1.0.0版本在执行./init-store.sh并设置了管理员密码后,卡在"Starting HugeGraphServer in foreground mode...",您可以使用以下调试方法:
- 检查日志文件:脚本将HugeGraphServer的输出重定向到位于"${LOGS}/hugegraph-server.log"的日志文件。您可以检查此日志文件中的任何错误消息或异常,这可能会指示导致服务器卡住的原因。
tail -f ${LOGS}/hugegraph-server.log
- 检查服务器进程:脚本将HugeGraphServer的进程ID(PID)写入位于"$PID_FILE"的文件。您可以使用此PID检查服务器进程的状态。
ps -ef | grep $(cat $PID_FILE)
- 增加服务器启动超时时间:脚本使用变量
SERVER_STARTUP_TIMEOUT_S
来指定脚本应等待服务器启动的最大时间(以秒为单位)。如果服务器启动的时间超过这个时间,您可以通过在运行脚本时设置-t
选项来增加这个超时时间。
./start-hugegraph.sh -t 60
- 检查服务器的端口:脚本检查"$CONF/rest-server.properties"文件的"gremlinserver.url"和"restserver.url"属性中指定的端口是否可用。如果这些端口被其他进程使用,服务器可能无法启动。您可以使用
netstat
命令检查这些端口是否可用。
netstat -tuln | grep -E '8182|8080'
- 检查服务器的配置:脚本使用"$CONF/gremlin-server.yaml"和"$CONF/rest-server.properties"文件来配置服务器。您可以检查这些文件以确保它们正确配置。
参考资料:
如果您在调试过程中遇到任何问题,欢迎随时向我提问。
Sources
- hugegraph-server/hugegraph-dist/src/assembly/static/bin/start-hugegraph.sh
- hugegraph-server/hugegraph-dist/src/assembly/static/bin/init-store.sh
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
from incubator-hugegraph.
🤖
I'm sorry, but I wasn't able to find specific information on how user @ingla9988 resolved the issue with HugeGraphServer 1.0.0 hanging after enabling auth and setting the admin password. It's possible that the solution was discussed outside of the repository or in a private conversation.
However, I can provide some general guidance on how to enable authentication and set the admin password in HugeGraphServer 1.0.0, which might help in troubleshooting similar issues.
To enable authentication and set the admin password, you need to modify the configuration options in the ServerOptions.java file.
- Set the
AUTHENTICATOR
option to the class path of the authenticator implementation. For example, you can use theorg.apache.hugegraph.auth.StandardAuthenticator
ororg.apache.hugegraph.auth.ConfigAuthenticator
.
public static final ConfigOption<String> AUTHENTICATOR =
new ConfigOption<>(
"auth.authenticator",
"The class path of authenticator implementation. " +
"e.g., org.apache.hugegraph.auth.StandardAuthenticator, " +
"or org.apache.hugegraph.auth.ConfigAuthenticator.",
null,
"org.apache.hugegraph.auth.StandardAuthenticator"
);
- Set the
AUTH_ADMIN_TOKEN
option to the desired admin password. This is only fororg.apache.hugegraph.auth.ConfigAuthenticator
.
public static final ConfigOption<String> AUTH_ADMIN_TOKEN =
new ConfigOption<>(
"auth.admin_token",
"Token for administrator operations, " +
"only for org.apache.hugegraph.auth.ConfigAuthenticator.",
disallowEmpty(),
"your_desired_admin_password"
);
Please note that these changes should be made in the configuration file (usually a .properties file) that is used to initialize the server, not directly in the ServerOptions.java file. The ServerOptions.java file is showing the available configuration options and their default values.
You can find more details in the ServerOptions.java file.
If you have more specific information about the issue faced by @ingla9988 or the changes they made to resolve it, I would be happy to help further.
Sources
This response is meant to be useful and save you time. It is not meant to be a precise solution, but rather a starting point for your own research.
Help me be more useful! Please leave a 👍 if this is helpful and 👎 if it is irrelevant.
If you want to continue the conversation, start your reply with @dosu-bot.
from incubator-hugegraph.
@ingla9988 are you use docker image deploy? what happens before you input admin password? Seems the default image dont enable auth mode if you just pull image and run.
from incubator-hugegraph.
The problem has been resolved
from incubator-hugegraph.
The problem has been resolved
@dosu-bot, could you help to remind/check how does @ingla9988 solve the problem?
More context/information is clear for other users to refer
from incubator-hugegraph.
Related Issues (20)
- [Question] When executing OLTP with a large amount of data, if the vertex ID type is String, an OOM exception will occur HOT 5
- [Bug] server slow log, support loader import & client IP HOT 1
- [Question] oltp时,客户端多线程查询时,报“Interrupted, maybe it is timed out” HOT 2
- [Bug] MissingMethodException in SchemaManager.removeIndexLabel() HOT 5
- [Bug] ./bin/gremlin-console.sh -- -i scripts/example.groovy 时一直报错 HOT 5
- [Question] Docker 1.2.0 server 内置 rocksdb 磁盘满了之后未自动清理 HOT 6
- [Summary] integrate new module PD into hugegraph HOT 1
- [Summary] integrate new module Store into hugegraph
- [Summary] integrate new backend Hstore into hugegraph
- hugegraph服务挂了 HOT 6
- [Feature] Migrate the hg-style.xml to.editorconfig HOT 1
- 并发查询时 /gremlin接口返回的结果与预期不符合 HOT 2
- 并发查询时 /gremlin接口返回的结果与预期不符合 HOT 1
- [Question] call rest-api in multi-users env (concurrency) HOT 6
- Optimizing Shortest Path Calculation HOT 6
- [Bug] migrating from version 0.11 to apache release 1.2.0, but start failed HOT 3
- [Summary] Dropping Support for Java 8: Compatibility Breaks Ahead
- [Question] 1.2.0 create graph in rest-api throws auth related permission HOT 7
- 创建属性的时候报错 HOT 2
- hugegraph集群应该怎么配置? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from incubator-hugegraph.