Skip to content
This repository has been archived by the owner on Jan 13, 2022. It is now read-only.

OSError: [Errno 116] Stale file handle #66

Open
johnnyasena opened this issue Jan 7, 2020 · 2 comments
Open

OSError: [Errno 116] Stale file handle #66

johnnyasena opened this issue Jan 7, 2020 · 2 comments

Comments

@johnnyasena
Copy link

Hi,

I attempted to run Taiyaki using CPU but received the following error. Please, can you give me advice on how to fix this issue?

Traceback (most recent call last):
File "/home/s953272/sw/taiyaki/bin/train_flipflop.py", line 530, in
main()
File "/home/s953272/sw/taiyaki/bin/train_flipflop.py", line 456, in main
None if args.gradient_cap_fraction is None else gradient_cap)
File "/home/s953272/TAIYAKI_ENV/lib/python3.6/site-packages/taiyaki-5.0.1-py3.6-linux-x86_64.egg/taiyaki/helpers.py", line 233, in record
self.write("{:5.4f}\t{:5.4f}\t".format(loss, gradientnorm))
File "/home/s953272/TAIYAKI_ENV/lib/python3.6/site-packages/taiyaki-5.0.1-py3.6-linux-x86_64.egg/taiyaki/helpers.py", line 227, in write
self.fh.write(s.encode('utf-8'))
OSError: [Errno 116] Stale file handle
Command exited with non-zero status 1

Here is the command I used.

/home/s953272/sw/taiyaki/bin/train_flipflop.py --overwrite --size 256 --stride 2 --winlen 19 --device cpu --outdir /scratch-large/5-biannual/D8661/nanopore_basecalling/guppy/taiyaki/30Jan17_C0576_20kb /home/s953272/taiyaki/models/mGru_flipflop.py /scratch-large/5-biannual/D8661/nanopore_basecalling/guppy/minimap2/30Jan17_C0576_20kb/mapped_reads.hdf5"

@tmassingham-ont
Copy link
Contributor

The error is occurred when writing to one of the log files, which is kept open throughout the training process. The only time I've encountered this kind of error is when the file being written to has been deleted, or otherwise invalidated after being opened. Generally a filesystem issue.

How far through training did the error happen, and are you able to reproduce?

Thanks,

TimM.

@johnnyasena
Copy link
Author

johnnyasena commented Jan 7, 2020 via email

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants