<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
In which case it appears to be either reading the number 0 from the
file (that value should be 4), or it's failing to read the file
despite having successfully opened it.<br>
<br>
Compared to the number of bytes in the actual file you uploaded, the
encrypted version of the file should be slightly longer than the
original.<br>
<br>
Please can you look in /var/zendto/dropoffs/<the-ClaimID> to
see how big the files are and check they correspond to the
unencrypted files + a bit.<br>
<br>
If that looks okay, then once you've found the relevant file in the
relevant drop-off directory, please do<br>
<tt>od -c the-file-here | head -20</tt><br>
and send me the output (it won't give anything secret away, don't
worry).<br>
<br>
Then I can check if the encrypted file header looks vaguely right or
not.<br>
<br>
Cheers,<br>
Jules.<br>
<br>
<div class="moz-cite-prefix">On 18/01/2019 12:50, davide.mosca8 via
ZendTo wrote:<br>
</div>
<blockquote type="cite"
cite="mid:WM!742dd4a4c1d378fdbc74db542aad98edd6754f06fa751e3a29c189d5649b2f04a3bde4b35e8e939f32cce71d0f667a52!@mx.jul.es">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<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" moz-do-not-send="true">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" moz-do-not-send="true">ZendTo@zend.to</a>
<a class="gmail-m_252468794630859475moz-txt-link-freetext" href="http://jul.es/mailman/listinfo/zendto" target="_blank" moz-do-not-send="true">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" moz-do-not-send="true">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</div>
_______________________________________________<br>
ZendTo mailing list<br>
<a href="mailto:ZendTo@zend.to" target="_blank"
moz-do-not-send="true">ZendTo@zend.to</a><br>
<a href="http://jul.es/mailman/listinfo/zendto"
rel="noreferrer" target="_blank" moz-do-not-send="true">http://jul.es/mailman/listinfo/zendto</a><br>
</blockquote>
</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
'Gaze not into the abyss, lest you become recognised as an abyss
domain expert, and they expect you to keep gazing into the damn thing.'
- @nickm_tor
<a class="moz-txt-link-abbreviated" href="http://www.Zend.To">www.Zend.To</a>
Twitter: @JulesFM
</pre>
</body>
</html>