Hi everyone, a quick question: How can I manually...
# nf-schema
l
Hi everyone, a quick question: How can I manually download nf-schema version 2.6.1? I only found the source code on GitHub Releases (for previous versions, I was able to find the JAR files 🙂). I also tried using
nextflow plugin install
, but it didn’t work. thanks~
c
I've just run:
Copy code
nextflow plugin install nf-schema@2.6.1
And the plugin downloaded successfully.
What version of Nextflow are you running?
l
version 25.10.0 build 10289
c
Hmmm, that shouldn't be the problem then.
l
I think it might be a network issue. What is the repository URL that Nextflow uses to download nf-schema?
c
I might be mistaken, but I think it's due to a minimal version problem
Can you try?
Copy code
NXF_VER=25.10.2 nextflow plugin install nf-schema@2.6.1
l
image.png
c
Interesting, I can replicate your error if I drop the version of nextflow 6 months, and then run it again with a newer version.
Copy code
NXF_VER=24.06.0-edge nextflow plugin install nf-schema@2.6.1
Downloading plugin nf-schema@2.6.1
ERROR ~ Plugin nf-schema with version @2.6.1 does not exist in the repository
Copy code
NXF_VER=24.10.0 nextflow plugin install nf-schema@2.6.1     
Downloading plugin nf-schema@2.6.1
ERROR ~ Plugin nf-schema with version @2.6.1 does not exist in the repository
The error seems to resolve itself if I use my installed nextflow
Copy code
nextflow plugin install nf-schema@2.6.1
Copy code
nextflow  -v
nextflow version 25.10.0.10289
There were updates to the plugin system, and it looks like the current mechanism is querying the legacy system, rather than the new registry. The only other suggestion I have is to export the most recent version before you run the command:
Copy code
export NXF_VER=25.10.2
nextflow plugin install nf-schema@2.6.1
This also seems to resolve the issue for me.
l
It does not work for me😭
I find the Nextflow plugin registry URL and manually download nf-schema@2.6.1: https://registry.nextflow.io/plugins/nf-schema/2.6.1
n
I'm not sure the version is the issue here since I released 2.6.1 when 25.10.0 was the latest version 🤔
Maybe you can try manually downloading the plugin with
wget <https://registry.nextflow.io/api/v1/plugins/nf-schema/2.6.1/download/nf-schema-2.6.1.zip>
, unzip it and move it to the
~/.nextflow/plugins
folder
✅ 1
m
Underlying issue is that new plugins use the new system only and are thought as not existing via old nextflow version using old system
n
Yes but that shouldn't be a problem with 25.10.0 and up
m
it actually is for now
I think Ben fixed that
The nextflow version check was happening after loading the plugins
n
Yeah that was an issue before indeed
m
p
Hi, I've got the same issue when running sarek 2.6.1, the plugin error shows when using the newest nextflow 25.10.2 and also 24.04.8. This didn't help: export NXF_VER=25.10.2 nextflow plugin install nf-schema@2.6.1 is there now, any solution or not?
n
Maybe you can try manually downloading the plugin with
wget <https://registry.nextflow.io/api/v1/plugins/nf-schema/2.6.1/download/nf-schema-2.6.1.zip>
, unzip it and move it to the
~/.nextflow/plugins
folder
b
I cannot reproduce this issue. It works for me when using 25.10 I also tried switching to an older version and switching back, still no issue Plugins that require >=25.10 aren't published to the legacy index so they won't be recognized by older versions of Nextflow
p
I'm also able to replicate, following the commands from @Chris Hakkaart (after deleting my local cached copies of
nf-schema
)
Untitled
And can confirm that his suggested workaround fixes it for me too:
Though on a second attempt it fails again:
Now it works.. bit all over the place
@Patricie Skaláková @lilin have you tried typing the example commands out? I wonder if some of my weirdness is about whether I paste it or type it..
Yeah I'm definitely still hitting it @Ben Sherman
Untitled
I get 2.4.2 if I don't specify a version lolsob
Copy code
❯ nextflow plugin install nf-schema
Downloading plugin nf-schema@2.4.2
Which makes no sense
🤣 1
c
It did fix itself (deleting the cache copy), running the older version of Nextflow with nxf_ver, then running it with my locally installed version (25.10) without the nxf_ver env variable. It seemed to work perfectly after that (at least for the install command).
b
I'm confused
Copy code
❯ NXF_VER=24.10.0 nextflow plugin install nf-schema@2.6.1
Downloading plugin nf-schema@2.6.1
ERROR ~ Plugin nf-schema with version @2.6.1 does not exist in the repository
This is expected because nf-schema 2.6.1 requires Nextflow >=25.10, so it wasn't published to the legacy index. You are using 24.10 here
p
Argh, and this is why you shouldn't multitask during meetings 🙈
That explains some (not all) of my pastes above. But ok, maybe take my repro with a pinch of salt
c
Argh - I thought I was using 25.10, I'm not sure if I was making a typo in the message or terminal. I'll need to check later when I have my laptop.