<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body>
<p><font size="4">Hi Tomasz,</font></p>
<p><font size="4"><br>
</font></p>
<p><font size="4">I thought you should be able to do that with
epadmin</font></p>
<p><font size="4"><br>
</font></p>
<p><font size="4">/opt/eprints/bin/epadmin rehash <ARCHIVEID>
<DOCID></font></p>
<p><font size="4"><br>
</font></p>
<p><font size="4">But this does something interesting but not
particularly useful to your predicament. I don't think there is
any programmatic way to regenerated the hash for a file at the
moment. <br>
</font></p>
<p><font size="4"><br>
</font></p>
<p><font size="4">I can see you have generated a GitHub issue for
this: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Feprints%2Feprints3.4%2Fissues%2F201&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf14ac570b2f047db04da08da008a1cb6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637822890440341997%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=jShtHoepL9bUr8RWB4Yo8DmgzEsVHN0ln4jFbzoDu%2FI%3D&reserved=0" originalSrc="https://github.com/eprints/eprints3.4/issues/201" shash="owy9vM5gyvvdC7T2kzULLb4OduJuxoX4btjS4nD6V9Z2fl/n3voH7AKCq14ACO9waHvCfhttwud9jv9jodL6/fDbGccFHjHX426+cR8pe9l4mDVj/ZD4/LGfws4ucLAqsFuNbTSDQFJ/zUqP+bvlYtXrLnv2lpKWamAsqdOGPQA=">https://github.com/eprints/eprints3.4/issues/201</a></font></p>
<p><font size="4"><br>
</font></p>
<p><font size="4">I think this should be an epadmin command line
option:</font></p>
<p><font size="4"><br>
</font></p>
<p><font size="4">/opt/eprints3/bin/epadmin redo_hashes </font><font size="4"><font size="4"><font size="4"><archiveid> </font></font>file
<fileid1> <fileid2> ... - Regenerate hashes for all
the file ID listed using the current hash type specified or
default to md5 (maybe have a flag for the hash type)</font></p>
<p><font size="4"> </font><br>
<font size="4"><font size="4">/opt/eprints3/bin/epadmin
redo_hashes <archiveid> document <docid> -
Regenerate hashes for all the files associated with the
document with docid. (Allow multiple docids to be specified).</font></font></p>
<p><br>
<font size="4"><font size="4"><font size="4"><font size="4">/opt/eprints3/bin/epadmin
redo_hashes <archiveid> eprint <eprintid> -
Regenerate hashes for all the files associated with all
documents associated with eprint with eprintid. (Allow
multiple eprintids to be specified).</font></font></font></font></p>
<p><font size="4"><font size="4"><font size="4"><font size="4"><br>
</font></font></font></font></p>
<p><font size="4"><font size="4"><font size="4"><font size="4">This
is a bit like the redo_mime_type epadmin option but update
the hash (and potentially hash_type) rather than the
mime_type.</font></font></font></font></p>
<p><font size="4"><font size="4"><font size="4"><font size="4"><br>
</font></font></font></font></p>
<p><font size="4"><font size="4"><font size="4"><font size="4">I
have updated the GitHub issue to reflect this proposal.</font></font></font></font></p>
<p><font size="4"><font size="4"><font size="4"><font size="4"><br>
</font></font></font></font></p>
<p><font size="4"><font size="4"><font size="4"><font size="4">Regards<br>
</font></font></font></font></p>
<p><font size="4"><font size="4"><font size="4"><font size="4"><br>
</font></font></font></font></p>
<p><font size="4"><font size="4"><font size="4"><font size="4">David
Newman<br>
</font></font></font></font></p>
<p><font size="4"><font size="4"><br>
</font></font></p>
<div class="moz-cite-prefix">On 07/03/2022 4:55 pm, Tomasz
Neugebauer via Eprints-tech wrote:<br>
</div>
<blockquote type="cite" cite="mid:YQXPR01MB24071905B5B9F3C029D590E58B089@YQXPR01MB2407.CANPRD01.PROD.OUTLOOK.COM">
<style type="text/css" style="display:none;">P {margin-top:0;margin-bottom:0;}</style>
<div style="padding-bottom: 10px; padding-top: 5px;">
<div style="padding:12px; border:1px solid #8D3970;
background-color:#F7F9FA; color:#8D3970; font-size:14px;
line-height:22px; font-family: Calibri, Arial, Helvetica,
sans-serif;">
<strong>CAUTION:</strong> This e-mail originated outside the
University of Southampton.
</div>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Hi everyone,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
I got an unusual issue in that during export to archivematica,
one deposit (out of thousands processed so far without this
issue) has an incorrect checksum value stored for the
indexcodes.txt file.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
How can I get EPrints to re-assign/re-evaluate the
indexcodes.txt checksum value?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
I tried running epadmin reindex on the eprint, and a new
indexcodes.txt file was generated, but the checksum value for
it seems not to be updated.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Would "epadmin rehash" on the document do the trick?</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
Tomasz</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif;
font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div>
<div style="font-family: Calibri, Arial, Helvetica,
sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
PS. Also, I have the impression that I'm no longer seeing
messages from this list in my inbox, anyone else
experiencing issues with that?</div>
<div id="Signature">
<div>
<div name="divtagdefaultwrapper" style="font-family:Calibri,Arial,Helvetica,sans-serif;
font-size:; margin:0">
</div>
</div>
</div>
</div>
</div>
<br>
<fieldset class="moz-mime-attachment-header"></fieldset>
<pre class="moz-quote-pre" wrap="">*** Options: <a class="moz-txt-link-freetext" href="http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech">http://mailman.ecs.soton.ac.uk/mailman/listinfo/eprints-tech</a>
*** Archive: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwww.eprints.org%2Ftech.php%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf14ac570b2f047db04da08da008a1cb6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637822890440341997%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=PpAdnqzGrJm6WdtkffOaV2f0%2BM2fgRy4%2BGEog2x31f8%3D&reserved=0" originalSrc="http://www.eprints.org/tech.php/" shash="Xop/5IsQh1TX5zl1RhuILa+b98qgxVx5Fq/RBjyBszL+VPKXDfh48NP+HkKnoA7VwXqbYSgkw+8YUSskxFD4SVFHoJCnZ4S5VSUJnIkCZTGaL3rqpGHo6wq0NQW1qsaS2vvY+ecVZCJMfwFgjf0KUtpiGRRH4imp2+482Exe/pg=">http://www.eprints.org/tech.php/</a>
*** EPrints community wiki: <a class="moz-txt-link-freetext" href="https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fwiki.eprints.org%2F&data=04%7C01%7Ceprints-tech%40ecs.soton.ac.uk%7Cf14ac570b2f047db04da08da008a1cb6%7C4a5378f929f44d3ebe89669d03ada9d8%7C0%7C0%7C637822890440341997%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000&sdata=I2CatTy0i4kIy00gTkZ38V6IWHHeI%2BglTOUay5lpryU%3D&reserved=0" originalSrc="http://wiki.eprints.org/" shash="I5TuPkRNW9aDYRjoyhZfpyqbdg8vSNEK1G2g5JhhWJZW18ehT7Ew/LAf4devkCHTh4KT9n28uTWHkcQuEP/31yJ17W4hzDrSm2ioX1dEY0wFnHfxd7W+Rw3Pyo3jhg8ExPzYfSHXARYZBZV3QjfCte020ZqAuKvUD6Zoadenes4=">http://wiki.eprints.org/</a></pre>
</blockquote>
</body>
</html>