Toil generating too long paths
See original GitHub issueI am running Toil 5.1.0 in an LSF cluster, one of the steps in my workflow (Flye assembly) is failing because it uses socket.bind with Python, the error is “AF_UNIX path too long”
This is the error on Flye step:
Traceback (most recent call last):
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/multiprocessing/process.py", line 315, in _bootstrap
self.run()
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/multiprocessing/process.py", line 108, in run
self._target(*self._args, **self._kwargs)
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/multiprocessing/managers.py", line 608, in _run_server
server = cls._Server(registry, address, authkey, serializer)
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/multiprocessing/managers.py", line 154, in __init__
self.listener = Listener(address=address, backlog=16)
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/multiprocessing/connection.py", line 448, in __init__
self._listener = SocketListener(address, family, backlog)
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/multiprocessing/connection.py", line 592, in __init__
self._socket.bind(address)
OSError: AF_UNIX path too long
Traceback (most recent call last):
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/bin/flye", line 33, in <module>
sys.exit(load_entry_point('flye==2.8.2', 'console_scripts', 'flye')())
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/site-packages/flye/main.py", line 797, in main
_run(args)
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/site-packages/flye/main.py", line 576, in _run
jobs[i].run()
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/site-packages/flye/main.py", line 328, in run
consensus_fasta = cons.get_consensus(out_alignment, chunks_file,
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/site-packages/flye/polishing/consensus.py", line 60, in get_consensus
aln_reader = SynchronizedSamReader(alignment_path,
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/site-packages/flye/utils/sam_parser.py", line 143, in __init__
self.shared_manager = multiprocessing.Manager()
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/multiprocessing/context.py", line 57, in Manager
m.start()
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/multiprocessing/managers.py", line 583, in start
self._address = reader.recv()
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/multiprocessing/connection.py", line 250, in recv
buf = self._recv_bytes()
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/multiprocessing/connection.py", line 414, in _recv_bytes
buf = self._recv(4)
File "/hps/nobackup2/production/metagenomics/jcaballero/miniconda3/envs/mgnify-lr/lib/python3.8/multiprocessing/connection.py", line 383, in _recv
raise EOFError
EOFError
after modifiying “connection.py” to print the address to bind I got:
/hps/nobackup2/production/metagenomics/jcaballero/runs/work-dir/tmp/test1/node-3c208199-ebf7-4edb-a6ef-07a97ba272ee-8e3d2d40-890f-42d2-b1ea-26c9e6993f0c/tmpg3_r9gh2/ece077c9-2665-4541-b213
-cd237817ce30/t0xg4ust_bpa8f12p/pymp-b4sxc7i1/listener-0zzrgznm
which is 252 chars, Unix sockets allowed only <200 chars.
Any chance that toil can generate shorted paths in toil?
┆Issue is synchronized with this Jira Task ┆Issue Number: TOIL-758
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (4 by maintainers)
Top Results From Across the Web
Destination Path Too Long Error When Moving/Copying a File
If you are facing the error Destination Path Too Long when trying to copy or move a file to a folder in Windows,...
Read more >Fix: "Error 0x80010135: Path Too Long" Error on Windows
1. Extract the File · 2. Enable Long Path Support via Registry · 3. Enable Long Path Support via Group Policy Editor ·...
Read more >How to enable paths longer than 260 characters in windows ...
To fix the long path issue, you may need to reduce the length of the path. For example, move the folder so it...
Read more >How to Enable Win32 Long Paths in Windows 11/10
Enable Win32 Long Paths through Regedit · Open Regedit · Paste the path for the file system folder · Find the LongPathsEnabled DWORD...
Read more >How to Make Windows 10 Accept File Paths Over 260 ...
To enable long file paths in Windows, open Registry Editor, create a new DWORD named "LongPathsEnabled" in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
#3438 should reduce this a bit.
This was solved in 5.2.0, thanks devs