-
Notifications
You must be signed in to change notification settings - Fork 525
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Question] hung up in hugegraph-server 1.0.0 after auth enabled #2404
Comments
🤖 你好 @ingla9988! 我是Dosu🤖,一个能帮助你解决bug、回答问题,甚至成为贡献者的机器人。在等待一个人类维护者的同时,我在这里为你提供帮助。很高兴遇见你!💻😸 如果HugeGraphServer 1.0.0版本在执行./init-store.sh并设置了管理员密码后,卡在"Starting HugeGraphServer in foreground mode...",您可以使用以下调试方法:
tail -f ${LOGS}/hugegraph-server.log
ps -ef | grep $(cat $PID_FILE)
./start-hugegraph.sh -t 60
netstat -tuln | grep -E '8182|8080'
参考资料: 如果您在调试过程中遇到任何问题,欢迎随时向我提问。 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. |
@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. |
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 |
🤖 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.
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"
);
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. SourcesThis 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. |
Problem Type (问题类型)
None
Before submit
Environment (环境信息)
Your Question (问题描述)
执行./init-store.sh,并设置了admin密码后
启动一直卡着:Starting HugeGraphServer in foreground mode...
有什么方法可以进行调试吗?
Vertex/Edge example (问题点 / 边数据举例)
No response
Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
No response
The text was updated successfully, but these errors were encountered: