Open nick-youngblut opened 6 months ago
This is likely because you have many staged files, see here
Thanks @pditommaso for pointing that out! What is the problem with including possibly a few 1000 more lines in the runner script?
It's explained in the comment. To contain the script file size. You can delete all symlink using a Bash oneliner like find . -type l -delete
or something similar
Why does the file size need to be contained to <100 lines of removing symlinks? Extending to 1000's of lines will not add much size to the file.
You can delete all symlink using a Bash oneliner like
find . -type l -delete
or something similar
Why not just use find . -type l -delete
instead of removing each symlink individually in the runner script?
lol. need to think it there could be other links. @bentsherman opinion?
need to think it there could be other links
I thought all symlinks were (re)created by the runner script, but maybe I'm mistaken?
Deleting all links should be fine, I can't think of any other links that are created. But Nick also suggested using ln -sf
instead of deleting the links, maybe that would be better
I just hit this problem too when using nextflow -resume
:
Command exit status:
1
Command output:
(empty)
Command wrapper:
ln: failed to create symbolic link 'prop_summary.json': File exists
not sure if I understand the comments above, this just looks like a bug?
Bug report
For a failed job in my Nextflow pipeline, I'm manually running bash .command.run and I'm getting
ln: failed to create symbolic link 'DIRECTORY_NAME/FILE_NAME.txt': File exists
.The nxf_stage() function includes:
The symlinks are not removed via
rm -f
prior to recreating them in thenxf_stage()
function, andln -s
is used instead ofln -sf
. This results in the error when manually re-running.command.run
. This make troubleshooting failed jobs harder, since I manually have to delete existing symlinks or comment-out all of theln -s
commands innxf_stage()
.This issue does not occur for files not in staged directories, just for
mkdir -p new_directory && ln -s new_directory/new_file.txt
.Expected behavior and actual behavior
See above
Steps to reproduce the problem
This should occur for any pipeline that creates staged files in directories:
mkdir -p new_directory && ln -s new_directory/new_file.txt
Program output
See above
Environment
Additional context
See this slack thread