If you see the following error when trying to perform an execution in Domino:
ERROR: Replicator client exception: status: 500 body: Unknown error caused by:
java.lang.IllegalStateException: Blob transfer (download) failed because 1 operations failed:
Download blob 9c0a1d08929c9acd7be85db4a946b4047fac4722 ->
domino.common.sync.HashMismatchException: Actual hash
Sha1(da39a3ee5e6b4b0d3255bfef34781890afd80709) does not match expected hash
Sha1(9c0a1d08929c9acd7be85db4a946b4047fac4722)
it means that simultaneous operations occurred in Domino causing an identity mismatch in the filesystem. To resolve this error you will need to:
1) Identify the blob(s) that are mismatched. You can do this in Python 3 using the following code:
import requests
headers = {
'X-Domino-Api-Key': '{domino_api_key}'
}
url = 'https://{domino-domain}/v1/projects/{username}/{project_name}/files/{commit_id}//'
response = requests.get(url, headers=headers)
for key in response.json()['data']:
if key['key'] == '{expected_hash_from_error}':
print(key['path'])
Notes:
- {domino_api_key} can be found in your Account Settings > API Key
- {commit_id} can be found by navigating to the Files section of your project and select the most recent commit from the dropdown, the URL will contain the commit ID (e.g. https://domino.tech/u/jaclyn_patterson/quick-start/browse//?commitId=6afd9745c2a0ffa49e3ac0e6284c17ae56cb7a93
- This code may not work in Domino depending on your deployment's networking setup. If this code times out, try to execute it on your local machine.
2) Make a small edit or delete and re-add the file(s) identified from step one.
If you have further questions, please contact Domino Support at support@dominodatalab.com.
Comments
0 comments
Please sign in to leave a comment.