Skip to content
Itai Agmon edited this page Nov 24, 2021 · 4 revisions

Troubleshooting

Q: The new Maven version is blocking HTTP requests

Since Version 3.8.1 Maven supports only HTTPS connection to repositories. Since Top-Q's repository is still using HTTP artifacts are failed to download.

To disable the new behavior and to allow HTTP connections, locate your Maven setting.xml file. It can be in `${maven.home}/conf/settings.xml' or '${user.home}/.m2/settings.xml)'. Open the file for edit and find the mirror section. Replace the existing 'maven-default-http-blocker' 'mirror' with the following section:

   <mirror>
      <id>maven-default-http-blocker</id>
      <mirrorOf>dummy</mirrorOf>
      <name>Pseudo repository to mirror external repositories initially using HTTP.</name>
      <url>http://0.0.0.0/</url>
      <blocked>true</blocked>
    </mirror>

For more options, please refer to this StackOverflow thread.

Q: It takes too much time for the server to launch

If you encounter slow server startup on linux environment, it may be caused due to the method linux uses to generate random keys, more information can be found here.

To fix this, follow these steps:

  1. Open the $JAVA_HOME/jre/lib/security/java.security file in a text editor.
  2. Find the line: securerandom.source=file:/dev/random .
  3. Change it to read: securerandom.source=file:/dev/urandom.
  4. restart the server.

Q: I need to refresh the HTML reports a few times before I see the data.

You may use a VM or an NFS with slow IO. To prove that is it the case, download the this jar file, copy it to the Difido folder and launch it by running:

java -jar test.jar

If any of the calls takes longer then 50 ms, then you have a slow IO storage.