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

license issues with conda env when offline #1867

Open
eaundhe opened this issue Nov 11, 2024 · 6 comments
Open

license issues with conda env when offline #1867

eaundhe opened this issue Nov 11, 2024 · 6 comments
Assignees

Comments

@eaundhe
Copy link

eaundhe commented Nov 11, 2024

Hi,

I'm sorry if I missed info on how to get around this issue, but I can't seem to figure out how to use fragpipe in a conda env offline. I have installed fragpipe as a conda env on our cluster and can run fragpipe on our login node with license keys:
fragpipe --headless --msfragger_key --ionquant_key

The problem is that the computational nodes are offline and using the same keys now fails :

Failed to verify license: Connection timed out
java.net.ConnectException: Connection timed out
at java.base/sun.nio.ch.Net.connect0(Native Method)
at java.base/sun.nio.ch.Net.connect(Net.java:589)
at java.base/sun.nio.ch.Net.connect(Net.java:578)
at java.base/sun.nio.ch.NioSocketImpl.connect(NioSocketImpl.java:583)
at java.base/java.net.Socket.connect(Socket.java:752)
at java.base/java.net.Socket.connect(Socket.java:687)
at java.base/sun.net.NetworkClient.doConnect(NetworkClient.java:183)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:531)
at java.base/sun.net.www.http.HttpClient.openServer(HttpClient.java:636)
at java.base/sun.net.www.http.HttpClient.(HttpClient.java:280)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:386)
at java.base/sun.net.www.http.HttpClient.New(HttpClient.java:408)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(HttpURLConnection.java:1310)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect0(HttpURLConnection.java:1243)
at java.base/sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:1129)
at java.base/sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:1058)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream0(HttpURLConnection.java:1460)
at java.base/sun.net.www.protocol.http.HttpURLConnection.getOutputStream(HttpURLConnection.java:1423)
at c.a(Unknown Source)
at edu.umich.andykong.msfragger.MSFragger.main(Unknown Source)
Failed to verify license key. Please check your internet connection or report this problem to the developer.
Error: Invalid MSFragger license key

Please accept the academic license.

FragPipe uses tools that are available freely for academic research and educational purposes only.

Please provide license keys for MSFragger and IonQuant with the --msfragger_key and --ionquant_key flags. By passing these, you verify that you have read the ACADEMIC licenses for the MSFragger and IonQuant tools. You may obtain these keys by agreeing to the terms at http://msfragger-upgrader.nesvilab.org/upgrader/ and https://msfragger.arsci.com/ionquant/.

Again, sorry if there is an easy fix that I've missed. But thank you very much for your help and for making such a great tool.

@fcyu fcyu self-assigned this Nov 11, 2024
@fcyu
Copy link
Member

fcyu commented Nov 11, 2024

The conda package requires internet to validate the license. For your case, I suggest you download the standalone version from https://msfragger-upgrader.nesvilab.org/upgrader/ (MSFragger) and https://msfragger-upgrader.nesvilab.org/ionquant/ (IonQuant).

Best,

Fengchao

@eaundhe
Copy link
Author

eaundhe commented Nov 12, 2024

Hi Fengchao,

Thanks for the quick reply.

I've tried running fragpipe and using a downloaded standalone version of MSFragger but keep getting the error that MSFragger is not a MSFragger jar file. I don't get any other error details but MSFragger is in the tools folder and seems to work on its own.

fragpipe --headless --config-tools-folder software/fragpipe/tools/ --config-diann $EBROOTDIAMINNN/diann-1.8.1 --config-python $EBROOTPYTHON//bin/python --workflow workflow_test.workflow --manifest test.fp-manifest --workdir test

2024-11-12 07:02:33,139 ERROR - Not a MSFragger jar.

ls -hl software/fragpipe/tools/MSFragger-4.1/
total 54M
-rw-rw-r-- 1 10K closed_fragger.params
drwxrwsr-x 4 2 ext
-rwxrwxr-x 1 54M MSFragger-4.1.jar
-rw-rw-r-- 1 67K MSFragger-LICENSE-3RD-PARTY.txt
-rw-rw-r-- 1 68K MSFragger-LICENSE.pdf
-rw-rw-r-- 1 13K Nglyco-HCD_fragger.params
-rw-rw-r-- 1 10K nonspecific_fragger.params
-rw-rw-r-- 1 10K open_fragger.params
-rw-rw-r-- 1 106K RawFileRdr_License_Agreement_RevA.pdf
-rw-rw-r-- 1 342 redist.txt
-rw-rw-r-- 1 41K THIRD-PARTY-LICENSE-README.txt>

java -jar software/fragpipe/tools/MSFragger-4.1/MSFragger-4.1.jar
MSFragger version MSFragger-4.1
Batmass-IO version 1.33.4
timsdata library version timsdata-2-21-0-4
(c) University of Michigan
RawFileReader reading tool. Copyright (c) 2016 by Thermo Fisher Scientific, Inc. All rights reserved.
timdTOF .d reading tool. Copyright (c) 2022 by Bruker Daltonics GmbH & Co. KG. All rights reserved.
System OS: Linux, Architecture: amd64
Java Info: 17.0.4, OpenJDK 64-Bit Server VM, Eclipse Adoptium
Usage:
To perform a search either use a parameter file:
1) java -jar MSFragger.jar <list of mzML/mzXML/MGF/RAW/.d files>
Or specify options on the command line:
2) java -jar MSFragger.jar <list of mzML/mzXML/MGF/RAW/.d files>
To generate default parameter files use --config closed/open/nonspecific/glyco. E.g. "java -jar MSFragger.jar --config closed"
To list all the available options, run with --help or -h flag.

@eaundhe
Copy link
Author

eaundhe commented Nov 12, 2024

Just wanted to add I get the same error when installing/updating using the GUI. It's just MSFragger — Ionquant seems to work fine.

@fcyu
Copy link
Member

fcyu commented Nov 12, 2024

The file might be corrupted. Can you download a new one?

Best,

Fengchao

@eaundhe
Copy link
Author

eaundhe commented Nov 13, 2024

Thanks for the quick reply, once again!

I've tried that a few times, but tried it again this time also unzipping locally and uploading the uncompressed folder. I also tried using the GUI to download directly. I get no errors until "Not a MSFragger jar". Also, it works fine on its own.

Is there a path somewhere I can check (I couldn't find out where...)? Or force it to use the MSFragger jar file even if it doesn't say it is the correct file somehow?

Sorry, I seem to be the only one with this error. But thanks for your help!

@fcyu
Copy link
Member

fcyu commented Nov 13, 2024

Could you share the screenshot of the "config" tab in the FragPipe GUI?

Thanks,

Fengchao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants