Closed jablub closed 11 years ago
Does the wiki page on proxies have the answer? https://github.com/technomancy/leiningen/wiki/HTTP-Proxies
Morning Phil Unfortunately that did no help. Which was sad since the .profile was the one place I hadn't set the proxy This damn proxy is a nightmare on linux systems, millions of different places to set it. Just to recap from what I understand of the install instructions - I don't have leiningen 1 installed. I have the script in my ~/bin dir. When I run it it downloads the leiningen jar. It is after this that it fails.
The self-install option - does that do anything different?
Could the NTLM auth in the error message have something to do with it since it's not on a windows system??
Thanks for your help.
Regards Andrew
On Tue, Jun 4, 2013 at 7:40 PM, Phil Hagelberg notifications@github.comwrote:
Does the wiki page on proxies have the answer? https://github.com/technomancy/leiningen/wiki/HTTP-Proxies
— Reply to this email directly or view it on GitHubhttps://github.com/technomancy/leiningen/issues/1204#issuecomment-18926027 .
Try this: before lunching lein, type the following command:
export http_proxy=http://username:password@proxy:port
Sadly this did not work either. It's as if the apache code is not picking it up or looking in another place. I've got the proxy configured in the maven settings , in the apt config , as environment variables (even tried suggestion above on top of already having it there) , in the .profile , .wgetrc , .bashrc and /etc/environment files Running out of places really... Thanks for the help.
Andrew
On Wed, Jun 5, 2013 at 3:46 PM, Roberto Mannai notifications@github.comwrote:
Try this: before lunching lein, type the following command:
export http_proxy=http://username:password@proxy:port
— Reply to this email directly or view it on GitHubhttps://github.com/technomancy/leiningen/issues/1204#issuecomment-18976271 .
you can check the following link, maven behind NTLM: http://thiranjith.com/2012/10/31/how-to-configure-maven-to-work-with-ntlm-proxies/
Unfortunately it is not easy reproduce this kind of problems (I am behind a proxy, but not a NTLM one). If you can run successfully the class on (*), it should be suffice to run the java command with a system option: -Dhttp.auth.ntlm.domain=MYDOMAIN
However IMHO this is not a lein issue.
Hello, Apologies for long replies - time zones. I agree this is not a lein issue. I have managed to get the code in (*) to fail. I shall try the cntlm proxy approach and let you know if I had success. Thanks for the help. Andrew
Hello, So after hours of hair turning grey I finally managed to get it working. I installed cntlm as a local proxy - once I got that working all was fine.
Ok. Did you follow the guide on http://docs.codehaus.org/display/MAVENUSER/Configuring+Maven+behind+an+NTLM+proxy ?
If you have a solution maybe you could describe it on the wiki?
It seemed the maven settings were not a problem - it was more the command line proxy settings. I found that wget gave me the same error, so set up cntlm and got wget working and then the lein install went smoothly. I shall add a section to the wiki if you like.
Added a section at the bottom of the proxies page in the wiki. Cheers.
Greeting, dear sirs,
I have this problem, too, while the solution didn't help.
Here is the error message:
Could not transfer artifact incanter:incanter-svg:pom:1.5.7-SNAPSHOT from/to clo jars (https://clojars.org/repo/): Not authorized by proxy , ReasonPhrase:Proxy A uthentication Required ( Forefront TMG requires authorization to fulfill the req uest. Access to the Web Proxy filter is denied. ).
Environment: I run leiningen behind proxy(*.company) and firewall (Forefront TMG) on Windows 7. And I am sure that my manager gave me the authority to access to the central repo servers. I only have domain network activated. (but I can go to public via proxy.)
manual: I can download the jar manually from central repos. I manually set up basic repl environment for Emacs, while I still can't do several things like 'lein test' , './script/install' ... and so on.
about proxy, what I had been doing:
http_proxy=http://username:password@proxy:port https_proxy=http://username:password@proxy:port http_noproxy=".example1.com|_.example2.com|*.example3.com" forward-socks5 / proxy_host:proxy_port .
other: I use wget with no problem
The
export TRAMPOLINE_FILE line failed in the install script when I ran behind a proxy.
Not sure where to set proxy credentials for org.apache.http.auth. on linux
andrew.potgieter.mit@gmail.com
Jun 04, 2013 7:25:09 PM org.apache.http.client.protocol.RequestAuthenticationBase process WARNING: NTLM authentication error: Credentials cannot be used for NTLM authentication: org.apache.http.auth.UsernamePasswordCredentials Jun 04, 2013 7:25:09 PM org.apache.http.client.protocol.RequestAuthenticationBase process WARNING: NTLM authentication error: Credentials cannot be used for NTLM authentication: org.apache.http.auth.UsernamePasswordCredentials Could not transfer artifact org.clojure:tools.nrepl:pom:0.2.3 from/to central (http://repo1.maven.org/maven2/): Not authorized by proxy , ReasonPhrase:Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ). Could not transfer artifact clojure-complete:clojure-complete:pom:0.2.3 from/to central (http://repo1.maven.org/maven2/): Not authorized by proxy , ReasonPhrase:Proxy Authentication Required ( Forefront TMG requires authorization to fulfill the request. Access to the Web Proxy filter is denied. ). This could be due to a typo in :dependencies or network issues.