Closed baynec2 closed 1 year ago
This seems to happen when docker is not running as root. So I put the account name instead of id in runOptions = "--user \$(id -u):\$(id -g) --group-add 100" in the nextflow.config file. For example, if my account name is nanopore, runOptions = "--user \$(nanopore -u):\$(nanopore -g) --group-add 100". After fixing this, I ran it again and it worked fine.
For reference, the nextflow.config file can be found in the folder below. epi2melabs\workflows\epi2me-labs\wf-bacterial-genomes\
Thanks for the suggestion! I'm not sure why, but that did not work for me. I changed the runOptions as suggested which in my case was:
runOptions = "--user (nanopore-catalyst -u) :(nanopore-catalyst -g) --group-add 100"
This did change the error in the log to the following though:
Error executing process > 'calling_pipeline:prokkaVersion'
Caused by:
Process `calling_pipeline:prokkaVersion` terminated with an error exit status (2)
Command executed:
prokka --version | sed 's/ /,/' >> "prokka_version.txt"
Command exit status:
2
Command output:
(empty)
Command wrapper:
.command.run: line 308: syntax error near unexpected token `('
Work dir:
/home/nanopore-catalyst/epi2melabs/instances/wf-bacterial-genomes_5a53cc8b-4068-44df-bbee-d81f9a5163dc/work/b1/6c91642aedbb10b87be3ee55713c59
Tip: when you have fixed the problem you can continue the execution adding the option `-resume` to the run command line
WARN: Killing running tasks (4)
I did find that changing the runOptions to the following did work for me though:
runOptions = "--user \$(id -u):\$(id -g) --group-add 100"
It looks like the answer @YoungMunLEE provided was showing up wrong in my browser. I suspect I should have changed the options to
runOptions= "--user $(nanopore-catalyst -u):$(nanopore-catalyst -g) --group add 100
instead of
runOptions = "--user (nanopore-catalyst -u) :(nanopore-catalyst -g) --group-add 100"
After returning it to its original state, try changing it according to the homepage below.
https://docs.docker.com/engine/install/linux-postinstall/#manage-docker-as-a-non-root-user
In my case, my account ID was nanopore, so I changed it as above.
What happened?
Hi,
I have been trying to get this workflow to run for awhile with no success. When attempting to run the workflow on demo data it rapidly fails and produces a "stops with error" outcome.
The log shows that there is an error when calling prokka: Command error: touch: cannot touch '.command.trace': Permission denied
I have tried altering permissions to the directory to be the most permissive with no success.
Would you be able to help?
Thanks, Charlie
Operating System
Ubuntu 20.04
Workflow Execution
EPI2ME Labs desktop application
Workflow Execution - EPI2ME Labs Versions
V4.1.3
Workflow Execution - CLI Execution Profile
None
Workflow Version
v0.2.12
Relevant log output