-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Julia won't pull from https behind a corporate proxy #14167
Comments
looking at the above i get the impression, you are using Pkg with libgit2, so there is a possiblity that your configuration of the command line git (calling git config) is not applied |
Thanks for the quick reply :) Yeah I think so too... Any idea how I can change the libgit2 calls in julia? is there a Pkg method for changing the config? |
There seems to be some config in Libgit2 and it might be a idea to connect to this |
I am having a similar problem with On Edit: I also tried @vtjnash's suggestion from #13952 , |
it's |
Should be fixed in #17783. Please try the latest nightlies tomorrow. |
Is this fixed? Version 0.5.0 is now on the Ubuntu PPA and I got in trouble yesterday because I'm behind a proxy. So I had to revert to 0.4.5 version on the official Ubuntu repos and lock the version. I'll keep it lock until the PPA version gets the proxy fixed. |
Please do not use ubuntu PPAs and use the generic linux binaries instead. |
@staticfloat Do you think on the ubuntu PPA page, we can put a word about using the generic linux binaries for such cases? Alternately, perhaps our custom PPAs could repackage all the necessary libraries and not use the system ones. |
@ViralBShah , I don't understand this. You do announce the PPA on the Downloads section of the Julia webpage under Platform Specific Instructions. If the PPAs are not meant for the general user, this (and the reason) should be explicit somewhere. Or simply change the PPA name to Debian-like "testing" and "unstable", so that it is clear that only the generic binaries are the ones considered stable. In any case, I would like to have a stable PPA distribution available to help me keep it updated. Or you could try snap packaging... ? |
Unfortunately, issues with standard configurations of many libraries, combined with distro policies requiring the use of shared versions of libraries when they exist, make it essentially impossible to have a fully working Julia in most distros, including Debian and Ubuntu. We'll continue to work towards improving this situation, but don't expect it to be smooth in the near future. |
To get a sense of how many libraries need patches to work correctly, check out this directory of patches that we apply when building Julia's dependencies from source: We do upstream these patches, but it takes a while for projects to review them, let alone for the fixes to make it into distros. Upstream projects also vary in how willing they are to take patches. |
Not just patches, but Julia also has pretty strict requirements on consistent versions and options in how we build things for it to all work correctly. Sorry we haven't removed the PPA from the platform specific downloads page, we should have done that a while ago and replaced it with "download and untar the generic binaries." Distro specific builds or packaging are maintained by volunteer contributors on a best effort level, and anywhere their build configuration causes problems we have to recommend that people not use them. There are many distros other than ubuntu out there, and our generic binaries work on the majority of them. Auto updating is a double edged sword, as downgrading to an old build is not possible from a PPA. |
But it's possible from Copr using |
Yeah, the level of comfort I have with recommending distro packages is directly proportional to how actively involved their maintainer is with Julia development. Your Fedora packages are usually in pretty good shape because you stay on top of things, like Elliot used to have much more time to do than he has recently. There's a licensing issue with the system libgit2 in debian and openssl, see discussion at libgit2/libgit2#3462 (comment) and #17661. Frustratingly there's code that implements a solution that everyone other than the maintainers of libgit2 has said they would be happy with, but the libgit2 maintainers have been very quiet in response to the question of "would you reconsider a reopened version of this." |
@gersonjferreira The PPA, like many PPAs, is a community-supported effort, which is a fancy way of saying that it's not an official release and does not go through the same testing as the generic linux binaries available from the julia download page, which is why @ViralBShah suggests using the generic Linux binaries. Yes, there are advantages/disadvantages to both, and I will certainly be working on debugging why exactly the PPA version doesn't seem to honor proxy settings properly, but for the short-term, the generic linux binaries are the best solution. Returning to the matter at hand, I'm having difficulty reproducing the proxy issue on my local machine, mostly because I'm not certain I've ever actually used a proxy with git. The main issue for this is here, feel free to follow this thread to see when it will be fixed: staticfloat/julia-debian#3 |
ok, I understand the difficulties. But them you should warn people about it. Once the proxy had fail here for me, I had to hurry and tell my students (all new to Linux) to lock the version on the apt config. What about snap packages for the generic binary files? Could be a much better way to distribute them. But this is out of topic. Regarding the PPA and proxy issue, I thank you all for the attention. I'll go back to the generic binaries for now. Cheers. |
how many distros support snap packages? are they installable on centos 6 without having root access? if not, we're likely going to stick with the tarball approach. maybe switch to a better compression than gzip at some point. |
Reading up on it, looks like it would be pretty trivial to wrap the existing generic Linux binaries into a snap package. Unless there's a lot of demand for this format I don't think we're about to start building and distributing these ourselves, but it would be an easy contribution for someone in the community to do - as long as there's some mechanism of verifying the included contents have the same checksum as our official posted binaries, anyway. |
I have updated the platform specific instructions page about the pitfalls of using the distro packages. JuliaLang/www_old.julialang.org@ab16b68 I think the right thing for the distro packages that are provided via ppa and copr is to bundle everything the generic binaries do. |
|
@ViralBShah I disagree. Things are working pretty well in Fedora/RHEL7 without bundling libraries other than libuv and libunwind. I don't see the point of bundling everything when there are no serious bugs in distro packages. Else there's little point in providing packages in the first place. |
What about LLVM patches? |
Hi,
I've been experiencing some dificulty using Pkg.init() and Pkg.add() behind a corporate proxy. See below...
I've tried the
git config --global https.proxy <comeproxy>
and alsogit config --global url."git://".insteadOf https://"
, i've tried configuring environment variables in the shell. I've even tried issuing Pkg.init() with the full url, replacing https with git or http. I'm a bit stuck at the moment. I can't see any reason why this shouldn't work behind our proxy.Any ideas guys?
Cheers,
Morgan
The text was updated successfully, but these errors were encountered: