archivematica / Issues

Issues repository for the Archivematica project
GNU Affero General Public License v3.0
16 stars 1 forks source link

Problem: DIP status not updating after deletion from the Storage Service #1584

Open shij13 opened 1 year ago

shij13 commented 1 year ago

Expected behaviour In storage service, after “Delete” action is confirmed for a DIP:

In backend storage, the file is deleted.

Current behaviour In storage service, after “Delete” action is confirmed for a DIP:

Selecting Delete opens confirmation pop-up. Confirming deletion results in an error: “Package deletion failed. Please contact an administrator or see logs for details.” image

Log indicates the file is deleted from storage: INFO2022-11-23 08:55:21 locations.models.s3:s3:delete_path:193: S3 path to delete [package location] begins with /; removing from path prior to deletion WARNING 2022-11-23 08:55:21 locations.models.s3:s3:delete_path:206: No packages found in S3 at: [package location] ERROR 2022-11-23 08:55:21 locations.views:views:package_delete:235: Package deletion failed: No packages found in S3 at: [package location]

This behavior has been observed for three DIPs so far, each in a different production instance. For one package, the status and Actions column successfully updated after restarting the instance, but we'd like to debug further to prevent this issue in the future and avoid having to restart instances each time it occurs (if it occurs again).

Steps to reproduce This issue has appeared inconsistently for packages in production, and we have not been able to reproduce it in a dev instance yet. The following steps have been attempted to reproduce the issue in dev. Once an AIP and DIP are created:

Update will be posted if the issue is successfully reproduced or the conditions for creating the issue are more concretely determined.

Your environment (version of Archivematica, operating system, other relevant details) CentOS 7, AM 1.13.x, SS 0.19.x


For Artefactual use:

Before you close this issue, you must check off the following:

sromkey commented 6 months ago

Hi @shij13 , we're just going through some older issues. Is this something that continued to be an issue for you? We did some documentation recently on s3 permissions and are curious if perhaps this was happening specifically in s3 DIP storage spaces. Let us know if you have any intel or feedback, thanks!

shij13 commented 5 months ago

@sromkey apologies for the delayed reply! This issue doesn't occur consistently. It's been noted a handful more times since reporting the issue.