Dcm4chee autodelete on temporary storage

49 views
Skip to first unread message

Amms

unread,
Jun 8, 2025, 8:12:27 PMJun 8
to dcm4che

Hi everyone.

We had a dcm4chee-arc-light-5.26.0 server where studies should be purged after 1 day from a temporary storage say id=tmp1. 

We can set this on the "Storage Descriptor" with "Delete Studies Received Before" and set the storage as temporary.

If we don't set anything else, like "Deleter Threshold", does the studies purges from temporary storage?

Thanks in Advance.

Amms

unread,
Jun 8, 2025, 8:23:19 PMJun 8
to dcm4che
Is this configuration correct?
tmpStorage.PNG

Amms

unread,
Jun 9, 2025, 12:43:12 AMJun 9
to dcm4che
Is there anything else what need to be configured?

kirill zemskoff

unread,
Jun 9, 2025, 6:44:51 AMJun 9
to dcm4che
No more settings are needed, but I would set No Deletion Constraint to True.

понедельник, 9 июня 2025 г. в 07:43:12 UTC+3, Amms:

Alieksandr Kuznietsov

unread,
Jun 9, 2025, 9:26:23 AMJun 9
to dcm4che
In fact, the auto-delete function does not work for me now in version 33.1. And this does not depend on the No Deletion Constraint parameter. The log shows a message that the study does not contain objects in the repository. If this study is deleted manually, then the studies will start to be deleted until a similar error is detected again. At this point, everything will stop again. And then these messages will be repeated and the studies will not be deleted. Here are the log fragments that describe this situation:

2025-06-09 16:03:31,089 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedScheduledExecutorService-default-Thread-2) start PurgeStorageScheduler.execute()
2025-06-09 16:03:31,090 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedScheduledExecutorService-default-Thread-2) finished PurgeStorageScheduler.execute()
2025-06-09 16:03:31,090 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-111) Start deletion on Storage[id=fs1, uri=file:///mnt/storage/]
2025-06-09 16:03:31,132 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-111) Update Storage IDs of Study[pk=2, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.20676.129835] from [fs1] to null
2025-06-09 16:03:31,141 WARN  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-111) Study[pk=2, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.20676.129835] does not contain objects at Storage[fs1]
2025-06-09 16:03:31,142 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-111) Finished deletion on Storage[id=fs1, uri=file:///mnt/storage/]
........
2025-06-09 16:08:43,445 INFO  [org.dcm4chee.arc.iocm.rs.StudyMgtRS] (default task-4) Process DELETE /dcm4chee-arc/aets/XRAYPACS/rs/studies/1.3.6.1.4.1.19179.1.1282713212164143.1.20676.129835?retainObj=true from nu...@192.168.122.157
2025-06-09 16:08:43,464 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceImpl] (default task-4) Start deleting Study[pk=2, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.20676.129835, id=240349] from database
2025-06-09 16:08:43,778 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceImpl] (default task-4) Successfully delete 1 instances of Study[pk=2, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.20676.129835, id=240349] without locations from database
2025-06-09 16:08:43,783 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceImpl] (default task-4) Successfully delete Study[pk=2, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.20676.129835, id=240349] from database
2025-06-09 16:08:47,287 INFO  [org.dcm4chee.arc.qido.QidoRS] (default task-4) Process GET /dcm4chee-arc/aets/XRAYPACS/rs/studies?limit=21&includefield=all&offset=0&orderby=-StudyDate,-StudyTime&StudyInstanceUID=1.3.6.1.4.1.19179.1.1282713212164143.1.20676.129835 from nu...@192.168.122.157
.............
2025-06-09 16:13:31,090 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-148) Start deletion on Storage[id=fs1, uri=file:///mnt/storage/]
2025-06-09 16:13:31,140 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=3, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.6769.129872] from [fs1] to null
2025-06-09 16:13:31,285 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-148) Successfully marked objects of Study[pk=3, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.6769.129872] at Storage[id=fs1, uri=file:///mnt/storage/] for deletion
2025-06-09 16:13:31,286 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=4, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.14061.129878] from [fs1] to null
2025-06-09 16:13:31,325 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-148) Successfully marked objects of Study[pk=4, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.14061.129878] at Storage[id=fs1, uri=file:///mnt/storage/] for deletion
2025-06-09 16:13:31,327 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=5, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.17686.129881] from [fs1] to null
2025-06-09 16:13:31,435 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-148) Successfully marked objects of Study[pk=5, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.17686.129881] at Storage[id=fs1, uri=file:///mnt/storage/] for deletion
2025-06-09 16:13:31,440 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=6, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.8310.129875] from [fs1] to null
2025-06-09 16:13:31,485 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-148) Successfully marked objects of Study[pk=6, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.8310.129875] at Storage[id=fs1, uri=file:///mnt/storage/] for deletion
2025-06-09 16:13:31,489 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=7, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.21134.129884] from [fs1] to null
2025-06-09 16:13:31,535 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-148) Successfully marked objects of Study[pk=7, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.21134.129884] at Storage[id=fs1, uri=file:///mnt/storage/] for deletion
2025-06-09 16:13:31,537 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=8, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.25373.129887] from [fs1] to null
2025-06-09 16:13:31,568 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-148) Successfully marked objects of Study[pk=8, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.25373.129887] at Storage[id=fs1, uri=file:///mnt/storage/] for deletion
2025-06-09 16:13:31,575 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-148) Start deleting 6 objects from Storage[id=fs1, uri=file:///mnt/storage/]
2025-06-09 16:13:31,985 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-148) Finished deleting 6 (skipped=0, failed=0) objects from Storage[id=fs1, uri=file:///mnt/storage/]
2025-06-09 16:13:32,009 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=3, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.6769.129872] from [fs1] to null
2025-06-09 16:13:32,014 WARN  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Study[pk=3, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.6769.129872] does not contain objects at Storage[fs1]
2025-06-09 16:13:32,017 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=4, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.14061.129878] from [fs1] to null
2025-06-09 16:13:32,021 WARN  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Study[pk=4, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.14061.129878] does not contain objects at Storage[fs1]
2025-06-09 16:13:32,023 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=5, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.17686.129881] from [fs1] to null
2025-06-09 16:13:32,026 WARN  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Study[pk=5, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.17686.129881] does not contain objects at Storage[fs1]
2025-06-09 16:13:32,029 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=6, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.8310.129875] from [fs1] to null
2025-06-09 16:13:32,032 WARN  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Study[pk=6, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.8310.129875] does not contain objects at Storage[fs1]
2025-06-09 16:13:32,035 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=7, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.21134.129884] from [fs1] to null
2025-06-09 16:13:32,037 WARN  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Study[pk=7, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.21134.129884] does not contain objects at Storage[fs1]
2025-06-09 16:13:32,040 INFO  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Update Storage IDs of Study[pk=8, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.25373.129887] from [fs1] to null
2025-06-09 16:13:32,043 WARN  [org.dcm4chee.arc.delete.impl.DeletionServiceEJB] (EE-ManagedExecutorService-default-Thread-148) Study[pk=8, uid=1.3.6.1.4.1.19179.1.1282713212164143.1.25373.129887] does not contain objects at Storage[fs1]
2025-06-09 16:13:32,043 INFO  [org.dcm4chee.arc.delete.impl.PurgeStorageScheduler] (EE-ManagedExecutorService-default-Thread-148) Finished deletion on Storage[id=fs1, uri=file:///mnt/storage/]
понедельник, 9 июня 2025 г. в 13:44:51 UTC+3, kirill zemskoff:
Reply all
Reply to author
Forward
0 new messages