datashare icon indicating copy to clipboard operation
datashare copied to clipboard

Server/Task_worker mode: Batch download file not found

Open fl02 opened this issue 6 months ago • 0 comments

Describe the bug Setting the --batchDownloadDir switch to another directory seems to have no effect: DS still tries to fetch a batch download file from /home/datashare/.local/share/datashare/tmpwhich does not exist. Consequently the batch download stalls.

To Reproduce Steps to reproduce the behavior:

  1. Spin up DS 20.0.10 containers in server/task-worker mode
  2. Create a batch download
  3. Observe logs of DS task container, find following info/error:

INFO TaskWorkerLoop - running task org.icij.datashare.tasks.BatchDownloadRunner@a1879782-5a81-4c7c-b095-c85255744e40 INFO BatchDownloadRunner - running batch download for user cranky_euler on project [Project{name='test2'}] with 60000ms scroll with throttle 500ms and scroll size of 1000 INFO BatchDownloadRunner - creating zip file with max input files size of 104857600 bytes ERROR TaskWorkerLoop - fatal error in handle(task) org.icij.datashare.asynctasks.NackException: java.io.FileNotFoundException: /home/datashare/.local/share/datashare/tmp/archive_cranky_euler_2025-06-24T16_29_43.869Z[GMT].zip (No such file or directory) Caused by: java.io.FileNotFoundException: /home/datashare/.local/share/datashare/tmp/archive_cranky_euler_2025-06-24T16_29_43.869Z[GMT].zip (No such file or directory)

Expected behavior The --batchDownloadDir switch assigns the given directory, the batch download starts and the requested documents can be downloaded.

Additional context I have mounted a batch download directory under /home/datashare with the --batchDownloadDir switch, the directory is writable to the DS process which I tested from within the container.

Thanks!

fl02 avatar Jun 24 '25 16:06 fl02