Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cache of compressed files got deleted, DCOR-Aid cannot upload data and "retry" doesn't help #68

Open
B-Hartmann opened this issue Dec 5, 2022 · 3 comments
Labels
bug Something isn't working good first issue Good for newcomers

Comments

@B-Hartmann
Copy link

Windows 10
DCOR-Aid 0.11.13

I loaded 55 task files into DCOR-Aid for uploading, it started compressing and uploading files as expected. But then, suddenly, some compressed files got deleted (I didn't do it myself) and that caused DCOR-Aid to present the error messages shown below for all those datasets with missing compressed files. This might be related to the fact that my free disk space run out, because the compression was faster than the upload itself and I only had like 200 GB free space left..

Clicking the retry button doesn't help, because that doesn't start the compression again. I suspect that the current state of the upload job is saved and once it's in "transfer" and the compressed file is not there, it cannot go back to "compress" again.

So I would propose that in case a compressed file is missing, it just tries to compresses the data again and uploads it (as long as the access to the original file is still there and there is enough disk space available, of course).

Error message:

Traceback (most recent call last):
  File "dcoraid\worker\daemon.py", line 45, in run
    task()
  File "dcoraid\upload\job.py", line 317, in task_compress_resources
    with IntegrityChecker(path) as ic:
  File "dclab\rtdc_dataset\check.py", line 195, in __init__
  File "dclab\rtdc_dataset\load.py", line 22, in load_file
  File "dclab\rtdc_dataset\fmt_hdf5.py", line 280, in __init__
  File "h5py\_hl\files.py", line 533, in __init__
  File "h5py\_hl\files.py", line 226, in make_fid
  File "h5py\_objects.pyx", line 54, in h5py._objects.with_phil.wrapper
  File "h5py\_objects.pyx", line 55, in h5py._objects.with_phil.wrapper
  File "h5py\h5f.pyx", line 106, in h5py.h5f.open
FileNotFoundError: [Errno 2] Unable to open file (unable to open file: name = 'C:\Users\bhartma\AppData\Local\DCOR\dcoraid\cache\compress-d7beaaeb-0df4-4e60-a060-60e8b8c68e94\0\M001_data.rtdc', errno = 2, error message = 'No such file or directory', flags = 0, o_flags = 0)
@B-Hartmann
Copy link
Author

I should add that the Windows settings to automatically free up space by deleting temporary files is deactivated and that a restart of DCOR-Aid helped and it started compressing the files again.

@paulmueller paulmueller added the bug Something isn't working label Dec 5, 2022
@paulmueller
Copy link
Member

Thanks!. As restarting DCOR-Aid resolves the issue (the fail-safe is working), I am treating this as a minor bug.

@paulmueller
Copy link
Member

There is already some logic that checks the data integrity. I assume there is only a check at the end of the compression missing that makes sure the file got created.

@paulmueller paulmueller added the good first issue Good for newcomers label Dec 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants