[jira] Commented: (WAGONSSH-28) scp intermittently failing deploying artifact

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] Commented: (WAGONSSH-28) scp intermittently failing deploying artifact

JIRA jira@codehaus.org
    [ http://jira.codehaus.org/browse/WAGONSSH-28?page=comments#action_54974 ]

Vincent Massol commented on WAGONSSH-28:
----------------------------------------

Brett,

i've just svn up and bootstrapped the whole m2 trunk and I've then tried to deploy some cargo jar. Unfortunately it failed with the "session is down" problem:


C:\dev\cargo\trunk\core\api\util>mvn clean deploy
[INFO] Scanning for projects...
[INFO] snapshot org.apache.maven.wagon:wagon-ssh-external:1.0-alpha-6-SNAPSHOT: checking for updates from central
[INFO] snapshot org.apache.maven.wagon:wagon-ssh-external:1.0-alpha-6-SNAPSHOT: checking for updates from cargo m2 release reposit
ory
[INFO] snapshot org.apache.maven.wagon:wagon-ssh-external:1.0-alpha-6-SNAPSHOT: checking for updates from maven-snapshot
Downloading: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-ssh-external/1.0-alpha-6-SNAPSHOT/wagon-ssh-e
xternal-1.0-alpha-6-20060105.062346-5.pom
971b downloaded
[INFO] snapshot org.apache.maven.wagon:wagon-providers:1.0-alpha-6-SNAPSHOT: checking for updates from central
[INFO] snapshot org.apache.maven.wagon:wagon-providers:1.0-alpha-6-SNAPSHOT: checking for updates from cargo m2 release repository

[INFO] snapshot org.apache.maven.wagon:wagon-providers:1.0-alpha-6-SNAPSHOT: checking for updates from maven-snapshot
Downloading: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-providers/1.0-alpha-6-SNAPSHOT/wagon-provider
s-1.0-alpha-6-20060105.062346-6.pom
1K downloaded
[INFO] snapshot org.apache.maven.wagon:wagon:1.0-alpha-6-SNAPSHOT: checking for updates from central
[INFO] snapshot org.apache.maven.wagon:wagon:1.0-alpha-6-SNAPSHOT: checking for updates from cargo m2 release repository
[INFO] snapshot org.apache.maven.wagon:wagon:1.0-alpha-6-SNAPSHOT: checking for updates from maven-snapshot
Downloading: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon/1.0-alpha-6-SNAPSHOT/wagon-1.0-alpha-6-200601
05.062346-7.pom
4K downloaded
[INFO] snapshot org.apache.maven.wagon:wagon-provider-api:1.0-alpha-6-SNAPSHOT: checking for updates from central
[INFO] snapshot org.apache.maven.wagon:wagon-provider-api:1.0-alpha-6-SNAPSHOT: checking for updates from cargo m2 release reposit
ory
[INFO] snapshot org.apache.maven.wagon:wagon-provider-api:1.0-alpha-6-SNAPSHOT: checking for updates from maven-snapshot
Downloading: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6-SNAPSHOT/wagon-provi
der-api-1.0-alpha-6-20060105.062346-7.pom
598b downloaded
Downloading: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-provider-api/1.0-alpha-6-SNAPSHOT/wagon-provi
der-api-1.0-alpha-6-20060105.062346-7.jar
41K downloaded
Downloading: http://snapshots.maven.codehaus.org/maven2/org/apache/maven/wagon/wagon-ssh-external/1.0-alpha-6-SNAPSHOT/wagon-ssh-e
xternal-1.0-alpha-6-20060105.062346-5.jar
9K downloaded
[INFO] ----------------------------------------------------------------------------
[INFO] Building Cargo Core Util API
[INFO]    task-segment: [clean, deploy]
[INFO] ----------------------------------------------------------------------------
[INFO] [clean:clean]
[INFO] Deleting directory C:\dev\cargo\trunk\core\api\util\target
[INFO] [resources:resources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:compile]
Compiling 10 source files to C:\dev\cargo\trunk\core\api\util\target\classes
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
Compiling 1 source file to C:\dev\cargo\trunk\core\api\util\target\test-classes
[INFO] [surefire:test]
[INFO] Setting reports dir: C:\dev\cargo\trunk\core\api\util\target/surefire-reports
battery = null(org.apache.maven.surefire.battery.DirectoryBattery)

-------------------------------------------------------
 T E S T S
-------------------------------------------------------
battery = null(org.apache.maven.surefire.battery.JUnitBattery)
[surefire] Running org.codehaus.cargo.util.Base64Test
[surefire] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0,04 sec

Results :
[surefire] Tests run: 1, Failures: 0, Errors: 0

[INFO] [jar:jar]
[INFO] Building jar: C:\dev\cargo\trunk\core\api\util\target\cargo-core-api-util-0.8-SNAPSHOT.jar
[INFO] [install:install]
[INFO] Installing C:\dev\cargo\trunk\core\api\util\target\cargo-core-api-util-0.8-SNAPSHOT.jar to C:\Documents and Settings\Vincen
t Massol\.m2\repository\org\codehaus\cargo\cargo-core-api-util\0.8-SNAPSHOT\cargo-core-api-util-0.8-SNAPSHOT.jar
[INFO] [deploy:deploy]
[INFO] Retrieving previous build number from cargo-snapshot
The authenticity of host 'beaver.codehaus.org' can't be established.
RSA key fingerprint is 28:5c:69:90:31:43:99:f2:2c:85:33:86:44:02:91:3b.
Are you sure you want to continue connecting? (yes/no): yes
Uploading: scp://beaver.codehaus.org/home/projects/cargo/dist2-snapshot/org/codehaus/cargo/cargo-core-api-util/0.8-SNAPSHOT/cargo-
core-api-util-0.8-20060105.080831-1.jar
10K uploaded
[INFO] ----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO] ----------------------------------------------------------------------------
[INFO] Error deploying artifact: Error performing commands for file transfer

session is down
[INFO] ----------------------------------------------------------------------------
[INFO] For more information, run Maven with the -e switch
[INFO] ----------------------------------------------------------------------------
[INFO] Total time: 36 seconds
[INFO] Finished at: Thu Jan 05 09:08:51 CET 2006
[INFO] Final Memory: 5M/13M
[INFO] ----------------------------------------------------------------------------

C:\dev\cargo\trunk\core\api\util>

> scp intermittently failing deploying artifact
> ---------------------------------------------
>
>          Key: WAGONSSH-28
>          URL: http://jira.codehaus.org/browse/WAGONSSH-28
>      Project: wagon-ssh
>         Type: Bug

>  Environment: JDK 1.5, Red Hat 9
>     Reporter: Joe Futrelle
>     Assignee: Brett Porter
>      Fix For: 1.0-alpha-6

>
>
> Some of the time, deploying artifacts fails during the scp transfer. The bottom of the stack trace is reproduced below. If I run the m2 deploy enough times, it succeeds; not sure why.
> This is not an unknown issue with Jsch; apparently client code can cause behavior like this if it doesn't dispose of connections properly. Possibly a plugin that's runs before the deploy phase is messing up the connection state somehow?
> Caused by: org.apache.maven.wagon.TransferFailedException: Error occured while deploying 'ncsa/gsbt/1.0-SNAPSHOT/gsbt-1.0-20050728.190330-38.pom.sha1' to remote repository: scp://chasm.ncsa.uiuc.edu//home/futrelle/m2/repository
>         at org.apache.maven.wagon.providers.ssh.ScpWagon.put(ScpWagon.java:331)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.putRemoteFile(DefaultWagonManager.java:167)
>         at org.apache.maven.artifact.manager.DefaultWagonManager.putArtifact(DefaultWagonManager.java:91)
>         at org.apache.maven.artifact.deployer.DefaultArtifactDeployer.deploy(DefaultArtifactDeployer.java:73)
>         ... 17 more
> Caused by: com.jcraft.jsch.JSchException: session is down
>         at com.jcraft.jsch.Channel.connect(Unknown Source)
>         at org.apache.maven.wagon.providers.ssh.ScpWagon.put(ScpWagon.java:271)
>         ... 20 more

--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]