Anders Sune Pedersen
07/22/2024, 10:33 AMNXF_PLUGINS_DIR set to a symlink.
If I set NXF_PLUGINS_DIR to the real folder like
/ngc/shared/nf_tools/.plugins-transactions/approved_source/plugins
then everything works. Now, in the folder /ngc/shared/nf_tools, I got this (relative) symlink
plugins -> .plugins-transactions/approved_source/plugins
but when I set
export NXF_PLUGINS_DIR=/ngc/shared/nf_tools/plugins
then, I get
N E X T F L O W ~ version 24.04.2
ERROR ~ Unable to create plugins dir: /ngc/shared/nf_tools/plugins
Don’t know why Nextflow is trying to create the folder /ngc/shared/nf_tools/plugins as it already exists, although as a relative symlink.
N.B. We also use symlinks for other NXF-variables like NXF_SINGULARITY_CACHEDIR, and that doesn’t cause any problems.Jorge
07/22/2024, 12:02 PMif( mode!=DEV_MODE && !FilesEx.mkdirs(root) )
throw new IOException("Unable to create plugins dir: $root")
and FilesExt use the Files system java
Files.createDirectories(self,attr)
but it seems some jdk have issue if some part are symlinks
https://bugs.openjdk.org/browse/JDK-8130464
maybe you can try with another distro ...Anders Sune Pedersen
07/22/2024, 12:15 PMopenjdk 18 2022-03-22
OpenJDK Runtime Environment (build 18+36-2087)
OpenJDK 64-Bit Server VM (build 18+36-2087, mixed mode, sharing)Anders Sune Pedersen
07/22/2024, 12:18 PMopenjdk 21.0.1 2023-10-17
OpenJDK Runtime Environment (build 21.0.1+12-29)
OpenJDK 64-Bit Server VM (build 21.0.1+12-29, mixed mode, sharing)Anders Sune Pedersen
11/13/2025, 1:56 PMjava.nio.file.FileSystemException: /ngc/tools/bin/nextflow/plugins: Read-only file system
at java.base/sun.nio.fs.UnixException.translateTo10Exception(UnixException.java: 100)
at java.base/sun.nio.fs.UnixException.rethrowAsI0Exception(UnixException.java: 106)
java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java: 111)
java.base/sun.nio.fs.UnixFileSystemProvider.createDirectory(UnixFileSystemProvider.java:418)
at java.base/java.nio.file.Files.createDirectory(Files.java:647)
java.base/java.nio.file.Files.createAndCheckIsDirectory(Files.java:734)
java.base/java.nio.file.Files.createDirectories (Files.java:720)
org.codehaus.groovy.vmplugin.v8.IndyInterface.fromCache(IndyInterface.java:321)
nextflow.extension.FilesEx.mkdirs(FilesEx.groovy:493)
nextflow.plugin.PluginsFacade. init(PluginsFacade.groovy:258)
nextflow.plugin.plugins. init(Plugins.groovy:39)
nextflow.plugin.Plugins.init(Plugins.groovy)
nextflow.cli.CmdRun.run(CmdRun.groovy:362)
at nextflow.cli.Launcher.run(Launcher.groovy:515 )
at nextflow.cli.Launcher.main(Launcher.groovy:675)
Nov-13 14:20:53.856 [main] ERROR nextflow.cli.Launcher - Unable to create plugins dir: /ngc/tools/bin/nextflow/pluginsAnders Sune Pedersen
11/13/2025, 1:58 PM/ngc/tools/bin/nextflow/plugins already exists, and NXF_OFFLINE=true and NXF_PLUGINS_DEFAULT=false . Running NF v25.10.0 and Java 25+36Jorge
11/13/2025, 3:29 PMRead-only file system
maybe someone changed the permissions of the folder ?Anders Sune Pedersen
11/13/2025, 3:45 PMJorge
11/13/2025, 3:51 PMAnders Sune Pedersen
11/13/2025, 3:55 PMJorge
11/13/2025, 4:09 PMchattr +i as rootAnders Sune Pedersen
11/13/2025, 4:34 PMchattr +i 🫤Jorge
11/13/2025, 4:41 PMAnders Sune Pedersen
11/13/2025, 4:46 PMJorge
11/13/2025, 4:49 PMAnders Sune Pedersen
11/13/2025, 5:10 PM