[Pulp-list] timeout when uploading creating artifact in Pulp3

Dennis Kliban dkliban at redhat.com
Wed Jun 26 15:07:53 UTC 2019


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 <juan.cabrera at unamur.be>
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
> juan.cabrera at unamur.be
> 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
> Pulp-list at redhat.com
> https://www.redhat.com/mailman/listinfo/pulp-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20190626/10e5f92d/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdceafbkcaajjkmc.png
Type: image/png
Size: 9356 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/pulp-list/attachments/20190626/10e5f92d/attachment.png>


More information about the Pulp-list mailing list