Hi Michal,

I've managed to reproduce this error (though I don't get the exact same
error messages\codes you do); in any case, I've also noticed that you
reported the issue in regard to Aether 1.11 so I've tested the same scenario
with version 1.12 and it seems to resolve the issue.
Can you test your case with 1.12?
If the problem persists even after the upgrade, can you please send us a
small sample project the consistently reproduces it?

Thanks,
Noam

On Wed, Aug 10, 2011 at 4:53 PM, Michal Galet <[email protected]>wrote:

> It is 2.3.4 running on Fedora 13.
>
>
> On Wed, Aug 10, 2011 at 3:42 PM, Noam Y. Tenne <[email protected]> wrote:
>
>> Hi Michal,
>>
>> Which version of Artifactory are you running?
>>
>> On Wed, Aug 10, 2011 at 10:58 AM, Michal Galet <[email protected]>wrote:
>>
>>> Hi,
>>>
>>> I am trying to upload 400MB large artifact to Artifactory using
>>> sonatype-aether (part of Maven 3). The provider is async-http-client. The
>>> upload process stops after 10 minutes with the following error:
>>>
>>> 2011-08-09 05:46:52,762 ["http-bio-8081"-exec-24] [WARN ]
>>> (o.a.j.j.ArtifactoryBaseDataStore:564) - Can not insert new record: Read
>>> timed out
>>> 2011-08-09 05:46:52,763 ["http-bio-8081"-exec-24] [WARN ]
>>> (o.a.r.j.StoringRepoMixin:612) - IO error while trying to save resource
>>> release-local:com/example/test/1.2.3/test-1.2.3.tgz'': Read timed out
>>>
>>> The HTTP response I get on client side is 400 - Bad Request.
>>>
>>> I found another thread with similar problem (
>>> http://forums.jfrog.org/cant-deploy-large-artifacts-td4099163.html) and
>>> Noam suggested to look into authentication details. So I digged deeper and
>>> found that when we do not use preemptive authentication the upload fails.
>>> But it fails for large files only. Here is the code snippet
>>> (async-http-client):
>>>
>>> AsyncHttpClientConfig.Builder config = new
>>> AsyncHttpClientConfig.Builder();
>>> config
>>>   .setRealm(
>>>     new Realm.RealmBuilder()
>>>     .setPrincipal("foo")
>>>     .setPassword("bar")
>>>     .setUsePreemptiveAuth(false)
>>>     .build())
>>>   .setRequestTimeoutInMs(60 * 60 * 1000);
>>>
>>> AsyncHttpClient httpClient = new AsyncHttpClient(config.build());
>>> Response response = httpClient.preparePut("
>>> http://myserver.com:8081/artifactory/testing-local/com/example/test/1.2.3/test-1.2.3.tgz
>>> ")
>>>   .setBody(new File("src/test/resources/test-1.2.3.tgz"))
>>>   .execute()
>>>   .get();
>>>
>>> When I change the preemptive auth to* true*, the upload works. I filed
>>> an issue (https://issues.sonatype.org/browse/AETHER-116) to make this
>>> setting configurable. However people suggest to discuss that if this is a
>>> correct behavior of the artifact repository.
>>>
>>> Any comments are welcome. Thanks.
>>>
>>> Michal
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> uberSVN's rich system and user administration capabilities and model
>>> configuration take the hassle out of deploying and managing Subversion
>>> and
>>> the tools developers use with it. Learn more about uberSVN and get a free
>>> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>>>
>>> _______________________________________________
>>> Artifactory-users mailing list
>>> [email protected]
>>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>>
>>>
>>
>>
>> ------------------------------------------------------------------------------
>> uberSVN's rich system and user administration capabilities and model
>> configuration take the hassle out of deploying and managing Subversion and
>> the tools developers use with it. Learn more about uberSVN and get a free
>> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>>
>> _______________________________________________
>> Artifactory-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>>
>>
>
>
> ------------------------------------------------------------------------------
> uberSVN's rich system and user administration capabilities and model
> configuration take the hassle out of deploying and managing Subversion and
> the tools developers use with it. Learn more about uberSVN and get a free
> download at:  http://p.sf.net/sfu/wandisco-dev2dev
>
> _______________________________________________
> Artifactory-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/artifactory-users
>
>
------------------------------------------------------------------------------
uberSVN's rich system and user administration capabilities and model 
configuration take the hassle out of deploying and managing Subversion and 
the tools developers use with it. Learn more about uberSVN and get a free 
download at:  http://p.sf.net/sfu/wandisco-dev2dev
_______________________________________________
Artifactory-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/artifactory-users

Reply via email to