[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16732297#comment-16732297 ] Dan Tran commented on WAGON-543: Let's go with that option > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > Attachments: debugger screenshot.png > > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16732272#comment-16732272 ] Michael Osipov commented on WAGON-543: -- I think the only option is to restore the old transfer method in {{AbstractJschWagon}} only until the upstream issue is resolved. > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > Attachments: debugger screenshot.png > > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16732239#comment-16732239 ] Michael Osipov commented on WAGON-543: -- Running Wagon master against {{scpexe}} works flawlessly. So we need a workaround for JSch until the upstream issue is resolved. > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > Attachments: debugger screenshot.png > > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16732235#comment-16732235 ] Michael Osipov commented on WAGON-543: -- I have modified the wagon-maven-plugin to use {{scpexe}} (wagon-ssh-external) and applied {{no-channels}} to Wagon: {noformat} [mosipov@mika-ion ~/Projekte/wagon-maven-plugin/src/test/projects/ssh-it]$ ~/apache-maven-3.6.1-SNAPSHOT/bin/mvn -Debug -Dit-plugin.version=2.0.1-SNAPSHOT -s settings.xml [INFO] Scanning for projects... [INFO] [INFO] < org.codehaus.mojo:wagon-maven-plugin > [INFO] Building wagon-maven-plugin testing [INFO] [ pom ]- [INFO] [INFO] --- wagon-maven-plugin:2.0.1-SNAPSHOT:sshexec (ssh-exec) @ wagon-maven-plugin --- [INFO] sshexec: rm -rf /tmp/wagon ... [INFO] sshexec: mkdir -p /tmp/wagon/empty ... [INFO] sshexec: touch /tmp/wagon/a.txt ... [INFO] sshexec: touch /tmp/wagon/b.txt ... [INFO] [INFO] --- wagon-maven-plugin:2.0.1-SNAPSHOT:list (ssh-list-1) @ wagon-maven-plugin --- [INFO] Scanning remote file system: scpexe://localhost ... [INFO] a.txt [INFO] [INFO] --- wagon-maven-plugin:2.0.1-SNAPSHOT:list (ssh-list-2) @ wagon-maven-plugin --- [INFO] Scanning remote file system: scpexe://localhost ... [INFO] a.txt [INFO] b.txt [INFO] [INFO] --- wagon-maven-plugin:2.0.1-SNAPSHOT:upload-single (ssh-upload-single) @ wagon-maven-plugin --- [INFO] Uploading: /usr/home/mosipov/Projekte/wagon-maven-plugin/src/test/projects/ssh-it/src/test/data/gt-32k.txt scpexe://localhost/tmp/wagon/gt-32k.txt [INFO] [INFO] --- wagon-maven-plugin:2.0.1-SNAPSHOT:download-single (ssh-download-single) @ wagon-maven-plugin --- [INFO] Downloading: scpexe://localhost/tmp/wagon/gt-32k.txt to /usr/home/mosipov/Projekte/wagon-maven-plugin/src/test/projects/ssh-it/target/gt-32k.txt [INFO] [INFO] --- wagon-maven-plugin:2.0.1-SNAPSHOT:sshexec (ssh-exec-wagon-431) @ wagon-maven-plugin --- [INFO] sshexec: cat /tmp/wagon/gt-32k.txt ... 4.0.0 org.codehaus.mojo wagon-maven-plugin pom testing package org.apache.maven.wagon wagon-ssh 2.11 org.codehaus.mojo wagon-maven-plugin 1.1-SNAPSHOT wagon-maven-plugin-ssh-test scp://localhost: ssh-exec package sshexec true rm -rf /tmp/wagon mkdir -p /tmp/wagon/empty touch /tmp/wagon/a.txt touch /tmp/wagon/b.txt ssh-list-1 package list /tmp/wagon ** **/b.txt ssh-list-2 package list /tmp/wagon ** ssh-upload-single package upload-single pom.xml tmp/wagon/pom.xml ssh-download-single package download-single tmp/wagon/pom.xml ${project.build.directory}/pom.xml ssh-exec-2 package sshexec true cat /tmp/wagon/pom.xml org.codehaus.mojo wagon-maven-plugin 1.0 wagon-maven-plugin-ssh-test scp://localhost: ssh-exec package sshexec true rm -rf /tmp/wagon mkdir -p /tmp/wagon/empty touch /tmp/wagon/a.txt touch /tmp/wagon/b.txt ssh-list-1 package list /tmp/wagon ** **/b.txt ssh-list-2 package list /tmp/wagon ** ssh-upload-single package upload-single pom.xml tmp/wagon/pom.xm
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=1673#comment-1673 ] Michael Osipov commented on WAGON-543: -- [~dantran], I have uploaded branch {{no-channels}} in Wagon where I have reverted WAGON-537 and applied a small change on top of it. JSch still hangs with non-NIO code. This is a bug a JSch. Please try the branch and tell me what you think. > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > Attachments: debugger screenshot.png > > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16732183#comment-16732183 ] Michael Osipov commented on WAGON-543: -- The byte at position 916 is {{NUL}}. > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > Attachments: debugger screenshot.png > > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16732193#comment-16732193 ] Michael Osipov commented on WAGON-543: -- Thread dump at blocked state: {noformat} [mosipov@mika-ion ~]$ jstack 2030 2019-01-02 17:10:39 Full thread dump OpenJDK Server VM (24.95-b01 mixed mode): "Attach Listener" daemon prio=5 tid=0x74415000 nid=0x7442a000 waiting on condition [0x] java.lang.Thread.State: RUNNABLE "Connect thread localhost session" prio=5 tid=0x2967ec00 nid=0x73dfd400 runnable [0xbb429000] java.lang.Thread.State: RUNNABLE at java.net.SocketInputStream.socketRead0(Native Method) at java.net.SocketInputStream.read(SocketInputStream.java:153) at java.net.SocketInputStream.read(SocketInputStream.java:122) at com.jcraft.jsch.IO.getByte(IO.java:82) at com.jcraft.jsch.Session.read(Session.java:926) at com.jcraft.jsch.Session.run(Session.java:1403) at java.lang.Thread.run(Thread.java:748) "Service Thread" daemon prio=5 tid=0x2967d000 nid=0x296b5400 runnable [0x] java.lang.Thread.State: RUNNABLE "C2 CompilerThread1" daemon prio=5 tid=0x2967c800 nid=0x296b5100 waiting on condition [0x] java.lang.Thread.State: RUNNABLE "C2 CompilerThread0" daemon prio=5 tid=0x2967bc00 nid=0x296b4e00 waiting on condition [0x] java.lang.Thread.State: RUNNABLE "JDWP Command Reader" daemon prio=5 tid=0x74616000 nid=0x7462e000 runnable [0x] java.lang.Thread.State: RUNNABLE "JDWP Event Helper Thread" daemon prio=5 tid=0x2967b400 nid=0x296b4b00 runnable [0x] java.lang.Thread.State: RUNNABLE "JDWP Transport Listener: dt_socket" daemon prio=5 tid=0x2967ac00 nid=0x296b4800 runnable [0x] java.lang.Thread.State: RUNNABLE "Signal Dispatcher" daemon prio=5 tid=0x2967a800 nid=0x296b4500 runnable [0x] java.lang.Thread.State: RUNNABLE "Finalizer" daemon prio=5 tid=0x2967a000 nid=0x296b4200 in Object.wait() [0xbb8d6000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x30edc300> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:135) - locked <0x30edc300> (a java.lang.ref.ReferenceQueue$Lock) at java.lang.ref.ReferenceQueue.remove(ReferenceQueue.java:151) at java.lang.ref.Finalizer$FinalizerThread.run(Finalizer.java:209) "Reference Handler" daemon prio=5 tid=0x29679800 nid=0x296b3f00 in Object.wait() [0xbb927000] java.lang.Thread.State: WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x30edbec8> (a java.lang.ref.Reference$Lock) at java.lang.Object.wait(Object.java:503) at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:133) - locked <0x30edbec8> (a java.lang.ref.Reference$Lock) "main" prio=5 tid=0x29679000 nid=0x28614300 in Object.wait() [0xbbbfc000] java.lang.Thread.State: TIMED_WAITING (on object monitor) at java.lang.Object.wait(Native Method) - waiting on <0x5c18e420> (a com.jcraft.jsch.Channel$MyPipedInputStream) at java.io.PipedInputStream.read(PipedInputStream.java:327) - locked <0x5c18e420> (a com.jcraft.jsch.Channel$MyPipedInputStream) at java.io.PipedInputStream.read(PipedInputStream.java:378) - locked <0x5c18e420> (a com.jcraft.jsch.Channel$MyPipedInputStream) at java.nio.channels.Channels$ReadableByteChannelImpl.read(Channels.java:385) - locked <0x5c1a6158> (a java.lang.Object) at org.apache.maven.wagon.AbstractWagon.transfer(AbstractWagon.java:598) at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:395) at org.apache.maven.wagon.providers.ssh.jsch.ScpWagon.getTransfer(ScpWagon.java:184) at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:338) at org.apache.maven.wagon.AbstractWagon.getTransfer(AbstractWagon.java:307) at org.apache.maven.wagon.StreamWagon.getIfNewer(StreamWagon.java:97) at org.apache.maven.wagon.StreamWagon.get(StreamWagon.java:61) at org.codehaus.mojo.wagon.DownloadSingleMojo.execute(DownloadSingleMojo.java:90) at org.codehaus.mojo.wagon.AbstractSingleWagonMojo.execute(AbstractSingleWagonMojo.java:63) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) at o
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16732174#comment-16732174 ] Michael Osipov commented on WAGON-543: -- [~dantran], I believe the current code does not hav a bug, but simply surfaced a bug in the {{InputStream}} implementation of JSch. {{#read()}} is not implemented as specified and does not return a -1 on EOF. The fundamental difference is that the previous code request to stream the only remaining amount of bytes and the new one the at most the amount of bytes available to the buffer which is more than 916, > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16730905#comment-16730905 ] Dan Tran commented on WAGON-543: Looks like new changes at AbstractWagon's transfer method requires NIO behavior and jcsh cant provide? > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16730860#comment-16730860 ] Dan Tran commented on WAGON-543: To help with debugging this issue, I cooked up a sshshell wrapper of wagon-ssh with a demo unit test at https://github.com/dantran/wagon-ssh-demo > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16730849#comment-16730849 ] Michael Osipov commented on WAGON-543: -- Alright, I can reproduce it now. > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16730847#comment-16730847 ] Michael Osipov commented on WAGON-543: -- Right, stupid me. Let me retry... > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16730845#comment-16730845 ] Dan Tran commented on WAGON-543: it passes b/c you have wagon-provider-api-3.2.0.jar under your maven's lib directory did you build maven-3.6.0-SNAPSHOT with wagon 3.3.1-SNAPSHOT you should see ls wagon* wagon-file-3.3.1-SNAPSHOT.jar wagon-http-3.3.1-SNAPSHOT-shaded.jar wagon-provider-api-3.3.1-SNAPSHOT.jar > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16730842#comment-16730842 ] Michael Osipov commented on WAGON-543: -- We do have a problem now: {noformat} [mosipov@mika-ion ~/Projekte/wagon-maven-plugin/src/test/projects/ssh-it]$ tree ~/apache-maven-3.6.1-SNAPSHOT/lib/ | grep wagon ├── maven-resolver-transport-wagon-1.3.1.jar ├── wagon-file-3.2.0.jar ├── wagon-http-3.2.0-shaded.jar.bak ├── wagon-http-3.3.1-SNAPSHOT-shaded.jar └── wagon-provider-api-3.2.0.jar {noformat} now the run: {noformat} [mosipov@mika-ion ~/Projekte/wagon-maven-plugin/src/test/projects/ssh-it]$ git branch * master [mosipov@mika-ion ~/Projekte/wagon-maven-plugin/src/test/projects/ssh-it]$ git diff diff --git a/src/test/projects/ssh-it/pom.xml b/src/test/projects/ssh-it/pom.xml index 4f1a9b7..4a0d215 100644 --- a/src/test/projects/ssh-it/pom.xml +++ b/src/test/projects/ssh-it/pom.xml @@ -8,7 +8,7 @@ testing -3.0.0 +3.3.1-SNAPSHOT diff --git a/src/test/projects/ssh-it/settings.xml b/src/test/projects/ssh-it/settings.xml index 1d96526..8200f9a 100644 --- a/src/test/projects/ssh-it/settings.xml +++ b/src/test/projects/ssh-it/settings.xml @@ -1,16 +1,15 @@ http://maven.apache.org/POM/4.0.0"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.1.0 http://maven.apache.org/xsd/settings-1.1.0.xsd";> - http://maven.apache.org/SETTINGS/1.1.0";>/home/jbochenski/.m2/repository http://maven.apache.org/SETTINGS/1.1.0";> wagon-maven-plugin-ssh-test ${user.name} - - + ${user.home}/.ssh/id_rsa + - \ No newline at end of file + [mosipov@mika-ion ~/Projekte/wagon-maven-plugin/src/test/projects/ssh-it]$ ~/apache-maven-3.6.1-SNAPSHOT/bin/mvn -V -Dit-plugin.version=2.0.0 -s settings.xml Apache Maven 3.6.1-SNAPSHOT (9c946263facbfa851fb646b3fac62cf1d3302ded; 2018-12-29T19:10:03+01:00) Maven home: /home/mosipov/apache-maven-3.6.1-SNAPSHOT Java version: 1.8.0_192, vendor: Oracle Corporation, runtime: /usr/local/openjdk8/jre Default locale: de_DE, platform encoding: UTF-8 OS name: "freebsd", version: "11.2-release-p7", arch: "i386", family: "unix" [INFO] Scanning for projects... [INFO] [INFO] < org.codehaus.mojo:wagon-maven-plugin > [INFO] Building wagon-maven-plugin testing [INFO] [ pom ]- [INFO] [INFO] --- wagon-maven-plugin:2.0.0:sshexec (ssh-exec) @ wagon-maven-plugin --- [INFO] sshexec: rm -rf /tmp/wagon ... [INFO] sshexec: mkdir -p /tmp/wagon/empty ... [INFO] sshexec: touch /tmp/wagon/a.txt ... [INFO] sshexec: touch /tmp/wagon/b.txt ... [INFO] [INFO] --- wagon-maven-plugin:2.0.0:list (ssh-list-1) @ wagon-maven-plugin --- [INFO] Scanning remote file system: scp://localhost ... [INFO] a.txt [INFO] [INFO] --- wagon-maven-plugin:2.0.0:list (ssh-list-2) @ wagon-maven-plugin --- [INFO] Scanning remote file system: scp://localhost ... [INFO] a.txt [INFO] b.txt [INFO] [INFO] --- wagon-maven-plugin:2.0.0:upload-single (ssh-upload-single) @ wagon-maven-plugin --- [INFO] Uploading: /usr/home/mosipov/Projekte/wagon-maven-plugin/src/test/projects/ssh-it/src/test/data/gt-32k.txt scp://localhost/tmp/wagon/gt-32k.txt [INFO] [INFO] --- wagon-maven-plugin:2.0.0:download-single (ssh-download-single) @ wagon-maven-plugin --- [INFO] Downloading: scp://localhost/tmp/wagon/gt-32k.txt to /usr/home/mosipov/Projekte/wagon-maven-plugin/src/test/projects/ssh-it/target/gt-32k.txt [INFO] [INFO] --- wagon-maven-plugin:2.0.0:sshexec (ssh-exec-wagon-431) @ wagon-maven-plugin --- [INFO] sshexec: cat /tmp/wagon/gt-32k.txt ... 4.0.0 org.codehaus.mojo wagon-maven-plugin pom testing package org.apache.maven.wagon wagon-ssh 2.11 org.codehaus.mojo wagon-maven-plugin 1.1-SNAPSHOT wagon-maven-plugin-ssh-test scp://localhost: ssh-exec package sshexec true rm -rf /tmp/wagon mkdir -p /tmp/wagon/empty touch /tmp/wagon/a.txt touch /tmp/wagon/b.txt ssh-list-1 package list /tmp/wagon ** **/b.txt ssh-list-2 package list /tmp/wagon ** ssh-upload-single package upload-single
[jira] [Commented] (WAGON-543) wagon-ssh download hangs
[ https://issues.apache.org/jira/browse/WAGON-543?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16730831#comment-16730831 ] Michael Osipov commented on WAGON-543: -- Trying to reproduce... > wagon-ssh download hangs > > > Key: WAGON-543 > URL: https://issues.apache.org/jira/browse/WAGON-543 > Project: Maven Wagon > Issue Type: Bug > Components: wagon-ssh >Affects Versions: 3.3.0 >Reporter: Dan Tran >Assignee: Michael Osipov >Priority: Major > > To reproduce this issue > 1. checkout https://github.com/mojohaus/wagon-maven-plugin.git > 2. Locally build maven 3.6.1-SNAPSHOT with wagon 3.3.0 and run it with > 3. cd src/test/project/ssh-it; mvn -Dit-plugin.version=2.0.0 > Assume your local account can ssh to same host with ssh key > other notes: > * No problem with maven 3.6.0 > * I also have internal ssh library wrapper of wagon-ssh to perform > sshexe/upload/download activities. Seeing the same issue with wagon 3.3.0 > * The root cause likely is from WAGON-537 with changes at AbstractWagon > which may have side effect on internal JSCH 32K buffer > Reverting WAGON-537 fixes this issue -- This message was sent by Atlassian JIRA (v7.6.3#76005)