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

Output Error #146

Open
pbelmann opened this issue Nov 17, 2015 · 2 comments
Open

Output Error #146

pbelmann opened this issue Nov 17, 2015 · 2 comments
Assignees
Labels

Comments

@pbelmann
Copy link
Member

Sometimes the pipeline reports the following error:

Directory /home/belmann/projects/bioPipeline/tmp/output already exists. Please remove it or assign another output directory.
Exception in thread "Thread-2" java.util.ConcurrentModificationException
        at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:901)
        at java.util.ArrayList$Itr.next(ArrayList.java:851)
        at nextflow.Global.cleanUp(Global.groovy:163)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:384)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:69)
        at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:52)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:154)
        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:158)
        at nextflow.Global$__clinit__closure2.doCall(Global.groovy:178)
        at nextflow.Global$__clinit__closure2.doCall(Global.groovy)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:93)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)
        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:294)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1019)
        at groovy.lang.Closure.call(Closure.java:426)
        at groovy.lang.Closure.call(Closure.java:420)
        at groovy.lang.Closure.run(Closure.java:507)
        at java.lang.Thread.run(Thread.java:745)

instead of

N E X T F L O W  ~  version 0.16.2
Pulling metagenomics/MeRaGENE ...
 Already-up-to-date
Launching 'metagenomics/MeRaGENE' - revision: 601f87534f [master]
[warm up] executor > local
Directory /home/belmann/projects/bioPipeline/tmp/output already exists. Please remove it or assign another output directory.
@pbelmann pbelmann added the bug label Nov 17, 2015
@pditommaso
Copy link
Contributor

I think the problem is caused by the exit method that is not meant to be used inside a process. https://github.com/metagenomics/MeRaGENE/blob/master/main.nf#L41

Moving it outside the scope of the process or on top of your script should solve the problem.

pbelmann added a commit that referenced this issue Dec 4, 2015
@pbelmann
Copy link
Member Author

pbelmann commented Dec 4, 2015

thx @pditommaso

@pbelmann pbelmann self-assigned this Dec 7, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants