[Clusterusers] problem running lein/clojure jobs on fly

Wm. Josiah Erikson wjerikson at hampshire.edu
Wed Oct 3 10:15:07 EDT 2018


Google says:

Workarounds are: use Java 8, downgrade to lein 2.7 or
use |LEIN_JVM_OPTS=-Dhttps.protocols=TLSv1.2|

I would try setting that environment variable. If that doesn't work, we
can look into upgrading to Java 8

   -Josiah


||


On 10/3/18 9:15 AM, Lee Spector wrote:
> Progress! But not yet quite there yet.
>
> I edited my .bash_profile to add /share/apps/bin/ to my path, logged
> out and in again, ran lein, and it did some stuff, and now I can run
> lein to get the standard message that that usually provides, and
> everything looks okay, which is an improvement. But trying to run
> Clojush either on the head node or a compute node gives:
>
> [lspector at fly clojush-launcher]$ lein run
> clojush.problems.demos.simple-regression
> Could not transfer artifact com.lowagie:itext:jar:2.1.7 from/to
> central (https://repo1.maven.org/maven2/): Received fatal alert:
> protocol_version
> Could not transfer artifact com.lowagie:itext:jar:2.1.7 from/to
> clojars (https://repo.clojars.org/): Received fatal alert:
> protocol_version
> Could not find artifact com.lowagie:itext:jar:2.1.7 in releases
> (https://clojars.org/repo)
> Could not transfer artifact
> org.apache.xmlgraphics:batik-svggen:jar:1.8 from/to central
> (https://repo1.maven.org/maven2/): Received fatal alert: protocol_version
> Could not transfer artifact
> org.apache.xmlgraphics:batik-svggen:jar:1.8 from/to clojars
> (https://repo.clojars.org/): Received fatal alert: protocol_version
> Could not find artifact org.apache.xmlgraphics:batik-svggen:jar:1.8 in
> releases (https://clojars.org/repo)
> Could not transfer artifact org.apache.xmlgraphics:batik-dom:jar:1.8
> from/to central (https://repo1.maven.org/maven2/): Received fatal
> alert: protocol_version
> Could not transfer artifact org.apache.xmlgraphics:batik-dom:jar:1.8
> from/to clojars (https://repo.clojars.org/): Received fatal alert:
> protocol_version
> Could not find artifact org.apache.xmlgraphics:batik-dom:jar:1.8 in
> releases (https://clojars.org/repo)
> Could not transfer artifact com.lowagie:itext:pom:2.1.7 from/to
> central (https://repo1.maven.org/maven2/): Received fatal alert:
> protocol_version
> Could not transfer artifact
> org.apache.xmlgraphics:batik-svggen:pom:1.8 from/to central
> (https://repo1.maven.org/maven2/): Received fatal alert: protocol_version
> Could not transfer artifact org.apache.xmlgraphics:batik-dom:pom:1.8
> from/to central (https://repo1.maven.org/maven2/): Received fatal
> alert: protocol_version
> This could be due to a typo in :dependencies, file system permissions,
> or network issues.
> If you are behind a proxy, try setting the 'http_proxy' environment
> variable.
>
>  -Lee
>
>
>
>> On Oct 3, 2018, at 8:50 AM, Wm. Josiah Erikson
>> <wjerikson at hampshire.edu <mailto:wjerikson at hampshire.edu>> wrote:
>>
>> /share/apps/bin/lein
>>
>> I updated it to the latest version, then applied the fix, which is
>> really just adding a -1 to the curl command on line 147
>>
>>     -Josiah
>>
>>
>>
>> On 10/3/18 8:33 AM, Lee Spector wrote:
>>>
>>> Hmm, still getting same error, I think, below.
>>>
>>> However, I now realize that I've been running my own lein script, in
>>> my ~/bin/
>>>
>>> So presumably you updated something else, which may not even have
>>> had a problem!
>>>
>>> However, disabling (renaming) my script, lein gives me a file not
>>> found error.
>>>
>>> Where is the system-wide lein?
>>>
>>> Thanks,
>>>
>>>  -Lee
>>>
>>>
>>>
>>> [lspector at compute-1-1 clojush-launcher]$ lein run
>>> clojush.problems.demos.simple-regression
>>> Could not transfer artifact com.lowagie:itext:pom:2.1.7 from/to
>>> central (https://repo1.maven.org/maven2/): Received fatal alert:
>>> protocol_version
>>> Could not transfer artifact
>>> org.apache.xmlgraphics:batik-svggen:pom:1.8 from/to central
>>> (https://repo1.maven.org/maven2/): Received fatal alert:
>>> protocol_version
>>> Could not transfer artifact org.apache.xmlgraphics:batik-dom:pom:1.8
>>> from/to central (https://repo1.maven.org/maven2/): Received fatal
>>> alert: protocol_version
>>> This could be due to a typo in :dependencies or network issues.
>>> If you are behind a proxy, try setting the 'http_proxy' environment
>>> variable.
>>> [lspector at compute-1-1 clojush-launcher]$ lein upgrade
>>> The script at /home/lspector/bin/lein will be upgraded to the latest
>>> stable version.
>>> Do you want to continue [Y/n]? Y
>>>
>>> Upgrading...
>>>   % Total    % Received % Xferd  Average Speed   Time    Time    
>>> Time  Current
>>>                                  Dload  Upload   Total   Spent   
>>> Left  Speed
>>>   0     0    0     0    0     0      0      0 --:--:-- --:--:--
>>> --:--:--     0
>>> curl: (35) SSL connect error
>>> Failed to download
>>> https://github.com/technomancy/leiningen/raw/stable/bin/lein (exit
>>> code )
>>> It's possible your HTTP client's certificate store does not have the
>>> correct certificate authority needed. This is often caused by an
>>> out-of-date version of libssl. It's also possible that you're behind a
>>> firewall and haven't set HTTP_PROXY and HTTPS_PROXY.
>>>
>>>
>>>> On Oct 3, 2018, at 8:10 AM, Wm. Josiah Erikson
>>>> <wjerikson at hampshire.edu <mailto:wjerikson at hampshire.edu>> wrote:
>>>>
>>>> I think it should work now. I added -1 to the curl command line in
>>>> the lein script to force TLS.
>>>>
>>>> Let me know if it doesn't.
>>>>
>>>>     -Josiah
>>>>
>>>>
>>>>
>>>> On 10/2/18 7:30 PM, Thomas Helmuth wrote:
>>>>> I don't think I've ever seen the first error before, but I've
>>>>> definitely seen the second, I think on fly. I forget the solution.
>>>>> FWIW, both errors mention HTTP_PROXY.
>>>>>
>>>>> Tom
>>>>>
>>>>> On Tue, Oct 2, 2018 at 5:58 PM Lee Spector <lspector at hampshire.edu
>>>>> <mailto:lspector at hampshire.edu>> wrote:
>>>>>
>>>>>
>>>>>     Mostly for Josiah, but sending to the list in case anyone else
>>>>>     has insights.
>>>>>
>>>>>     Trying to run Clojure (via leiningen) on Fly for the first
>>>>>     time in months, and getting errors.
>>>>>
>>>>>     This feels familiar, but I can't seem to find a past thread in
>>>>>     which it was raised/addressed.
>>>>>
>>>>>     If I ssh to a node and cd into a Clojush directory and try to
>>>>>     run a demo I get:
>>>>>
>>>>>     [lspector at compute-1-1 clojush-launcher]$ lein run
>>>>>     clojush.problems.demos.simple-regression
>>>>>     Could not transfer artifact com.lowagie:itext:pom:2.1.7
>>>>>     from/to central (https://repo1.maven.org/maven2/): Received
>>>>>     fatal alert: protocol_version
>>>>>     Could not transfer artifact
>>>>>     org.apache.xmlgraphics:batik-svggen:pom:1.8 from/to central
>>>>>     (https://repo1.maven.org/maven2/): Received fatal alert:
>>>>>     protocol_version
>>>>>     Could not transfer artifact
>>>>>     org.apache.xmlgraphics:batik-dom:pom:1.8 from/to central
>>>>>     (https://repo1.maven.org/maven2/): Received fatal alert:
>>>>>     protocol_version
>>>>>     This could be due to a typo in :dependencies or network issues.
>>>>>     If you are behind a proxy, try setting the 'http_proxy'
>>>>>     environment variable.
>>>>>
>>>>>     Thinking that maybe I needed to upgrade leiningen I tried but
>>>>>     got this:
>>>>>
>>>>>     [lspector at compute-1-1 clojush-launcher]$ lein upgrade
>>>>>     The script at /home/lspector/bin/lein will be upgraded to the
>>>>>     latest stable version.
>>>>>     Do you want to continue [Y/n]? Y
>>>>>
>>>>>     Upgrading...
>>>>>       % Total    % Received % Xferd  Average Speed   Time    Time 
>>>>>        Time  Current
>>>>>                                      Dload  Upload   Total 
>>>>>      Spent    Left  Speed
>>>>>       0     0    0     0    0     0      0      0 --:--:--
>>>>>     --:--:-- --:--:--     0
>>>>>     curl: (35) SSL connect error
>>>>>     Failed to download
>>>>>     https://github.com/technomancy/leiningen/raw/stable/bin/lein
>>>>>     (exit code )
>>>>>     It's possible your HTTP client's certificate store does not
>>>>>     have the
>>>>>     correct certificate authority needed. This is often caused by an
>>>>>     out-of-date version of libssl. It's also possible that you're
>>>>>     behind a
>>>>>     firewall and haven't set HTTP_PROXY and HTTPS_PROXY.
>>>>>
>>>>>     Any thoughts or suggestions?
>>>>>
>>>>>     Thanks,
>>>>>
>>>>>      -Lee
>>>>>
>>>>>
>>>>>     --
>>>>>     Lee Spector, Professor of Computer Science
>>>>>     Director, Institute for Computational Intelligence
>>>>>     Hampshire College, Amherst, Massachusetts, 01002, USA
>>>>>     lspector at hampshire.edu <mailto:lspector at hampshire.edu>,
>>>>>     http://hampshire.edu/lspector/, 413-559-5352
>>>>>
>>>>>     _______________________________________________
>>>>>     Clusterusers mailing list
>>>>>     Clusterusers at lists.hampshire.edu
>>>>>     <mailto:Clusterusers at lists.hampshire.edu>
>>>>>     https://lists.hampshire.edu/mailman/listinfo/clusterusers
>>>>>
>>>>>
>>>>>
>>>>> _______________________________________________
>>>>> Clusterusers mailing list
>>>>> Clusterusers at lists.hampshire.edu
>>>>> https://lists.hampshire.edu/mailman/listinfo/clusterusers
>>>>
>>>> -- 
>>>> -----
>>>> Wm. Josiah Erikson
>>>> Associate Director of IT for Infrastructure
>>>> Network Engineer
>>>> System Administrator, School of CS
>>>> Hampshire College
>>>> Amherst, MA 01002
>>>>
>>>> pronouns: he/him/his
>>>> _______________________________________________
>>>> Clusterusers mailing list
>>>> Clusterusers at lists.hampshire.edu
>>>> <mailto:Clusterusers at lists.hampshire.edu>
>>>> https://lists.hampshire.edu/mailman/listinfo/clusterusers
>>>
>>> --
>>> Lee Spector, Professor of Computer Science
>>> Director, Institute for Computational Intelligence
>>> Hampshire College, Amherst, Massachusetts, 01002, USA
>>> lspector at hampshire.edu <mailto:lspector at hampshire.edu>,
>>> http://hampshire.edu/lspector/, 413-559-5352
>>>
>>>
>>>
>>> _______________________________________________
>>> Clusterusers mailing list
>>> Clusterusers at lists.hampshire.edu
>>> https://lists.hampshire.edu/mailman/listinfo/clusterusers
>>
>> -- 
>> Wm. Josiah Erikson
>> Associate Director of IT, Infrastructure Group
>> Network Engineer
>> System Administrator, School of CS
>> Hampshire College
>> Amherst, MA 01002
>> (413) 559-6091
>> pronouns: he/him/his
>> _______________________________________________
>> Clusterusers mailing list
>> Clusterusers at lists.hampshire.edu
>> <mailto:Clusterusers at lists.hampshire.edu>
>> https://lists.hampshire.edu/mailman/listinfo/clusterusers
>
> --
> Lee Spector, Professor of Computer Science
> Director, Institute for Computational Intelligence
> Hampshire College, Amherst, Massachusetts, 01002, USA
> lspector at hampshire.edu <mailto:lspector at hampshire.edu>,
> http://hampshire.edu/lspector/, 413-559-5352
>
>
>
> _______________________________________________
> Clusterusers mailing list
> Clusterusers at lists.hampshire.edu
> https://lists.hampshire.edu/mailman/listinfo/clusterusers

-- 
Wm. Josiah Erikson
Associate Director of IT, Infrastructure Group
Network Engineer
System Administrator, School of CS
Hampshire College
Amherst, MA 01002
(413) 559-6091
pronouns: he/him/his

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.hampshire.edu/pipermail/clusterusers/attachments/20181003/fd284797/attachment-0001.html>


More information about the Clusterusers mailing list