Git Product home page Git Product logo

Comments (5)

dosubot avatar dosubot commented on May 29, 2024 2

🤖

你好 @ingla9988! 我是Dosu🤖,一个能帮助你解决bug、回答问题,甚至成为贡献者的机器人。在等待一个人类维护者的同时,我在这里为你提供帮助。很高兴遇见你!💻😸

如果HugeGraphServer 1.0.0版本在执行./init-store.sh并设置了管理员密码后,卡在"Starting HugeGraphServer in foreground mode...",您可以使用以下调试方法:

  1. 检查日志文件:脚本将HugeGraphServer的输出重定向到位于"${LOGS}/hugegraph-server.log"的日志文件。您可以检查此日志文件中的任何错误消息或异常,这可能会指示导致服务器卡住的原因。
tail -f ${LOGS}/hugegraph-server.log
  1. 检查服务器进程:脚本将HugeGraphServer的进程ID(PID)写入位于"$PID_FILE"的文件。您可以使用此PID检查服务器进程的状态。
ps -ef | grep $(cat $PID_FILE)
  1. 增加服务器启动超时时间:脚本使用变量SERVER_STARTUP_TIMEOUT_S来指定脚本应等待服务器启动的最大时间(以秒为单位)。如果服务器启动的时间超过这个时间,您可以通过在运行脚本时设置-t选项来增加这个超时时间。
./start-hugegraph.sh -t 60
  1. 检查服务器的端口:脚本检查"$CONF/rest-server.properties"文件的"gremlinserver.url"和"restserver.url"属性中指定的端口是否可用。如果这些端口被其他进程使用,服务器可能无法启动。您可以使用netstat命令检查这些端口是否可用。
netstat -tuln | grep -E '8182|8080'
  1. 检查服务器的配置:脚本使用"$CONF/gremlin-server.yaml"和"$CONF/rest-server.properties"文件来配置服务器。您可以检查这些文件以确保它们正确配置。

参考资料:

如果您在调试过程中遇到任何问题,欢迎随时向我提问。

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.

dosubot avatar dosubot commented on May 29, 2024 2

🤖

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.

  1. Set the AUTHENTICATOR option to the class path of the authenticator implementation. For example, you can use the org.apache.hugegraph.auth.StandardAuthenticator or org.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"
        );
  1. Set the AUTH_ADMIN_TOKEN option to the desired admin password. This is only for org.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.

SunnyBoy-WYH avatar SunnyBoy-WYH commented on May 29, 2024

@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.

ingla9988 avatar ingla9988 commented on May 29, 2024

The problem has been resolved

from incubator-hugegraph.

imbajin avatar imbajin commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.