[ http://jira.codehaus.org/browse/MNG-678?page=comments#action_51390 ]
Michael Fiedler commented on MNG-678:
-------------------------------------
Hi,
I am getting this error while trying to site:deploy. I am performing the
site:deploy from a WinXP, SP2 machine to a W2k, SP4 machine running openSSH.
I am able to send files from the XP to w2k machine using WinSCP. I had some
initial errors (because I did not fill in the POM correctly). I also had a
problem with the x.dll missing from the openSSh dist. After placing that dll
in the path on the W2K machine, this is what I get:
...
[INFO] [site:deploy]
The authenticity of host 'host.domain.com' can't be established.
RSA key fingerprint is ad:bf:d2:d3:05:ab:7f:be:a1:66:90:05:02:d2:2d:0a.
Are you sure you want to continue connecting? (yes/no): yes
...
: scp://host.domain.com/projects/site/ - Session: Opened
Executing command: mkdir -p /projects/site/.
Executing command: mkdir -p /projects/site/.
Executing command: scp -t /projects/site/./wagon45594.zip
scp://host.domain.com/projects/site/ - Session: Disconnecting
scp://host.domain.com/projects/site/ - Session: Disconnected
[INFO]
----------------------------------------------------------------------------
[ERROR] BUILD ERROR
[INFO]
----------------------------------------------------------------------------
[INFO] Error uploading site
Embedded error: Did receive proper ACK: '1'
[INFO]
----------------------------------------------------------------------------
[INFO] Trace
org.apache.maven.lifecycle.LifecycleExecutionException: Error uploading site
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:544)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeStandaloneGoal(DefaultLifecycleExecutor.java:482)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:452)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:301)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:268)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:137)
at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:316)
at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:113)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:249)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.apache.maven.plugin.MojoExecutionException: Error uploading site
at
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:142)
at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:399)
at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:519)
... 16 more
Caused by: org.apache.maven.wagon.TransferFailedException: Did receive proper
ACK: '1'
at
org.apache.maven.wagon.providers.ssh.ScpWagon.checkAck(ScpWagon.java:203)
at org.apache.maven.wagon.providers.ssh.ScpWagon.put(ScpWagon.java:140)
at
org.apache.maven.wagon.providers.ssh.AbstractSshWagon.putDirectory(AbstractSshWagon.java:516)
at
org.apache.maven.plugins.site.SiteDeployMojo.execute(SiteDeployMojo.java:134)
... 18 more
I even changed the location (in my pom file) to see if it had an problems with
mkdir:
: scp://host.domain.com/ - Session: Opened
Executing command: mkdir -p /.
Executing command: mkdir -p /.
Executing command: scp -t /./wagon45538.zip
scp://host.domain.com/ - Session: Disconnecting
scp://host.domain.com/ - Session: Disconnected
my pom file:
<project>
...
<distributionManagement>
<site>
<id>M2_site_deploy</id>
<name>site deployment</name>
<url>scp://host.domain.com/</url>
</site>
</distributionManagement>
</project>
my settings file:
<settings>
...
<servers>
<server>
<id>M2_site_deploy</id>
<username>xxxxxxxx</username>
<password>xxxxxxxx</password>
</server>
</servers>
...
</settings>
Thank you, Michael
> scp intermittently failing deploying artifact
> ---------------------------------------------
>
> Key: MNG-678
> URL: http://jira.codehaus.org/browse/MNG-678
> Project: Maven 2
> Type: Bug
> Components: maven-artifact
> Versions: 2.0-alpha-3
> Environment: JDK 1.5, Red Hat 9
> Reporter: Joe Futrelle
> Assignee: Brett Porter
> Fix For: 2.0.1
>
>
> 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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]