<div dir="ltr"><div>Thanks for your reply.</div><div>I have 4GB RAM and 4GB of swap on the box</div><div><br></div><div>Davide<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno ven 18 gen 2019 alle ore 13:40 Jules Field via ZendTo <<a href="mailto:zendto@zend.to">zendto@zend.to</a>> ha scritto:<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">
Davide,<br>
<br>
How much RAM has your ZendTo box got?<br>
The crypto library does require quite a bit of RAM, so if you only
have 1 GB then I would at least add some more swap space. Obviously
adding more RAM would be better (2GB or 4GB should be plenty), but
possibly more costly.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<div class="gmail-m_252468794630859475moz-cite-prefix">On 18/01/2019 11:04, davide.mosca8 via
ZendTo wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">
<div dir="ltr">
<div>Hi and first of all thanks for this amazing free and open
source project.</div>
<div><br>
</div>
<div>I have a problem which I wrote about in the subject.</div>
<div><br>
</div>
<div>When trying to download a medium size (291MB) encrypted
file in a dropoff I encounter a fatal error which breaks the
rendering of the web page as usual.</div>
<div>From php logs what I see is this:</div>
<div><br>
</div>
<div><b>PHP Fatal error: Uncaught SodiumException: ops limit
must be greater than 0 in
/opt/zendto/lib/NSSDropoff.php:612<br>
Stack trace:<br>
#0 /opt/zendto/lib/NSSDropoff.php(612):
sodium_crypto_pwhash()<br>
#1 /opt/zendto/lib/NSSDropoff.php(944):
NSSDropoff->downloadEncrypted()<br>
#2 /opt/zendto/www/download.php(109):
NSSDropoff->downloadFile()<br>
#3 {main}<br>
thrown in /opt/zendto/lib/NSSDropoff.php on line 612</b></div>
<div><b><br>
</b></div>
<div>I have searched about this error and what I understood is
that has to do with the number of operations needed to
compute the encryption/decryption process.</div>
<div><br>
</div>
<div>I tried to change the encryption and checksums params
(disabling checksum, make mandatory encryption, leverage the
size of dropoffs to have encryption computed) in the config
file but with no result.</div>
<div><br>
</div>
<div>when I try with small size dropoffs (max 25MB) the same
procedure I don't encounter the problem.</div>
<div><br>
</div>
<div>What could it be?</div>
<div><br>
</div>
<div>Davide<br>
</div>
</div>
</div>
<br>
<fieldset class="gmail-m_252468794630859475mimeAttachmentHeader"></fieldset>
<pre class="gmail-m_252468794630859475moz-quote-pre">_______________________________________________
ZendTo mailing list
<a class="gmail-m_252468794630859475moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a>
<a class="gmail-m_252468794630859475moz-txt-link-freetext" href="http://jul.es/mailman/listinfo/zendto" target="_blank">http://jul.es/mailman/listinfo/zendto</a>
</pre>
</blockquote>
<br>
<pre class="gmail-m_252468794630859475moz-signature" cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'Think globally, act locally.' - Friends of the Earth
<a class="gmail-m_252468794630859475moz-txt-link-abbreviated" href="http://www.Zend.To" target="_blank">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</div>
_______________________________________________<br>
ZendTo mailing list<br>
<a href="mailto:ZendTo@zend.to" target="_blank">ZendTo@zend.to</a><br>
<a href="http://jul.es/mailman/listinfo/zendto" rel="noreferrer" target="_blank">http://jul.es/mailman/listinfo/zendto</a><br>
</blockquote></div>