<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" 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="moz-cite-prefix">On 18/01/2019 11:04, davide.mosca8 via
ZendTo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:WM!64bf4878b6a218e23caaa1fa062200cb0a99dc3099ad7f0373314410d7e7322c642ac20589391c2dddf98369eb9364ed!@mx.jul.es">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
ZendTo mailing list
<a class="moz-txt-link-abbreviated" href="mailto:ZendTo@zend.to">ZendTo@zend.to</a>
<a class="moz-txt-link-freetext" href="http://jul.es/mailman/listinfo/zendto">http://jul.es/mailman/listinfo/zendto</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">Jules
--
Julian Field MEng CEng CITP MBCS MIEEE MACM
'Think globally, act locally.' - Friends of the Earth
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</body>
</html>