usmanakram232 commented on issue #637:
URL: https://github.com/apache/maven-mvnd/issues/637#issuecomment-1315059626

   I have been using `0.8.2` for a while on Fedora 3. But since last week, I 
also started having the same issue. Unfortunately, I am unable to put my finger 
on the change which would have triggered this issue. I have tried with Amazon's 
JDK `corretto-17.0.4.1` and `corretto-19`.
   
   Error message:
   ```
   ❯ mvnd --help
   Exception in thread "main" 
org.mvndaemon.mvnd.common.DaemonException$ConnectException: Could not connect 
to the Maven daemon.
   Daemon id: 65300677
     log file: /home/usman/.m2/mvnd/registry/0.8.2/daemon-65300677.log
   ----- Last  200 lines from daemon log file - 
/home/usman/.m2/mvnd/registry/0.8.2/daemon-65300677.log -----
   10:00:03.651 D Initializing daemon with properties:
        mvnd.home=/home/usman/.local/lib/apache-maven-mvnd-0.8.2
        jdk.java.options=--add-opens java.base/java.io=ALL-UNNAMED --add-opens 
java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.util=ALL-UNNAMED 
--add-opens java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-opens 
java.base/sun.nio.fs=ALL-UNNAMED
        mvnd.noDaemon=false
        mvnd.debug=false
        mvnd.idleTimeout=3h
        mvnd.keepAlive=100ms
        mvnd.extClasspath=
        mvnd.coreExtensions=
        mvnd.enableAssertions=false
        mvnd.expirationCheckDelay=10s
        mvnd.duplicateDaemonGracePeriod=10s
        mvnd.socketFamily=inet
   
   10:00:03.654 I Daemon started
   10:00:03.655 D daemon is running. Sleeping until state changes.
   ----- End of the daemon log file -----
     output: /home/usman/.m2/mvnd/registry/0.8.2/daemon-65300677.out.log
   ----- Last  200 lines from daemon output - 
/home/usman/.m2/mvnd/registry/0.8.2/daemon-65300677.out.log -----
   NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens java.base/java.io=ALL-UNNAMED 
--add-opens java.base/java.lang=ALL-UNNAMED --add-opens 
java.base/java.util=ALL-UNNAMED --add-opens 
java.base/sun.net.www.protocol.jar=ALL-UNNAMED --add-opens 
java.base/sun.nio.fs=ALL-UNNAMED
   ----- End of the daemon output -----
   
        at 
org.mvndaemon.mvnd.client.DaemonConnector.connectToDaemonWithId(DaemonConnector.java:435)
        at 
org.mvndaemon.mvnd.client.DaemonConnector.startDaemon(DaemonConnector.java:287)
        at 
org.mvndaemon.mvnd.client.DaemonConnector.connect(DaemonConnector.java:121)
        at 
org.mvndaemon.mvnd.client.DefaultClient.execute(DefaultClient.java:310)
        at org.mvndaemon.mvnd.client.DefaultClient.main(DefaultClient.java:144)
   Caused by: org.mvndaemon.mvnd.common.DaemonException$ConnectException: Could 
not connect to server /127.0.0.1:39405.
        at 
org.mvndaemon.mvnd.client.DaemonConnector.connect(DaemonConnector.java:517)
        at 
org.mvndaemon.mvnd.client.DaemonConnector.connectToDaemon(DaemonConnector.java:446)
        at 
org.mvndaemon.mvnd.client.DaemonConnector.connectToDaemonWithId(DaemonConnector.java:432)
        ... 4 more
   Caused by: java.io.IOException: Timeout
        at 
org.mvndaemon.mvnd.client.DaemonConnector.connect(DaemonConnector.java:494)
        ... 6 more
   ```
   
   installation path:
   ```
   ❯ which mvnd
   ~/.local/lib/apache-maven-mvnd-0.8.2/bin/mvnd
   ```
   
   JDK/maven versions:
   ```
   ❯ java --version
   openjdk 19 2022-09-20
   OpenJDK Runtime Environment Corretto-19.0.0.36.1 (build 19+36-FR)
   OpenJDK 64-Bit Server VM Corretto-19.0.0.36.1 (build 19+36-FR, mixed mode, 
sharing)
   
   ❯ mvn --version
   Apache Maven 3.8.6 (84538c9988a25aec085021c365c560670ad80f63)
   Maven home: /home/usman/.local/lib/apache-maven-3.8.6
   Java version: 19, vendor: Amazon.com Inc., runtime: 
/home/usman/.jdks/corretto-19
   Default locale: en_US, platform encoding: UTF-8
   OS name: "linux", version: "6.0.7-200.fc36.x86_64", arch: "amd64", family: 
"unix"
   ```
   
   mvnd status:
   ```
   ❯ mvnd --status
         ID      PID                   Address   Status    RSS            Last 
activity  Java home
   93f18529    22484     inet:/127.0.0.1:44147  StopRequested   135m  
2022-11-15T10:47:27.596  /home/usman/.jdks/corretto-19
   65300677    17461     inet:/127.0.0.1:39405  StopRequested   129m  
2022-11-15T10:00:03.652  /home/usman/.jdks/corretto-19
   ```
   
   and output from `java -jar $MVND_HOME/mvn/lib/ext/jansi-2.4.0.jar`
   ```
   ❯ java -jar $MVND_HOME/mvn/lib/ext/jansi-2.4.0.jar
   Jansi 2.4.0
   
   library.jansi.path=
   library.jansi.version=
   Jansi native library loaded from 
/tmp/jansi-2.4.0-d7e910c754cc9851-libjansi.so
      which was auto-extracted from 
jar:file:/home/usman/.local/lib/apache-maven-mvnd-0.8.2/mvn/lib/ext/jansi-2.4.0.jar!/org/fusesource/jansi/internal/native/Linux/x86_64/libjansi.so
   
   os.name= Linux, os.version= 6.0.7-200.fc36.x86_64, os.arch= amd64
   file.encoding= UTF-8
   java.version= 19, java.vendor= Amazon.com Inc., java.home= 
/home/usman/.jdks/corretto-19
   
   jansi.graceful=
   jansi.mode=
   jansi.out.mode=
   jansi.err.mode=
   jansi.colors=
   jansi.out.colors=
   jansi.err.colors=
   jansi.passthrough= false
   jansi.strip= false
   jansi.force= false
   jansi.noreset= false
   org.fusesource.jansi.Ansi.disable= false
   
   IS_WINDOWS: false
   
   isatty(STDOUT_FILENO): 1, System.out is a terminal
   isatty(STDERR_FILENO): 1, System.err is a terminal
   
   Resulting Jansi modes for stout/stderr streams:
     - System.out: AnsiPrintStream{type=Native, colors=TrueColor, mode=Default, 
resetAtUninstall=true}
     - System.err: AnsiPrintStream{type=Native, colors=TrueColor, mode=Default, 
resetAtUninstall=true}
   Processor types description:
     - Native: Supports ansi sequences natively
     - Unsupported: Ansi sequences are stripped out
     - VirtualTerminal: Supported through windows virtual terminal
     - Emulation: Emulated through using windows API console commands
     - Redirected: The stream is redirected to a file or a pipe
   Colors support description:
     - Colors16: 16 colors
     - Colors256: 256 colors
     - TrueColor: 24-bit colors
   Modes description:
     - Strip: Strip all ansi sequences
     - Default: Print ansi sequences if the stream is a terminal
     - Force: Always print ansi sequences, even if the stream is redirected
   
   test on System.out: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE DEFAULT
               bright: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE DEFAULT
                 bold: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE DEFAULT
                faint: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE DEFAULT
           bold+faint: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE DEFAULT
           256 colors:
   
   
   
   
   
            truecolor: /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                       /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                       /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                       /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                       /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                       /\/\/\/\/\/\/\/\
   test on System.err: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE DEFAULT
               bright: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE DEFAULT
                 bold: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE DEFAULT
                faint: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE DEFAULT
           bold+faint: BLACK RED GREEN YELLOW BLUE MAGENTA CYAN WHITE DEFAULT
           256 colors:
   
   
   
   
   
            truecolor: /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                       /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                       /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                       /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                       /\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
                       /\/\/\/\/\/\/\/\
   
                         ┌──┐┌─────┐ ┌─────┐ ┌──────┬──┐
                         │██├┘█████└┬┘█████└┬┘██████│▐▌│
                    ┌──┐ │██│██▄▄▄██│██┌─┐██│██▄▄▄▄ │▄▄│
                    │▒▒└─┘▒█│▒█┌─┐▒█│▒█│ │▒█│ ▀▀▀▀▒█│▒█│
                    └┐▓▓▓▓▓┌┤▓▓│ │▓▓│▓▓│ │▓▓│▀▓▓▓▓▓▀│▓▓│
                     └─────┘└──┘ └──┴──┘ └──┴───────┴──┘
   ```
   
   
   


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to