Farshad Farshidfar
08/28/2024, 4:58 PMThomas Danhorn
08/29/2024, 5:18 AMcom.amazonaws.SdkClientException: Failed to connect to service endpoint and (a bit further down) Caused by: java.net.SocketException: Network is unreachable, suggesting a (temporary?) network connection problem, apparently while trying to download the snpEff cache. Not sure there is a relationship to the error that kill the pipeline, but for both a shaky internet connection could be an explanation.
The error you are getting is strange -- END_VERSIONS is the tag signalling the end of a "here-document" in bash that is used to create the versions.yml file of each process. Somehow that seems to have been incorporated into the file and the YAML parser chokes on it. No idea how that can happen, but I would make sure it was not some one-time glitch.
You are downloading the pipeline on-the-fly, I could image something got corrupted there. I would try renaming (or deleting) ~/.nextflow, that contains by default all of the pipeline code (under assets [if you just want to remove the code], as well as various caches), to force a redownload.
If your internet connection is indeed less than perfectly reliable, I would recommend predownloading everything you can. The nf-core download command from tools can download the pipeline code and all containers, and running the pipeline with the parameters --download_cache --build_only_index --tools vep,snpeff --genome $mygenome (and not much else) lets you download the VEP and/or snpEff caches before an actual run (you could even download on another machine and then copy them over); you can then use the respective parameters to let the pipeline know where to find them. That way any internet glitch will not kill your runs with actual data.Anders Sune Pedersen
08/29/2024, 2:23 PMFarshad Farshidfar
08/29/2024, 4:47 PMThomas Danhorn
08/29/2024, 4:55 PMEND_VERSIONS should not be in any file, it signifies the end of the "here-document" that is used in creating the file. And in functional code I can't see how it ends up in the file, hence my hypothesis that the code was corrupted.
Manual removal does not solve the problem, because at that point the process has failed and Nextflow will rerun it (upon -resume) and overwrite anything that was there before (including your edits). The fact that this seems to be reproducible is consistent with my hypothesis of corrupted code. Hope the new download solves it.🤞