-
Notifications
You must be signed in to change notification settings - Fork 624
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
Nextflow executions fail with message 'Picked up JAVA_TOOL_OPTIONS' #1716
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Can this be fixed ? |
Use |
Hem... no. This should be supported by any tool that uses java. |
Consider submitting a PR https://github.com/nextflow-io/capsule |
Unfortunately, I am not at all fluent in Java, so I can't. I can open an issue on the other repository, if you think this is where the bug is located. |
Mmm, apparently, we can not open issues on the |
For what it's worth, I can solve this by patching the binary-bash |
As of version 21.12.1-edge the launcher script allows the use of the |
@pditommaso this is still an issue if we want to set
|
TLDR; for processes use |
The point remains that NextFlow should not barf because an environment variable it does not use is defined (JAVA_TOOLS_OPTIONS) |
Signed-off-by: Paolo Di Tommaso <[email protected]>
Fair enough 👉 30956af |
@pditommaso thats a really unwelcome fix, since then anything run after Nextflow will not pick up JAVA_TOOL_OPTIONS!!! See: puniverse/capsule#138. It shouldn’t be hard to fix capsule instead. |
Actually, unless people use That is essentially what we are doing in this: except that we also define |
Ah, so it will still remain set outside Nextflow? If so, then false alarm. |
Signed-off-by: Paolo Di Tommaso <[email protected]>
It's ok
the problem is that there was a typo 🤦 👉 0e7b416 |
In some environments, NF execution fails with a message similar to the following
This is caused by the
JAVA_TOOL_OPTIONS
variable that interferes with the Capsule loader Java version detection.The error stack trace reports
A possible patch consists of patching the Capsule loader. A simple workaround is unsetting the
JAVA_TOOL_OPTIONS
env variable.The text was updated successfully, but these errors were encountered: