maven-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Kutschke (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WAGON-502) Succesfull PUT times out on Nexus
Date Fri, 23 Feb 2018 12:53:00 GMT

    [ https://issues.apache.org/jira/browse/WAGON-502?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16374304#comment-16374304
] 

Michael Kutschke commented on WAGON-502:
----------------------------------------

After reading a bit more code, it seems that it is not possible to override the default http.protocol.expect-continue=true
for PUT messages. It would be nice to be able to test if this changes anything, please consider
making this configurable.

> Succesfull PUT times out on Nexus
> ---------------------------------
>
>                 Key: WAGON-502
>                 URL: https://issues.apache.org/jira/browse/WAGON-502
>             Project: Maven Wagon
>          Issue Type: Bug
>          Components: wagon-http, wagon-http-lightweight
>    Affects Versions: 3.0.0
>         Environment: Windows 7, Nexus 3.6.0, maven 3.5.2
>            Reporter: Michael Kutschke
>            Priority: Major
>
> 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!):
>  
> {quote} * 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{quote}
>  
> 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:
>  
> {code:java}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message