maven-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dan Tran <dant...@gmail.com>
Subject Re: Wagon ssh - java.io.IOException: Unexpected end of data
Date Wed, 01 Apr 2015 15:43:35 GMT
Looks like there a hanhshake isue btween wagon ssh and your remote host.
 did you try with smaller files?.  Are you able to use vanilla scp to push
file over?

also maven-wagon-2.9-SNAPSHOT has a lots of blocking fixes.  Did you us
that?

-D

On Wed, Apr 1, 2015 at 7:26 AM, Anton Hughes <kurrent93@gmail.com> wrote:

> Hi
>
>
> When trying to scp a file to a server, I am getting the following error,
> specifically,  java.io.IOException: Unexpected end of data.
>
>
> [DEBUG] Configuring mojo
> org.codehaus.mojo:wagon-maven-plugin:1.0:upload-single from plugin realm
> ClassRealm[plugin>org.codehaus.mojo:wagon-maven-plugin:1.0, parent:
> sun.misc.Launcher$AppClassLoader@3485def8]
> [DEBUG] Configuring mojo
> 'org.codehaus.mojo:wagon-maven-plugin:1.0:upload-single' with basic
> configurator -->
> [DEBUG]   (f) fromFile = /home/anton/git/app.ui/target/app.ui.war
> [DEBUG]   (f) project = MavenProject: nu.magick:app.ui:1.9.0-SNAPSHOT @
> /home/anton/git/app.ui/pom.xml
> [DEBUG]   (f) serverId = appui
> [DEBUG]   (f) settings =
> org.apache.maven.execution.SettingsAdapter@3c985bf9
> [DEBUG]   (f) skip = false
> [DEBUG]   (f) toFile =
>
> opt/jboss/jboss-as-7.1.1.Final/standalone/deployments/app.ui-1.9.0-SNAPSHOT.war
> [DEBUG]   (f) url = scp://localhost:2221
> [DEBUG] -- end configuration --
> scp://localhost:2221 - Session: Opened
> [INFO] Uploading: /home/anton/git/app.ui/target/app.ui.war
>
> scp://localhost:2221/opt/jboss/jboss-as-7.1.1.Final/standalone/deployments/app.ui-1.9.0-SNAPSHOT.war
> Executing command: mkdir -p
> "/opt/jboss/jboss-as-7.1.1.Final/standalone/deployments"
> Executing command: scp -t
>
> "/opt/jboss/jboss-as-7.1.1.Final/standalone/deployments/app.ui-1.9.0-SNAPSHOT.war"
>  Transfer error: java.io.IOException: Unexpected end of data
>  Transfer error: org.apache.maven.wagon.TransferFailedException: Error
> occurred while deploying
>
> 'opt/jboss/jboss-as-7.1.1.Final/standalone/deployments/app.ui-1.9.0-SNAPSHOT.war'
> to remote repository: scp://localhost:2221: Unexpected end of data
> scp://localhost:2221 - Session: Disconnecting
> scp://localhost:2221 - Session: Disconnected
> [INFO]
> ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO]
> ------------------------------------------------------------------------
> [INFO] Total time: 32.114s
> [INFO] Finished at: Wed Apr 01 16:22:38 CEST 2015
> [INFO] Final Memory: 48M/995M
> [INFO]
> ------------------------------------------------------------------------
> [ERROR] Failed to execute goal
> org.codehaus.mojo:wagon-maven-plugin:1.0:upload-single (ssh-upload-single)
> on project app.ui: Error handling resource: Error occurred while deploying
>
> 'opt/jboss/jboss-as-7.1.1.Final/standalone/deployments/app.ui-1.9.0-SNAPSHOT.war'
> to remote repository: scp://localhost:2221: Unexpected end of data -> [Help
> 1]
> org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute
> goal org.codehaus.mojo:wagon-maven-plugin:1.0:upload-single
> (ssh-upload-single) on project app.ui: Error handling resource
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:217)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)
> at
>
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)
> at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
> at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
> at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
> at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
> at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
> at
>
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
> at
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
> Caused by: org.apache.maven.plugin.MojoExecutionException: Error handling
> resource
> at
>
> org.codehaus.mojo.wagon.AbstractSingleWagonMojo.execute(AbstractSingleWagonMojo.java:68)
> at
>
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)
> at
>
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)
> ... 19 more
> Caused by: org.apache.maven.wagon.TransferFailedException: Error occurred
> while deploying
>
> 'opt/jboss/jboss-as-7.1.1.Final/standalone/deployments/app.ui-1.9.0-SNAPSHOT.war'
> to remote repository: scp://localhost:2221: Unexpected end of data
> at
>
> org.apache.maven.wagon.providers.ssh.jsch.ScpWagon.handleIOException(ScpWagon.java:416)
> at
>
> org.apache.maven.wagon.providers.ssh.jsch.ScpWagon.fillOutputData(ScpWagon.java:398)
> at org.apache.maven.wagon.StreamWagon.getOutputStream(StreamWagon.java:188)
> at org.apache.maven.wagon.StreamWagon.put(StreamWagon.java:159)
> at
> org.codehaus.mojo.wagon.UploadSingleMojo.execute(UploadSingleMojo.java:70)
> at
>
> org.codehaus.mojo.wagon.AbstractSingleWagonMojo.execute(AbstractSingleWagonMojo.java:64)
> ... 21 more
> Caused by: java.io.IOException: Unexpected end of data
> at
>
> org.apache.maven.wagon.providers.ssh.jsch.ScpWagon.checkAck(ScpWagon.java:130)
> at
>
> org.apache.maven.wagon.providers.ssh.jsch.ScpWagon.fillOutputData(ScpWagon.java:362)
> ... 25 more
> [ERROR]
> [ERROR]
> [ERROR] For more information about the errors and possible solutions,
> please read the following articles:
> [ERROR] [Help 1]
> http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
> anton@anton-K93SV:~/git/app.ui$
>
>
> Any ideas what is the reason for this? And how I can fix this?
>
> Thanks
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message