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

Error in H5Fopen(file): HDF5. File accessibilty. Unable to open file #972

Closed
brianpenghe opened this issue Aug 10, 2021 · 9 comments
Closed
Labels
bug Something isn't working

Comments

@brianpenghe
Copy link

I was trying to subset an ArchRProj but got these errors:

lung <- subsetArchRProject(
  ArchRProj = lung,
  cells = getCellNames(lung[lung$TSSEnrichment > 8]),
  dropCells = TRUE,
  logFile = NULL,
  threads = 1,
  force = TRUE
)
Copying ArchRProject to new outputDirectory : /mnt/210623/ArchRSubset

Copying Arrow Files...

.copyArrow : Initializing Out ArrowFile

.copyArrow : Adding Metadata to Out ArrowFile

Error in H5Fopen(file): HDF5. File accessibilty. Unable to open file.
Traceback:

Do you know why?

@brianpenghe brianpenghe added the bug Something isn't working label Aug 10, 2021
@brianpenghe
Copy link
Author

Currently I brutally subsetted the object by doing this:
lung <- lung[lung$TSSEnrichment > 8]
Not sure whether it will damage the object but will keep you posted.

@rcorces
Copy link
Collaborator

rcorces commented Aug 11, 2021

HDF5 errors are hard to trace. usually it is because the HDF5 file got corrupted. If this repeats in the future, you can re-open this issue by commenting below.

@rcorces rcorces closed this as completed Aug 11, 2021
@brianpenghe
Copy link
Author

Currently I brutally subsetted the object by doing this:
lung <- lung[lung$TSSEnrichment > 8]
Not sure whether it will damage the object but will keep you posted.

Based on your reply #390 (comment) I guess my workaround isn't elegant.

I also tried subsetting in the R terminal outside Jupyter notebook, which produced the same error. It seems to be an issue related to writing permission because when I used sudo R to start R program the error was gone.

Does it sound right? Just want to make sure I'm not creating a bigger problem for myself while fixing this.

Thanks

@rcorces
Copy link
Collaborator

rcorces commented Aug 13, 2021

It could be a file permissions issue. I'm not sure I've encountered that before but I dont think you would create problems by running under sudo. Still surprised you would need to do that but it could be something specific to your environment.

@j-andrews7
Copy link

This is relatively difficult to overcome in certain environments, e.g. RStudio-server instances where setting R to run with sudo permissions is a pain.

@rcorces
Copy link
Collaborator

rcorces commented Aug 23, 2021

I wish I knew the root cause of why this happens on certain environments. Any ideas / suggestions are welcome. I've never been able to reproduce this.

@j-andrews7
Copy link

For what it's worth, I was able to overcome this by setting subthreading = FALSE in my createArrowFiles call. Attached are two logs - the first of which failed, the latter of which completed successfully with subthreading = FALSE. Ultimately, I think it's a permissions issue with the temporary Arrow Files, but I don't know why the multithreading causes issues.

ArchR-createArrows-7dc63059af5d-Date-2021-08-23_Time-15-21-46.log

ArchR-createArrows-7dc6336cf3df-Date-2021-08-23_Time-15-33-07.log

@rcorces
Copy link
Collaborator

rcorces commented Aug 24, 2021

I had forgotten about an earlier instance of this issue from a previous report. For others who end up here, see #248 for a potential workaround.

@brianpenghe
Copy link
Author

For what it's worth, I was able to overcome this by setting subthreading = FALSE in my createArrowFiles call. Attached are two logs - the first of which failed, the latter of which completed successfully with subthreading = FALSE. Ultimately, I think it's a permissions issue with the temporary Arrow Files, but I don't know why the multithreading causes issues.

ArchR-createArrows-7dc63059af5d-Date-2021-08-23_Time-15-21-46.log

ArchR-createArrows-7dc6336cf3df-Date-2021-08-23_Time-15-33-07.log

I also realized that some errors can be avoided by not setting multithreaded parameters (aka using a single thread). Not sure whether why that is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants