VerySleepy / verysleepy

Very Sleepy, a sampling CPU profiler for Windows
http://www.codersnotes.com/sleepy
GNU General Public License v2.0
1.07k stars 104 forks source link

build.cmd not working (Can't download files from sourceforge) #110

Closed UnrealKaraulov closed 1 year ago

UnrealKaraulov commented 1 year ago

build.cmd not working (Can't download files from sourceforge)

CyberShadow commented 1 year ago

Which file is failing to download? Please post your logs.

UnrealKaraulov commented 1 year ago

Which file is failing to download? Please post your logs.

build.cmd: Building Dr. MinGW
drmingw_build: Found 7-Zip at "C:\Program Files\7-Zip\7z.exe"
Downloading i686-6.3.0-release-win32-dwarf-rt_v5-rev1.7z...
Downloading https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/6.3.0/threads-win32/dwarf/i686-6.3.0-release-win32-dwarf-rt_v5-rev1.7z/download
  c:\Users\Admin\Downloads\verysleepy-master\thirdparty\/mingw/i686-6.3.0-release-win32-dwarf-rt_v5-rev1.7z
Исключение при вызове "DownloadFile" с "2" аргументами: "Невозможно соединиться с удаленным сервером"
строка:1 знак:1
+ (New-Object Net.WebClient).DownloadFile('https://sourceforge.net/proj ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
    + FullyQualifiedErrorId : WebException
CyberShadow commented 1 year ago

It works for me. It's possible that SourceForge is selecting a mirror that isn't working for you. Please try again or maybe try using a proxy or VPN in case it's some kind of routing issue.

If it's a connection issue you could try diagnosing it with: curl -v -L -O https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/6.3.0/threads-win32/dwarf/i686-6.3.0-release-win32-dwarf-rt_v5-rev1.7z/download.

UnrealKaraulov commented 1 year ago

curl -v -L -O https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/6.3.0/threads-win32/dwarf/i686-6.3.0-release-win32-dwarf-rt_v5-rev1.7z/download.


c:\Users\Admin\Downloads\verysleepy-master>curl
curl: try 'curl --help' for more information

c:\Users\Admin\Downloads\verysleepy-master>curl -v -L -O https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/6.3.0/threads-win32/dwarf/i686-6.3.0-release-win32-dwarf-rt_v5-rev1.7z/download
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 104.18.11.128...
* TCP_NODELAY set
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0* Connected to sourceforge.net (104.18.11.128) port 443 (#0)
* schannel: SSL/TLS connection with sourceforge.net port 443 (step 1/3)
* schannel: checking server certificate revocation
* schannel: sending initial handshake data: sending 186 bytes...
* schannel: sent initial handshake data: sent 186 bytes
* schannel: SSL/TLS connection with sourceforge.net port 443 (step 2/3)
* schannel: failed to receive handshake, need more data
* schannel: SSL/TLS connection with sourceforge.net port 443 (step 2/3)
* schannel: encrypted data got 1077
* schannel: encrypted data buffer: offset 1077 length 4096
* schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - Функция отзыва не смогла произвести проверку отзыва для сертификата.
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
* Closing connection 0
* schannel: shutting down SSL/TLS connection with sourceforge.net port 443
* schannel: clear security context handle
curl: (35) schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - Функция отзыва не смогла произвести проверку отзыва для сертификата.

Bad SSL certificate?

CyberShadow commented 1 year ago

Ah, I see it uses your OS certificate store (PowerShell would as well). This can happen if your OS trusted root certificate store is out of date. I'm not sure how to fix that, maybe ensure you're using a recent version of Windows and all updates from Windows Update are installed?

CyberShadow commented 1 year ago

Here was a similar error (due to TLS version support): https://github.com/VerySleepy/verysleepy/issues/82#issuecomment-875363315

UnrealKaraulov commented 1 year ago

I tried but can't fix it :(

This is unfixable error ?( No alternative sources to download this files ?

CyberShadow commented 1 year ago

You could try downloading the file with a web browser to the mingw directory, and build.cmd will use the existing file.

UnrealKaraulov commented 1 year ago

You could try downloading the file with a web browser to the mingw directory, and build.cmd will use the existing file.

I can't do it, can't found needed files in sourceforge. Maybe blocked in my country?

CyberShadow commented 1 year ago

It's the same link, just open it in Firefox or something.

UnrealKaraulov commented 1 year ago

It's the same link, just open it in Firefox or something.

Nothing, file not found.

CyberShadow commented 1 year ago

Just to be clear, are we talking about this link?

https://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/mingw-builds/6.3.0/threads-win32/dwarf/i686-6.3.0-release-win32-dwarf-rt_v5-rev1.7z/download

When I open it in a web browser, I get a webpage which starts a download after 5 seconds.

image

What do you get?

UnrealKaraulov commented 1 year ago

I get file not found, i can show my screenshot tonight

UnrealKaraulov commented 1 year ago

@CyberShadow after update windows to 11 preview, now no problems.