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

Scribus cask fails to download dmg #197958

Closed
6 tasks done
apastuszak opened this issue Jan 11, 2025 · 13 comments
Closed
6 tasks done

Scribus cask fails to download dmg #197958

apastuszak opened this issue Jan 11, 2025 · 13 comments

Comments

@apastuszak
Copy link

Verification

Description of issue

When I try to upgrade Scribus, I get an error that it could not download the dmg.

MacBookPro ~ [1]> brew upgrade --cask scribus                                                  12.4s  Sat Jan 11 13:55:31 2025
==> Upgrading 1 outdated package:
scribus 1.6.2 -> 1.6.3
==> Upgrading scribus
==> Downloading https://downloads.sourceforge.net/scribus/scribus/1.6.3/scribus-1.6.3-arm64.dmg
curl: (35) LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version

==> Purging files for version 1.6.3 of Cask scribus
Error: scribus: Download failed on Cask 'scribus' with message: Download failed: https://downloads.sourceforge.net/scribus/scribus/1.6.3/scribus-1.6.3-arm64.dmg

Command that failed

brew upgrade --cask scribus

Output of command with --verbose --debug

/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromAPILoader): loading scribus
==> Upgrading 1 outdated package:
/opt/homebrew/Library/Homebrew/brew.rb (Cask::CaskLoader::FromPathLoader): loading /opt/homebrew/Caskroom/scribus/.metadata/1.6.2/20240618002157.456/Casks/scribus.json
scribus 1.6.2 -> 1.6.3
==> Started upgrade process for Cask scribus
==> Upgrading scribus
==> Printing caveats
==> Cask::Installer#fetch
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.4.15\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.2\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 -V
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.4.15\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.2\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://downloads.sourceforge.net/scribus/scribus/1.6.3/scribus-1.6.3-arm64.dmg
==> Downloading https://downloads.sourceforge.net/scribus/scribus/1.6.3/scribus-1.6.3-arm64.dmg
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.4.15\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.2\)\ curl/8.7.1 --header Accept-Language:\ en --retry 3 --fail --location --silent --head https://downloads.sourceforge.net/scribus/scribus/1.6.3/scribus-1.6.3-arm64.dmg
/usr/bin/env /opt/homebrew/Library/Homebrew/shims/shared/curl --disable --cookie /dev/null --globoff --show-error --user-agent Homebrew/4.4.15\ \(Macintosh\;\ arm64\ Mac\ OS\ X\ 15.2\)\ curl/8.7.1 --header Accept-Language:\ en --fail --retry 3 --remote-time --output /Users/andy/Library/Caches/Homebrew/downloads/a92cc70fa9de193df8d66d56a756ddd1d635e6c0afd21f7ad5ddab52103ac9dd--scribus-1.6.3-arm64.dmg.incomplete --location https://downloads.sourceforge.net/scribus/scribus/1.6.3/scribus-1.6.3-arm64.dmg
  % 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) LibreSSL/3.3.6: error:1404B42E:SSL routines:ST_CONNECT:tlsv1 alert protocol version
==> Purging files for version 1.6.3 of Cask scribus
Error: scribus: Download failed on Cask 'scribus' with message: Download failed: https://downloads.sourceforge.net/scribus/scribus/1.6.3/scribus-1.6.3-arm64.dmg
/opt/homebrew/Library/Homebrew/download_strategy.rb:433:in `rescue in fetch'
/opt/homebrew/Library/Homebrew/download_strategy.rb:430:in `fetch'
/opt/homebrew/Library/Homebrew/downloadable.rb:103:in `fetch'
/opt/homebrew/Library/Homebrew/cask/download.rb:60:in `fetch'
/opt/homebrew/Library/Homebrew/cask/installer.rb:195:in `download'
/opt/homebrew/Library/Homebrew/cask/installer.rb:74:in `fetch'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:195:in `upgrade_cask'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:116:in `block in upgrade_casks'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:115:in `each'
/opt/homebrew/Library/Homebrew/cask/upgrade.rb:115:in `upgrade_casks'
/opt/homebrew/Library/Homebrew/cmd/upgrade.rb:257:in `upgrade_outdated_casks'
/opt/homebrew/Library/Homebrew/cmd/upgrade.rb:137:in `run'
/opt/homebrew/Library/Homebrew/brew.rb:94:in `<main>'

Output of brew doctor and brew config

## brew doctor


Warning: Some installed formulae are deprecated or disabled.
You should find replacements for the following formulae:
  [email protected]

Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  pnpm
  node

brew config

HOMEBREW_VERSION: 4.4.15
ORIGIN: https://github.com/Homebrew/brew
HEAD: b6fafba4864d65acabf966415e14b2dd86d81e1a
Last commit: 7 days ago
Branch: stable
Core tap JSON: 11 Jan 19:01 UTC
Core cask tap JSON: 11 Jan 19:01 UTC
HOMEBREW_PREFIX: /opt/homebrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 10
Homebrew Ruby: 3.3.6 => /opt/homebrew/Library/Homebrew/vendor/portable-ruby/3.3.6/bin/ruby
CPU: 10-core 64-bit arm_firestorm_icestorm
Clang: 16.0.0 build 1600
Git: 2.48.0 => /opt/homebrew/bin/git
Curl: 8.7.1 => /usr/bin/curl
macOS: 15.2-arm64
CLT: 16.2.0.0.1.1733547573
Xcode: N/A
Rosetta 2: false


### Output of `brew tap`

```shell
d12frosted/emacs-plus
homebrew/services
osx-cross/arm
osx-cross/avr
qmk/qmk
railwaycat/emacsmacport
@bevanjkay
Copy link
Member

I haven't been able to replicate this locally, can you confirm if the issue still exists, and it wasn't a transient network issue?

@apastuszak
Copy link
Author

I'm still getting the error. And when I go to the URL from the cask:

https://downloads.sourceforge.net/scribus/scribus/1.6.3/scribus-1.6.3-arm64.dmg

in Firefox, I get the following error:


Secure Connection Failed

An error occurred during a connection to downloads.sourceforge.net. SSL received a record that exceeded the maximum permissible length.

Error code: SSL_ERROR_RX_RECORD_TOO_LONG

    The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.
    Please contact the website owners to inform them of this problem.

@stefanb
Copy link
Member

stefanb commented Jan 13, 2025

I get the same problem on one of my Macs.
Chrome reports a bit more vague error message: ERR_SSL_PROTOCOL_ERROR.

@stefanb
Copy link
Member

stefanb commented Jan 13, 2025

my curl is:

curl --version
curl 8.7.1 (x86_64-apple-darwin24.0) libcurl/8.7.1 (SecureTransport) LibreSSL/3.3.6 zlib/1.2.12 nghttp2/1.62.0
Release-Date: 2024-03-27
Protocols: dict file ftp ftps gopher gophers http https imap imaps ipfs ipns ldap ldaps mqtt pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: alt-svc AsynchDNS GSS-API HSTS HTTP2 HTTPS-proxy IPv6 Kerberos Largefile libz MultiSSL NTLM SPNEGO SSL threadsafe UnixSocke

Verbose download attempt failure:

curl -vvv https://downloads.sourceforge.net/scribus/scribus/1.6.3/scribus-1.6.3-arm64.dmg
* Host downloads.sourceforge.net:443 was resolved.
* IPv6: 2606:4700::6812:c95, 2606:4700::6812:d95
* IPv4: 104.18.13.149, 104.18.12.149
*   Trying [2606:4700::6812:c95]:443...
* Connected to downloads.sourceforge.net (2606:4700::6812:c95) port 443
* ALPN: curl offers h2,http/1.1
* (304) (OUT), TLS handshake, Client hello (1):
*  CAfile: /etc/ssl/cert.pem
*  CApath: none
* Send failure: Broken pipe
* LibreSSL/3.3.6: error:02FFF020:system library:func(4095):Broken pipe
* Closing connection
* Send failure: Broken pipe
curl: (35) Send failure: Broken pipe

@stefanb
Copy link
Member

stefanb commented Jan 13, 2025

When i tried downgrading to plain http, opening http://downloads.sourceforge.net in Firefox i got redirected to my TP-Link router's block page:
image

After temporarily disabling the Trend Micro malicious content filter in my TP-Link router's settings:
image

the brew upgrade worked without any problems.

@apastuszak, do you use TP-Link router on your connection, or some other content filter?

@apastuszak
Copy link
Author

apastuszak commented Jan 13, 2025 via email

@stefanb
Copy link
Member

stefanb commented Jan 13, 2025

@apastuszak does that Asus router have any malicious content or antivirus filtering feature?

@stefanb
Copy link
Member

stefanb commented Jan 13, 2025

@apastuszak, please see if you have this: https://www.asus.com/support/faq/1008719/#a2 and try disabling it for test.

@apastuszak
Copy link
Author

I had to whitelist download.sourceforge.net. It was blocking it as a "disease vector."

Once I did that, I could download the files.

@stefanb
Copy link
Member

stefanb commented Jan 14, 2025

Thanks for confirming it was basically a network issue.
Now we should figure out what can be done about it (apart from advising users to try disabling their network protections).

@bevanjkay
Copy link
Member

I think it depends on the nature of the issue.
If the issue exists in the browser, as well as in Homebrew, then my suggestion would be that it is out of scope to try to work around.

@krehel
Copy link
Member

krehel commented Jan 14, 2025

Agreed. This seems like a problem with classifying the domain as malicious in some network vendor products. Thanks @stefanb for the confirm.

Given this happens outside of Homebrew, I don't think there's much we can offer for support except commenting that allow-listing potential problem domains may solve the issue, which is an individual risk decision.

@krehel krehel closed this as completed Jan 14, 2025
@krehel krehel closed this as not planned Won't fix, can't repro, duplicate, stale Jan 14, 2025
@apastuszak
Copy link
Author

So, we have two different vendor products now that block sourceforge. Obvioulsy not a Homebrew issue, but can cause problems. This may warrant a FAQ entry, if Homebrew has a FAQ.

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

4 participants