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

Command 'ps' required by nextflow to collect task metrics cannot be found #207

Closed
chenhijy opened this issue Sep 18, 2024 · 3 comments
Closed
Labels
bug Something isn't working

Comments

@chenhijy
Copy link

Description of the bug

I had successfully been running nf-pangenome on AWS EC2 using tibanna and a snakemake pipeline, but today I started getting this error irrespective of whether I set -profile to singularity, docker, or conda

I'm reading online that maybe ps needs to be explicitly installed into nf-pangenome's container. Can anyone help with this?

The command in the snakemake rule is

nextflow run nf-core/pangenome \
    --input panSNCombined.fa.gz \
    --n_haplotypes 14 \
    --outdir <outdir> \
    --communities true \
    -profile singularity \
    -c <customNfConfig.json> \
    -process.echo

This is the error I get

ERROR ~ Error executing process > 'NFCORE_PANGENOME:PANGENOME:INPUT_CHECK:SAMTOOLS_FAIDX (panSNCombined.fa.gz)'

Caused by:
  Process `NFCORE_PANGENOME:PANGENOME:INPUT_CHECK:SAMTOOLS_FAIDX (panSNCombined.fa.gz)` terminated with an error exit status (1)


Command executed:

  samtools \
      faidx \
     panSNCombined.fa.gz \
  
  
  cat <<-END_VERSIONS > versions.yml
  "NFCORE_PANGENOME:PANGENOME:INPUT_CHECK:SAMTOOLS_FAIDX":
      samtools: $(echo $(samtools --version 2>&1) | sed 's/^.*samtools //; s/Using.*$//')
  END_VERSIONS

Command exit status:
  1

Command output:
  (empty)

Command error:
  Command 'ps' required by nextflow to collect task metrics cannot be found

Command used and terminal output

No response

Relevant files

No response

System information

Docker version 23.0.3, build 3e7cbfd
Python 3.8.10
pip 20.0.2
tibanna awsf3 version 3.3.1
cwltool version 3.1.20211103193132
cromwell version 35 for WDL draft2
cromwell version 53.1 for WDL v1.0
singularity-ce version 3.10.4-focal
goofys version 0.24.0-45b8d78375af1b24604439d2e60c567654bcdf88
snakemake 7.28.3
nf-core/pangenome 1.1.2-gaf6d1dd
 N E X T F L O W   ~  version 24.04.4
r6a.32xlarge EC2 instance
@chenhijy chenhijy added the bug Something isn't working label Sep 18, 2024
@subwaystation
Copy link
Collaborator

I have no idea, but I am asking around.

@chenhijy
Copy link
Author

We think we solved the issue. We had added a # comment to the snakemake shell directive that seems to have been causing unpredictable behavior with the nf-pangenome container (i.e. various utilities and tools -- such as ps, samtools, etc -- were unavailable). After removing this, the pipeline started working again.

@subwaystation
Copy link
Collaborator

Great, thanks for letting me know!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants