Note that there are some explanatory texts on larger screens.

plurals
  1. POSdk Glacier php timeout
    primarykey
    data
    text
    <p>after playing a bit an uploading some small test files I wanted to upload a bigger file, around 200 MB but I always get the timeout exception, then I tried to upload a 30 MB file and the same happens. I think the timeout is 30 seconds, it is possible to tell the glacier client to wait until the upload is done?</p> <p>This is the code I use:</p> <pre><code>$glacier-&gt;uploadArchive(array( 'vaultName' =&gt; $vaultName, 'archiveDescription' =&gt; $desc 'body' =&gt; $body )); </code></pre> <p>I have tested with other files and the same happens, then I tried with a small file of 4MB and the operation was successful, I thought that dividing the files and uploading them one by one, bu then again around the third one a timeout exception comes out.</p> <p>I also tried the multiupload with the following code </p> <pre><code>$glacier = GlacierClient::factory(array( 'key' =&gt; 'key', 'secret' =&gt; 'secret', 'region' =&gt; Region::US_WEST_2 )); $multiupload = $glacier-&gt;initiateMultipartUpload(array( 'vaultName' =&gt; 'vaultName', 'partSize' =&gt; '4194304' )); // An array for the suffixes of the tar file foreach($suffixes as $suffix){ $contents = file_get_contents('file.tar.gz'.$suffix); $glacier-&gt;uploadMultipartPart(array( 'vaultName' =&gt; 'vaultName', 'uploadId' =&gt; $multiupload-&gt;get('uploadId'), 'body' =&gt; $contents )); } $result=$glacier-&gt;completeMultipartUpload(array( 'vaultName' =&gt; 'vaultName', 'uploadId' =&gt; $multiupload-&gt;get('uploadId'), )); echo $result-&gt;get('archiveId'); </code></pre> <p>It misses the parameter Range, I don't think I fully understand how this multi part upload works, but I think I will have the same timeout exception. So my question is as I said before. It is possible to tell the glacier client to wait until the upload is done?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload