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

FAQ: LoFreq gives error "OSError: [Errno 7] Argument list too long: lofreq #143

Closed
DennisSchmitz opened this issue May 8, 2020 · 1 comment
Assignees
Labels
faq Frequently asked question wontfix This will not be worked on

Comments

@DennisSchmitz
Copy link
Owner

DennisSchmitz commented May 8, 2020

I will update this post if more information becomes available. See also related issue #102.

On certain off-site servers we see the error shown below. Even with datasets that have previously, reproducibly/reliably, finished on RHEL, CentOS, Ubuntu and WSL1(Ubuntu) systems. This leads us to believe this is a client-sided problem. Most likely due to a limitation in the number of simultaneous open files and/or a stack size limit (see ulimit -Sa and ulimit -Ha). LoFreq seems to send a very big command that possibly exceeds the stack size limit. Also, it uses many temporary files, which might trigger the simultaneous open file limit. Locally we have the limits shown below and on servers that give the errors we generally see lower limits:

open files          4096
stack size          unlimited

In rule SNP_calling:

INFO [2020-05-03 17:05:02,738]: Adding 49278 commands to mp-pool
Traceback (most recent call last):
  File "/mnt/StudentFiles/2019-20/Project03/20200501_Jovian_DS/.snakemake/conda/e8de1337/bin/lofreq2_call_pparallel.py", line 746, in <module>
    main()
  File "/mnt/StudentFiles/2019-20/Project03/20200501_Jovian_DS/.snakemake/conda/e8de1337/bin/lofreq2_call_pparallel.py", line 669, in main
    "##source=%s" % ' '.join(sys.argv))
  File "/mnt/StudentFiles/2019-20/Project03/20200501_Jovian_DS/.snakemake/conda/e8de1337/bin/lofreq2_call_pparallel.py", line 174, in concat_vcf_files
    subprocess.check_call(cmd)
  File "/mnt/StudentFiles/2019-20/Project03/20200501_Jovian_DS/.snakemake/conda/e8de1337/lib/python3.6/subprocess.py", line 306, in check_call
    retcode = call(*popenargs, **kwargs)
  File "/mnt/StudentFiles/2019-20/Project03/20200501_Jovian_DS/.snakemake/conda/e8de1337/lib/python3.6/subprocess.py", line 287, in call
    with Popen(*popenargs, **kwargs) as p:
  File "/mnt/StudentFiles/2019-20/Project03/20200501_Jovian_DS/.snakemake/conda/e8de1337/lib/python3.6/subprocess.py", line 729, in __init__
    restore_signals, start_new_session)
  File "/mnt/StudentFiles/2019-20/Project03/20200501_Jovian_DS/.snakemake/conda/e8de1337/lib/python3.6/subprocess.py", line 1364, in _execute_child
    raise child_exception_type(errno_num, err_msg, err_filename)
OSError: [Errno 7] Argument list too long: 'lofreq'
@DennisSchmitz DennisSchmitz added wontfix This will not be worked on faq Frequently asked question labels May 8, 2020
@DennisSchmitz DennisSchmitz self-assigned this May 8, 2020
@DennisSchmitz
Copy link
Owner Author

DennisSchmitz commented May 12, 2020

Update. Indeed, after increasing these limits it finishes without error. This is a client-sided problem and thus out-of-scope of Jovian. If you encounter this error, please contact your sys-admin and ask him/her to increase these limits.

Leaving this issue open for clarity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
faq Frequently asked question wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

1 participant