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

Trouble to run the example execution - Error executing process > detect:pprmeta (1) #126

Open
krluka opened this issue Jun 18, 2024 · 14 comments

Comments

@krluka
Copy link

krluka commented Jun 18, 2024

Dear,

When I try to run the example execution with -profile local,singularity I get the following error message:

ERROR:

ERROR ~ Error executing process > 'detect:pprmeta (1)'

Caused by:
  Process `detect:pprmeta (1)` terminated with an error exit status (255)

Command executed:

  [ -d "pprmeta" ] && cp pprmeta/* .
  ./PPR_Meta assembly_renamed_filt1500bp.fasta assembly_pprmeta.csv

Command exit status:
  255

Command output:
  (empty)

Command error:
  INFO:    Environment variable SINGULARITYENV_NXF_TASK_WORKDIR is set, but APPTAINERENV_NXF_TASK_WORKDIR is preferred
  Could not access the MATLAB Runtime component cache. Details: fl:filesystem:SystemError; component cache root:; componentname: PPR_Meta

Work dir:
  /scratch/lukak/virify/89/da5d86a7234aabd05dfd7b618633e0

I don't have many experience with singularity/apptainer so any kind of help would be much appreciated.

Best regards,

Luka

@mberacochea
Copy link
Member

Hey @krluka

Apologies for a very delayed response.

That looks like a there are issues with permissions on the directory the task is being executed. Do you have write/read/execute permissions on /scratch/lukak/virify/89/da5d86a7234aabd05dfd7b618633e0? I'm not very familiar with the MATLAB runtime, and I have never bumped into this problem.

If you are running this on an HPC cluster, could you contact your support team? They may be able to provide some guidance.

Cheers

@krluka
Copy link
Author

krluka commented Jul 23, 2024

Hey @mberacochea

Thank you for your reply.

I checked with local support and it seems that necessary permissions are in place.

Best,

Luka

@mberacochea
Copy link
Member

Hey @krluka

Can you share the whole .nextflow.log file for the run please?. I'm not sure what is going one, and that log file may have some clues.

Cheers

@krluka
Copy link
Author

krluka commented Jul 25, 2024

Hey @mberacochea

Sure, I'm attaching it to this post.

Best,

Luka

nextflow.log

@dbespiatykh
Copy link

Hey @krluka,

I had the same issue on HPC without admin rights, and I was able to fix it by setting up the MCR_CACHE_ROOT=</writable/dir> environment variable with writable directory.

@mberacochea
Copy link
Member

@dbespiatykh Can you try @dbespiatykh suggestion?

Thanks @dbespiatykh I will add this to the documentation

@krluka
Copy link
Author

krluka commented Aug 26, 2024

Hey @dbespiatykh,

Thank you for the suggestion - I will try that the first chance I get.

@mberacochea I'll post the outcome as soon I have it.

@egenomics
Copy link

I have the same error:
ERROR ~ Error executing process > 'detect:pprmeta (1)'

Caused by:
Process detect:pprmeta (1) terminated with an error exit status (255)

Command executed:

[ -d "pprmeta" ] && cp pprmeta/* .
./PPR_Meta assembly_renamed_filt1500bp.fasta assembly_pprmeta.csv

Command exit status:
255

Command output:
(empty)

Command error:
Could not access the MATLAB Runtime component cache. Details: fl:filesystem:SystemError; component cache root:; componentname: PPR_Meta

Work dir:
/soft/test_viral./work/e1/ba3c3cf6378ba3500b2882c1391883

Tip: you can try to figure out what's wrong by changing to the process work dir and showing the script file named .command.sh

-- Check '.nextflow.log' file for details

In an installation from scratch.

@mberacochea
Copy link
Member

Hi @egenomics

Did you try @dbespiatykh suggestion?

I had the same issue on HPC without admin rights, and I was able to fix it by setting up the MCR_CACHE_ROOT=</writable/dir> environment variable with writable directory.

Cheers

@egenomics
Copy link

I am in a local machine (testing it). When I use your suggestion about setting upthe MCR_CACHE_ROOT I get a similar error:
ERROR ~ Error executing process > 'detect:pprmeta (1)'

Caused by:
Process detect:pprmeta (1) terminated with an error exit status (255)

Command executed:

[ -d "pprmeta" ] && cp pprmeta/* .
./PPR_Meta assembly_renamed_filt1500bp.fasta assembly_pprmeta.csv

Command exit status:
255

Command output:
(empty)

Command error:

Could not access the MATLAB Runtime component cache. Details: fl:filesystem:SystemError; component cache root:; componentname: PPR_Meta

Work dir:
/soft/test_viral./work/ae/9ed47b42f085011346e1ceff79c36e

Tip: when you have fixed the problem you can continue the execution adding the option -resume to the run command line

-- Check '.nextflow.log' file for details

@dbespiatykh
Copy link

Hey @egenomics,

Try doing this:

    1. Inside the VIRify database directory, locate the /pprmeta directory, and rename file PPR_Meta to something like PPR_Meta_w
    1. Create file named PPR_Meta and paste the following code in it:
export MCR_CACHE_ROOT=/your/writable/directory

./PPR_Meta_w "$@"
    1. Run chmod +x PPR_Meta

And try running the pipeline again

@egenomics
Copy link

Hi,
I did it and it works with the test!

thanks

@mberacochea
Copy link
Member

Hey @egenomics,

Try doing this:

* 1. Inside the VIRify database directory, locate the `/pprmeta` directory, and rename file `PPR_Meta` to something like `PPR_Meta_w`

* 2. Create file named `PPR_Meta` and paste the following code in it:
export MCR_CACHE_ROOT=/your/writable/directory

./PPR_Meta_w "$@"
* 3. Run `chmod +x PPR_Meta`

And try running the pipeline again

Brilliant, and validated by @egenomics. I'll add this to the README.

Thank you @dbespiatykh

@corvinux
Copy link

export MCR_CACHE_ROOT doesn't work on nfs shares. I had to set it on local filesystem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants