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

Reply via email to