SLURM集群运行nf-core RNAseq时遇Nextflow插件目录创建失败
问题:SLURM集群运行nf-core RNAseq流程遇权限及网络超时错误
在SLURM调度的集群上运行nf-core RNAseq流程时,反复出现以下错误:
[33mWarning: Couldn't create cached classpath folder: /home/irvinng/.nextflow/tmp/launcher/nextflow-one_23.10.1/se439 -- Maybe NXF_HOME is not writable?(B[m curl: (28) Failed to connect to www.nextflow.io port 443 after 300967 ms: Timeout was reached N E X T F L O W ~ version 23.10.1 ERROR ~ Unable to create plugins dir: /home/irvinng/.nextflow/plugins -- Check '.nextflow.log' file for details
nextflow.log中的日志内容:
Mar-10 11:22:32.695 [main] DEBUG nextflow.cli.Launcher - $> nextflow run nf-core/rnaseq -r 3.14.0 -name RNAseq -profile singularity -params-file nf-core_RNAseq/nf-params.json -c nf-core_RNAseq/nextflow.config Mar-10 11:23:53.787 [main] INFO nextflow.cli.CmdRun - N E X T F L O W ~ version 23.10.1 Mar-10 11:23:53.833 [main] DEBUG nextflow.plugin.PluginsFacade - Setting up plugin manager > mode=prod; embedded=false; plugins-dir=/home/irvinng/.nextflow/plugins; core-plugins: nf-amazon@2.1.4,nf-azure@1.3.3,nf-cloudcache@0.3.0,nf-codecommit@0.1.5,nf-console@1.0.6,nf-ga4gh@1.1.0,nf-google@1.8.3,nf-tower@1.6.3,nf-wave@1.0.1 Mar-10 11:23:53.836 [main] ERROR nextflow.cli.Launcher - Unable to create plugins dir: /home/irvinng/.nextflow/plugins java.io.IOException: Unable to create plugins dir: /home/irvinng/.nextflow/plugins at nextflow.plugin.PluginsFacade.init(PluginsFacade.groovy:195) at nextflow.plugin.Plugins.init(Plugins.groovy:41) at nextflow.plugin.Plugins.init(Plugins.groovy) at nextflow.cli.CmdRun.run(CmdRun.groovy:314) at nextflow.cli.Launcher.run(Launcher.groovy:500) at nextflow.cli.Launcher.main(Launcher.groovy:672)
已尝试的无效解决方法
- 调整
.nextflow目录权限:进入/home/irvinng/.nextflow目录执行chmod u+w+x+r命令,问题未解决。 - 指定自定义插件目录:在作业脚本中设置
NXF_PLUGINS_DIR环境变量,尝试让Nextflow写入指定路径,但流程仍尝试写入默认的/home/irvinng/.nextflow/plugins目录,问题依旧。作业脚本内容如下:
#!/bin/bash #SBATCH --time=10:00:00 # Maximum execution time (HH:MM:SS) #SBATCH --nodes=1 # Number of nodes #SBATCH --ntasks=1 # Number of tasks (MPI processes) #SBATCH --cpus-per-task=32 # Number of CPU cores per task #SBATCH --mem=300G # Total memory allocated (in GB) #SBATCH --mail-type=ALL # Send email on job start, end, and abort ################################################################################ # Load modules source /path/to/conda.sh conda activate /path/to/nf-core ################################################################################ module load apptainer NXF_PLUGINS_DIR=nf-core_RNAseq/.nextflow/plugins nextflow run nf-core/rnaseq -r 3.14.0 -name RNAseq -profile singularity -params-file nf-params.json -c nextflow.config mamba deactivate
- 重新安装Nextflow:将Nextflow从
/home/irvinng/bin目录移至nf-core_RNAseq目录重新安装,问题未解决。
内容的提问来源于stack exchange,提问作者Shortytot
相关产品推荐
相关产品推荐

