I would break up the file into chunks and upload it as multiple requests
with the uploads API[0]. The full example of how to do this can be found at
the bottom of this page[1].

Please note that the Uploads API is going to change very soon (most likely
later today). It will be slightly different in the next RC.


[0] https://docs.pulpproject.org/en/3.0/nightly/restapi.html#tag/uploads
[1]
https://docs.pulpproject.org/en/3.0/nightly/workflows/upload-publish.html#chunked-uploads

On Wed, Jun 26, 2019 at 10:38 AM Juan Cabrera <[email protected]>
wrote:

> Hi,
>
> I'm checking to upload a 5.4G rpm package. First I get a time out.
>
> $ http --form -a admin:password POST 
> http://10.0.148.220:24817/pulp/api/v3/artifacts/ 
> file@/home/jcabrera/mnt/pkg//RedHat-7_6_45_7_None/easybuild/sticky/Schrodinger-2018-1_Linux-x86_64-eb_3.5.1-1.x86_64.rpmhttp:
>  error: ConnectionError: ('Connection aborted.', timeout('timed out',)) while 
> doing POST request to URL: http://10.0.148.220:24817/pulp/api/v3/artifacts/
>
> When I set a longer timeout, I give a server error.
>
>  $ http --timeout=120 --form -a admin:password POST 
> http://10.0.148.220:24817/pulp/api/v3/artifacts/ 
> file@/home/jcabrera/mnt/pkg/RedHat-7_6_45_7_None/easybuild/sticky/Schrodinger-2018-1_Linux-x86_64-eb_3.5.1-1.x86_64.rpm
>  http: error: ConnectionError: ('Connection aborted.', 
> ConnectionResetError(104, 'Connection reset by peer')) while doing POST 
> request to URL: http://10.0.148.220:24817/pulp/api/v3/artifacts/
>
> Is there a way to increase the timeout in the sever ?
>
> Regards
>
> Juan Cabrera
> --
>
> Juan CABRERA
> Correspondant informatique
> Département de Mathématiques
>
> T. 081724919
> [email protected]
> http://staff.unamur.be/jbcabrer
>
> Université de Namur ASBL
> Rue de Bruxelles 61 - 5000 Namur
> Belgique
>
> Let’s respect the environment together.
> Only print this message if necessary!
> _______________________________________________
> Pulp-list mailing list
> [email protected]
> https://www.redhat.com/mailman/listinfo/pulp-list
_______________________________________________
Pulp-list mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/pulp-list

Reply via email to