sdkman / sdkman-cli

The SDKMAN! Command Line Interface
https://sdkman.io
Apache License 2.0
5.97k stars 629 forks source link

Bug: Cygwin: curl can't write to .sdkman/tmp: Failed to open /home/<user>/.sdkman/tmp/groovy-4.0.19.headers.tmp #1282

Open keithdtyler opened 4 months ago

keithdtyler commented 4 months ago

Bug report

Trying to install groovy using sdkman on cygwin fails with errors.

curl: Failed to open /home/romulus/.sdkman/tmp/groovy-4.0.19.headers.tmp curl: (23) Failed writing received data to disk/application grep: /home/romulus/.sdkman/tmp/groovy-4.0.19.headers.tmp: No such file or directory mv: cannot stat '/home/romulus/.sdkman/tmp/groovy-4.0.19.bin': No such file or directory

I have gone into Windows file settings to clear out special perms and set Everyone to Full Access with recursive apply, no help.

To reproduce $ sdk install groovy

System info

Windows 10 Home 22H2 Cygwin 3.5.1 GNU bash, version 5.2.21(1)-release (x86_64-pc-cygwin) SDKMAN 5.18.2

kr5ture commented 3 months ago

Hi. I have encountered such issue once some time ago and it was antivirus fault (Avast). cURL were unable to resolve secure connection using TLS. Try to download manually and see if cURL is able to open valid connection and download content:

$ curl --verbose -O https://groovy.jfrog.io/artifactory/dist-release-local/groovy-zips/apache-groovy-binary-4.0.9.zip
kr5ture commented 3 months ago

Maybe this is the case. As far as I remember, I was using MSYS2 at the time. It seemed that Avast quarantined some files related to cURL, which made it impossible to open secure connections, resulting in SDKman issues. I stopped Avast for 10 minutes, reinstalled MSYS2, and everything was working well 🤔

On Wed, Mar 6, 2024, 22:15 Keith Tyler @.***> wrote:

Ugh. I do have Avast.

— Reply to this email directly, view it on GitHub You are receiving this because you commented.Message ID: @.***>