sokrypton / sokrypton/ColabFold

How to override timout for msa-server?

Open
#323 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Jupyter Notebook
Stars
2.9k
Forks
747
PR merge metrics
No merged PRs in 30d

Description

Expected Behavior

Jobs do not fail after one hour

Current Behavior

Jobs fail after a timeout of one hour

Steps to Reproduce (for bugs)

For larger sequences msa-server jobs fail after one hour, mostly limited by NFS disk I/O. Rerunning helps only in some cases.

ColabFold Output (for bugs)

"Timeout" in server's output, generic error on colabfold_batch's output.
ERROR: | | 3585/? [elapsed: 1:00:01 remaining: 00:00]
2022-10-27 14:39:17,529 Could not get MSA/templates for 4D2I_1: MMseqs2 API is giving errors. Please confirm your input is a valid protein sequence. If error persists, please try again an hour later.
Traceback (most recent call last):
File "batch.py", line 1333, in run
) = get_msa_and_templates(
File "batch.py", line 820, in get_msa_and_templates
a3m_lines = run_mmseqs2(
File "colabfold.py", line 199, in run_mmseqs2
raise Exception(f'MMseqs2 API is giving errors. Please confirm your input is a valid protein sequence. If error persists, please try again an hour later.')
Exception: MMseqs2 API is giving errors. Please confirm your input is a valid protein sequence. If error persists, please try again an hour later.

Context

colabfold_batch --host-url=http://our.local.server:8888 <input_dir> <output_dir>

Your Environment

Shared application server running RHEL7-9.0, 512G RAM (not for exclusive colabfold use), remote networked file systems (NFS/gpfs)
MMSEQS_COMMIT=${1:-4589151554eb83a70ff0c4d04d21b83cabc203e4}
BACKEND_COMMIT=${2:-14e087560f309f989a5e1feb54fd1f9c988076d5}

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Review the run_mmseqs2 path in colabfold.py and its caller in batch.py, then inspect the msa-server configuration used with --host-url. Reproduce a long job in the stated NFS environment and identify where the one-hour timeout is applied. Done means the timeout can be overridden and larger jobs complete without the generic server error.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
bioinformatics
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.