mikolmogorov/Flye

Samtools Library Issues

schmigle opened this issue · 1 comments

I've installed Flye in an environment in a Singularity container, and I run it as part of a larger pipeline. Usually it runs fine, but ~10% of the time, I see a series of errors like this:
flye-samtools: error while loading shared libraries: libpthread.so.0: cannot open shared object file: Error 24
slurm-9725562.out:7053:flye-samtools: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24

Sometimes it will have other library issues or will be related to a /bin/sh file:
/bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24
/bin/sh: error while loading shared libraries: libc.so.6: cannot open shared object file: Error 24

flye-samtools: error while loading shared libraries: libz.so.1: cannot open shared object file: Error 24
flye-samtools: error while loading shared libraries: libdl.so.2: cannot open shared object file: Error 24

When these errors happen, it causes ~20 instances of the following error:
Too many open files: /bin/sh

There are some samtools suggestions online having to do with installing these libraries separately. That makes some sense, but if that were the underlying problem I would expect a problem on every one.

Let me know if you'd like me to post some logs.

I can't comment on this issue in general, but for me updating the Ubuntu kernel from 18.04 to 22.04 seems to have fixed this problem.