Uploaded image for project: 'Maven Wagon'
  1. Maven Wagon
  2. WAGON-502

Succesfull PUT times out on Nexus

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Incomplete
    • 3.0.0
    • None
    • None
    • Windows 7, Nexus 3.6.0, maven 3.5.2

    Description

      I am uploading artifacts manually to a raw Nexus repository using maven-wagon-plugin. After succesfull upload of the first file, nothing happens until read timeout is hit.

       

      As far as I can tell, this problem happens with both http providers.

       

      I have tried disabling pooling, setting -Dhttp.protocol.expect-continue=false.

      I have tried uploading the file with curl, this gives the following output (and returns!):

       

      • timeout on name lookup is not supported
      • Trying 10.215.60.229...
      • Connected to 10.215.60.229 (10.215.60.229) port 9081 (#0)
      • Server auth using Basic with user 'deployment'
        > PUT /repository/xcit-test/v_5.1.0/web/js.js HTTP/1.1
        > Host: 10.215.60.229:9081
        > Authorization: Basic ZGVwbG95bWVudDp4Y2l0ZGVwbG95bWVudDEyMw==
        > User-Agent: curl/7.50.1
        > Accept: /
        > Content-Length: 414
        > Expect: 100-continue
        >
        < HTTP/1.1 100 Continue
      • We are completely uploaded and fine
        < HTTP/1.1 201 Created
        < Date: Fri, 23 Feb 2018 09:34:46 GMT
        < Server: Nexus/3.6.0-02 (OSS)
        < X-Frame-Options: SAMEORIGIN
        < X-Content-Type-Options: nosniff
        < Content-Length: 0
        <
      • Connection #0 to host 10.215.60.229 left intact

       

      I looked at the code of maven-wagon-plugin but did not find anything suspicious, and seeing that both providers seem to be affected, I assume the problem lies with a shared component of both providers.

       

      Stacktrace:

       

      Caused by: org.apache.maven.wagon.TransferFailedException: Read timed out
       at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:650)
       at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:553)
       at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:535)
       at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:529)
       at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:509)
       at org.codehaus.mojo.wagon.shared.DefaultWagonUpload.upload (DefaultWagonUpload.java:79)
       at org.codehaus.mojo.wagon.shared.DefaultWagonUpload.upload (DefaultWagonUpload.java:89)
       at org.codehaus.mojo.wagon.UploadMojo.execute (UploadMojo.java:120)
       at org.codehaus.mojo.wagon.AbstractSingleWagonMojo.execute (AbstractSingleWagonMojo.java:64)
       at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
       at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
       at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
       at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
       at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
       at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
       at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       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: java.net.SocketTimeoutException: Read timed out
       at java.net.SocketInputStream.socketRead0 (Native Method)
       at java.net.SocketInputStream.socketRead (SocketInputStream.java:116)
       at java.net.SocketInputStream.read (SocketInputStream.java:171)
       at java.net.SocketInputStream.read (SocketInputStream.java:141)
       at org.apache.maven.wagon.providers.http.httpclient.impl.io.SessionInputBufferImpl.streamRead (SessionInputBufferImpl.java:139)
       at org.apache.maven.wagon.providers.http.httpclient.impl.io.SessionInputBufferImpl.fillBuffer (SessionInputBufferImpl.java:155)
       at org.apache.maven.wagon.providers.http.httpclient.impl.io.SessionInputBufferImpl.readLine (SessionInputBufferImpl.java:284)
       at org.apache.maven.wagon.providers.http.httpclient.impl.conn.DefaultHttpResponseParser.parseHead (DefaultHttpResponseParser.java:140)
       at org.apache.maven.wagon.providers.http.httpclient.impl.conn.DefaultHttpResponseParser.parseHead (DefaultHttpResponseParser.java:57)
       at org.apache.maven.wagon.providers.http.httpclient.impl.io.AbstractMessageParser.parse (AbstractMessageParser.java:261)
       at org.apache.maven.wagon.providers.http.httpclient.impl.DefaultBHttpClientConnection.receiveResponseHeader (DefaultBHttpClientConnection.java:165)
       at org.apache.maven.wagon.providers.http.httpclient.impl.conn.CPoolProxy.receiveResponseHeader (CPoolProxy.java:167)
       at org.apache.maven.wagon.providers.http.httpclient.protocol.HttpRequestExecutor.doReceiveResponse (HttpRequestExecutor.java:272)
       at org.apache.maven.wagon.providers.http.httpclient.protocol.HttpRequestExecutor.execute (HttpRequestExecutor.java:124)
       at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.MainClientExec.execute (MainClientExec.java:271)
       at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.ProtocolExec.execute (ProtocolExec.java:184)
       at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RetryExec.execute (RetryExec.java:88)
       at org.apache.maven.wagon.providers.http.httpclient.impl.execchain.RedirectExec.execute (RedirectExec.java:110)
       at org.apache.maven.wagon.providers.http.httpclient.impl.client.InternalHttpClient.doExecute (InternalHttpClient.java:184)
       at org.apache.maven.wagon.providers.http.httpclient.impl.client.CloseableHttpClient.execute (CloseableHttpClient.java:82)
       at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.execute (AbstractHttpClientWagon.java:834)
       at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:596)
       at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:553)
       at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:535)
       at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:529)
       at org.apache.maven.wagon.providers.http.AbstractHttpClientWagon.put (AbstractHttpClientWagon.java:509)
       at org.codehaus.mojo.wagon.shared.DefaultWagonUpload.upload (DefaultWagonUpload.java:79)
       at org.codehaus.mojo.wagon.shared.DefaultWagonUpload.upload (DefaultWagonUpload.java:89)
       at org.codehaus.mojo.wagon.UploadMojo.execute (UploadMojo.java:120)
       at org.codehaus.mojo.wagon.AbstractSingleWagonMojo.execute (AbstractSingleWagonMojo.java:64)
       at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:134)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
       at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:51)
       at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:309)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:194)
       at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:107)
       at org.apache.maven.cli.MavenCli.execute (MavenCli.java:955)
       at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:290)
       at org.apache.maven.cli.MavenCli.main (MavenCli.java:194)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       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)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            kutschkem Michael Kutschke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: