<div dir="ltr"><div>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].</div><div><br></div><div>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. <br></div><div><br></div><div><br></div><div>[0] <a href="https://docs.pulpproject.org/en/3.0/nightly/restapi.html#tag/uploads">https://docs.pulpproject.org/en/3.0/nightly/restapi.html#tag/uploads</a></div><div>[1] <a href="https://docs.pulpproject.org/en/3.0/nightly/workflows/upload-publish.html#chunked-uploads">https://docs.pulpproject.org/en/3.0/nightly/workflows/upload-publish.html#chunked-uploads</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jun 26, 2019 at 10:38 AM Juan Cabrera <<a href="mailto:juan.cabrera@unamur.be">juan.cabrera@unamur.be</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  

    
  
  <div bgcolor="#FFFFFF">
    <p>Hi,</p>
    <p>I'm checking to upload a 5.4G rpm package. First I get a time
      out.</p>
    <pre class="gmail-m_5148919935829119076code gmail-m_5148919935829119076highlight" lang="plaintext"><span id="gmail-m_5148919935829119076LC1" class="gmail-m_5148919935829119076line" lang="plaintext">$ http --form -a admin:password POST <a class="gmail-m_5148919935829119076moz-txt-link-freetext" href="http://10.0.148.220:24817/pulp/api/v3/artifacts/" target="_blank">http://10.0.148.220:24817/pulp/api/v3/artifacts/</a> <a class="gmail-m_5148919935829119076moz-txt-link-abbreviated" href="mailto: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" target="_blank">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</a></span>
<span id="gmail-m_5148919935829119076LC2" class="gmail-m_5148919935829119076line" lang="plaintext"></span>
<span id="gmail-m_5148919935829119076LC3" class="gmail-m_5148919935829119076line" lang="plaintext">http: error: ConnectionError: ('Connection aborted.', timeout('timed out',)) while doing POST request to URL: <a class="gmail-m_5148919935829119076moz-txt-link-freetext" href="http://10.0.148.220:24817/pulp/api/v3/artifacts/" target="_blank">http://10.0.148.220:24817/pulp/api/v3/artifacts/</a></span>
</pre>
    <p>When I set a longer timeout, I give a server error.</p>
    <pre class="gmail-m_5148919935829119076code gmail-m_5148919935829119076highlight" lang="plaintext"><span id="gmail-m_5148919935829119076LC1" class="gmail-m_5148919935829119076line" lang="plaintext"> $ http --timeout=120 --form -a admin:password POST <a class="gmail-m_5148919935829119076moz-txt-link-freetext" href="http://10.0.148.220:24817/pulp/api/v3/artifacts/" target="_blank">http://10.0.148.220:24817/pulp/api/v3/artifacts/</a> <a class="gmail-m_5148919935829119076moz-txt-link-abbreviated" href="mailto: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" target="_blank">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</a> </span>
<span id="gmail-m_5148919935829119076LC2" class="gmail-m_5148919935829119076line" lang="plaintext"></span>
<span id="gmail-m_5148919935829119076LC3" class="gmail-m_5148919935829119076line" lang="plaintext">http: error: ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) while doing POST request to URL: <a class="gmail-m_5148919935829119076moz-txt-link-freetext" href="http://10.0.148.220:24817/pulp/api/v3/artifacts/" target="_blank">http://10.0.148.220:24817/pulp/api/v3/artifacts/</a></span>
</pre>
    <p>Is there a way to increase the timeout in the sever ?</p>
    <p>Regards</p>
    <p>Juan Cabrera<br>
    </p>
    <div class="gmail-m_5148919935829119076moz-signature">-- <br>
      <div style="font-family:Verdana,Helvetica,Arial,sans-serif;font-size:8pt;font-weight:normal;color:rgb(97,99,101)"> <img src="cid:16b945163fba383e8021" style="display: block; margin: 1em 0em;">
        <p style="margin:1em"> <span style="font-weight:bold">Juan
            CABRERA</span><br>
          <span style="color:rgb(105,190,40)">Correspondant informatique</span><br>
          <span>Département de Mathématiques</span> </p>
        <p style="margin:1em">
          <span style="font-weight:bold">T.</span> 081724919<br>
          <a style="color:rgb(105,190,40)" href="mailto:juan.cabrera@unamur.be" target="_blank">juan.cabrera@unamur.be</a><br>
          <a style="color:rgb(105,190,40)" href="http://staff.unamur.be/jbcabrer" target="_blank">http://staff.unamur.be/jbcabrer</a>
        </p>
        <p style="margin:1em"> <span style="font-weight:bold;font-size:8pt">Université de Namur ASBL</span><br>
          <span>Rue de Bruxelles 61 - 5000 Namur</span><br>
          <span>Belgique</span><br>
        </p>
        <p style="margin:1em;font-size:6pt;color:rgb(105,190,40)"> <span>Let’s
            respect the environment together.</span><br>
          <span style="font-weight:bold">Only print this message if
            necessary!</span><br>
        </p>
      </div>
    </div>
  </div>

_______________________________________________<br>
Pulp-list mailing list<br>
<a href="mailto:Pulp-list@redhat.com" target="_blank">Pulp-list@redhat.com</a><br>
<a href="https://www.redhat.com/mailman/listinfo/pulp-list" rel="noreferrer" target="_blank">https://www.redhat.com/mailman/listinfo/pulp-list</a></blockquote></div>