-
Notifications
You must be signed in to change notification settings - Fork 188
gem install fails behind firewall #340
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
Comments
I'm seeing the same issue, but not behind a firewall. Looks like the issue may be that the install is trying to download ftp://ftp.freetds.org/pub/freetds/stable/freetds-1.00.tar.bz2, but ftp.freetds.org appears to be down currently. |
Same issue here |
This is correct the failure above is because ftp.freetds.org is down. That problem can be tracked here: FreeTDS/freetds#101 (for lack of a better place). If it doesn't come back reasonably soon maybe we'll have to see if we can fetch source versions from their github repo. |
You can use |
In the meanwhile looks like the vendor's ftp server is back |
Ah, thanks! I never thought to check the actual download url being up. 😅 |
I'll go ahead and close this since I agree with @coderjoe that the original error was correct. I think the issue of alternate source is probably orthogonal, but feel free to reopen if you think there's another thing to fix here. Thanks! |
In a docker context and from a machine behind a firewall that restricts traffic to a gem proxy server and doesn't allow any other outbound requests, I see the failure below in the install logs.
I think what is going on is that if tiny_tds doesn't find freetds dev headers (and of course the lib) installed, it will attempt to fetch FreeTDS source (or binary?) and build/install it in the gem subdir. If so, then the reason I see an
ECONNRESET
is because the outbound request for FreeTDS source/binary is being blocked by the firewall.What do you think?
If so, the only fix I could suggest would be trapping the lowlevel failure to fetch and raising a clearer error: "Couldn't retrieve FreeTDS source/binary. You must install FreeTDS manually before continuing and use the --with-freetds-{dir,include,bin} options" (whatever the syntax actually is).
Thanks!
The text was updated successfully, but these errors were encountered: