You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by "Thespica (via GitHub)" <gi...@apache.org> on 2024/08/31 09:51:07 UTC

[I] [Feature] server packaging failed, maybe caused by document outdated [incubator-hugegraph]

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

   ### Feature Description (功能描述)
   
   follow the [tutorial about server](https://hugegraph.apache.org/docs/quickstart/hugegraph-server/#33-source-code-compilation) but met error:
   
   ```bash
   [INFO] Results:
   [INFO]
   [ERROR] Errors:
   [ERROR]   PerfUtilTest.testPerfUtilPerf:352 » CannotCompile by java.lang.reflect.Invocat...
   [ERROR]   PerfUtilTest.testPerfUtilPerf4LightStopwatch:395 » CannotCompile by java.lang....
   [ERROR]   PerfUtilTest.testPerfUtilWithProfilePackage:253 » CannotCompile by java.lang.r...
   [ERROR]   RestClientTest.testPostHttpsWithAllParams:118 » Runtime java.net.SocketTimeout...
   [ERROR]   RestClientTest.testPostHttpsWithTokenAndAllParams:135 » Runtime java.net.Socke...
   [INFO]
   [ERROR] Tests run: 342, Failures: 0, Errors: 5, Skipped: 0
   [INFO]
   [INFO] ------------------------------------------------------------------------
   [INFO] Reactor Summary for hugegraph 1.5.0:
   [INFO]
   [INFO] hugegraph .......................................... SUCCESS [  1.161 s]
   [INFO] hugegraph-commons .................................. SUCCESS [  0.685 s]
   [INFO] hugegraph-common ................................... FAILURE [ 35.086 s]
   [INFO] hugegraph-pd ....................................... SKIPPED
   [INFO] hg-pd-grpc ......................................... SKIPPED
   [INFO] hg-pd-common ....................................... SKIPPED
   [INFO] hg-pd-client ....................................... SKIPPED
   [INFO] hugegraph-store .................................... SKIPPED
   [INFO] hg-store-common .................................... SKIPPED
   [INFO] hugegraph-server ................................... SKIPPED
   [INFO] hugegraph-core ..................................... SKIPPED
   [INFO] hugegraph-rpc ...................................... SKIPPED
   [INFO] hugegraph-api ...................................... SKIPPED
   [INFO] hugegraph-cassandra ................................ SKIPPED
   [INFO] hugegraph-scylladb ................................. SKIPPED
   [INFO] hugegraph-rocksdb .................................. SKIPPED
   [INFO] hugegraph-mysql .................................... SKIPPED
   [INFO] hugegraph-palo ..................................... SKIPPED
   [INFO] hugegraph-hbase .................................... SKIPPED
   [INFO] hugegraph-postgresql ............................... SKIPPED
   [INFO] hg-store-grpc ...................................... SKIPPED
   [INFO] hg-store-client .................................... SKIPPED
   [INFO] hugegraph-hstore ................................... SKIPPED
   [INFO] hugegraph-dist ..................................... SKIPPED
   [INFO] hugegraph-example .................................. SKIPPED
   [INFO] hugegraph-test ..................................... SKIPPED
   [INFO] hg-pd-core ......................................... SKIPPED
   [INFO] hg-pd-service ...................................... SKIPPED
   [INFO] hg-pd-dist ......................................... SKIPPED
   [INFO] hg-pd-test ......................................... SKIPPED
   [INFO] hg-store-rocksdb ................................... SKIPPED
   [INFO] hg-store-core ...................................... SKIPPED
   [INFO] hg-store-node ...................................... SKIPPED
   [INFO] hg-store-test ...................................... SKIPPED
   [INFO] hg-store-dist ...................................... SKIPPED
   [INFO] hg-store-cli ....................................... SKIPPED
   [INFO] install-dist ....................................... SKIPPED
   [INFO] ------------------------------------------------------------------------
   [INFO] BUILD FAILURE
   [INFO] ------------------------------------------------------------------------
   [INFO] Total time:  37.459 s
   [INFO] Finished at: 2024-08-31T17:47:19+08:00
   [INFO] ------------------------------------------------------------------------
   [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.20:test (default-test) on project hugegraph-common: There are test failures.
   [ERROR]
   [ERROR] Please refer to /home/john/hugegraph/tmp/hugegraph/hugegraph-commons/hugegraph-common/target/surefire-reports for the individual test results.
   [ERROR] Please refer to dump files (if any exist) [date]-jvmRun[N].dump, [date].dumpstream and [date]-jvmRun[N].dumpstream.
   [ERROR] -> [Help 1]
   [ERROR]
   [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
   [ERROR] Re-run Maven using the -X switch to enable full debug logging.
   [ERROR]
   [ERROR] For more information about the errors and possible solutions, please read the following articles:
   [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
   [ERROR]
   [ERROR] After correcting the problems, you can resume the build with the command
   [ERROR]   mvn <args> -rf :hugegraph-common
   ```
   
   I guess the directory should be `*hugegraph/*server`, rather than `*hugegraph/*server`?


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


Re: [I] [Feature] server packaging failed, maybe caused by document outdated [incubator-hugegraph]

Posted by "VGalaxies (via GitHub)" <gi...@apache.org>.
VGalaxies commented on issue #2652:
URL: https://github.com/apache/incubator-hugegraph/issues/2652#issuecomment-2322848024

   We have noticed this issue and fixed it in #2651...


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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Feature] server packaging failed, maybe caused by document outdated [incubator-hugegraph]

Posted by "Thespica (via GitHub)" <gi...@apache.org>.
Thespica commented on issue #2652:
URL: https://github.com/apache/incubator-hugegraph/issues/2652#issuecomment-2322849833

   Thank you!
   I have ignored that.


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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Feature] server packaging failed, maybe caused by document outdated [incubator-hugegraph]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
dosubot[bot] commented on issue #2652:
URL: https://github.com/apache/incubator-hugegraph/issues/2652#issuecomment-2322846527

   <!-- Answer -->
   The server packaging failed with errors in `PerfUtilTest` and `RestClientTest` because the tutorial suggests using the `-DskipTests` parameter during the Maven build process. This parameter skips the tests, which would prevent errors in `PerfUtilTest` and `RestClientTest` from causing the build to fail.
   
   ```bash
   mvn package -DskipTests
   ```
   
   If you did not use the `-DskipTests` parameter, the tests would run, and any issues in `PerfUtilTest` and `RestClientTest` could cause the build to fail. This is not related to an outdated document or incorrect directory structure.
   
   Additionally, if you are setting up the server in IntelliJ IDEA, ensure that you have followed the steps to configure the development environment correctly, including copying the necessary configuration files and setting the appropriate VM options for Java 11. For detailed instructions, refer to the [Setup Server in IDEA (Dev)](https://github.com/apache/incubator-hugegraph/blob/master/hugegraph-doc/content/en/docs/contribution-guidelines/hugegraph-server-idea-setup.md) guide.
   
   To summarize the key steps for setting up the server in IntelliJ IDEA:
   
   1. **Copy Configuration Files**: Copy the necessary configuration files to a separate directory to avoid affecting Git tracking.
      ```bash
      cp -r hugegraph-dist/src/assembly/static/scripts hugegraph-dist/src/assembly/static/conf path-to-your-directory
      ```
   
   2. **Initialize the Graph**: Configure the database backend in the `hugegraph.properties` file and run the `InitStore` class.
      ```properties
      backend=rocksdb
      serializer=binary
      rocksdb.data_path=.
      rocksdb.wal_path=.
      ```
   
   3. **Run HugeGraphServer**: Create a new Application configuration in IntelliJ IDEA to run the `HugeGraphServer` class with the appropriate VM options if using Java 11.
      ```bash
      --add-exports=java.base/jdk.internal.reflect=ALL-UNNAMED --add-modules=jdk.unsupported --add-exports=java.base/sun.nio.ch=ALL-UNNAMED
      ```
   
   By following these steps, you can ensure that the server is set up correctly in your development environment, and you can avoid issues related to test failures during the build process <sup>[[1]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/cn/docs/quickstart/hugegraph-server.md)</sup><sup>[[2]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/en/docs/contribution-guidelines/hugegraph-server-idea-setup.md)</sup><sup>[[3]](https://github.com/apache/incubator-hugegraph-doc/blob/master/content/cn/docs/contribution-guidelines/hugegraph-server-idea-setup.md)</sup>.
   
   
   <!-- Dosu Comment Footer -->
   *To continue talking to [Dosu](https://dosu.dev), mention @dosu.*
   


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

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@hugegraph.apache.org
For additional commands, e-mail: issues-help@hugegraph.apache.org


Re: [I] [Feature] server packaging failed, maybe caused by document outdated [incubator-hugegraph]

Posted by "Thespica (via GitHub)" <gi...@apache.org>.
Thespica closed issue #2652: [Feature] server packaging failed, maybe caused by document outdated
URL: https://github.com/apache/incubator-hugegraph/issues/2652


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