You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
S3 AIP storage methods expect the AIP location to be in currentlyProcessing/ingest/, so we get a "file not found" error when it's moved to completed. You can see the affected code in the verify_aip.py file, lines 229-232:
To fix this issue, you can add a check for the S3 enabled setting before moving the AIP to the completed directory. You can find an example of this in my updated verify_aip.py file, lines 229-234:
Here's an example of the arguments from the logs: ['a3m_store_aip', '5a68bbdb-f5a0-4eb3-bd58-4f9badefb12d', '/home/a3m/.local/share/a3m/share/currentlyProcessing/ingest/5a68bbdb-f5a0-4eb3-bd58-4e9badefb12d/transfer-5a68bbdb-f5a0-4eb3-bd58-4e9badefb12d.7z']
The text was updated successfully, but these errors were encountered:
Thanks, @camlyall. If we do this, would the AIP be left in currentlyProcessing?
I was wondering if the right thing to do would be for verify_aip to update the database with the new physical location of the AIP, i.e.:
verify_aip moves to completed,
[CHANGE] verify_aip updates the database with the new path, and
a3m_store_aip receives the proper path.
I haven't tried it but if I remember correctly the database keeps paths relative to the shared directory so it should be possible, not entirely sure though!
Yes I think that is the way to go.
We have modified our usage of the package and are no longer utilizing the s3 functionality. Therefore, development from our end in respect to this is halted currently
S3 AIP storage methods expect the AIP location to be in currentlyProcessing/ingest/, so we get a "file not found" error when it's moved to completed. You can see the affected code in the verify_aip.py file, lines 229-232:
a3m/a3m/client/clientScripts/verify_aip.py
Lines 228 to 233 in 72c552c
You can also check out the S3 storage methods in the a3m_store_aip.py file: https://github.com/artefactual-labs/a3m/blob/main/a3m/client/clientScripts/a3m_store_aip.py
To fix this issue, you can add a check for the S3 enabled setting before moving the AIP to the completed directory. You can find an example of this in my updated verify_aip.py file, lines 229-234:
a3m/a3m/client/clientScripts/verify_aip.py
Lines 228 to 235 in 7911c20
Here's an example of the arguments from the logs:
['a3m_store_aip', '5a68bbdb-f5a0-4eb3-bd58-4f9badefb12d', '/home/a3m/.local/share/a3m/share/currentlyProcessing/ingest/5a68bbdb-f5a0-4eb3-bd58-4e9badefb12d/transfer-5a68bbdb-f5a0-4eb3-bd58-4e9badefb12d.7z']
The text was updated successfully, but these errors were encountered: