joeferraro / MavensMate-SublimeText

Sublime Text plugin for Salesforce developers. Aims to replace the Eclipse-based Force.com IDE.
http://mavensmate.com
GNU General Public License v3.0
290 stars 119 forks source link

Mavensmate proxy issues #527

Closed VishnuGoud closed 9 years ago

VishnuGoud commented 9 years ago

I have been trying to install Mavensmate within my corporate firewall from the past 6 days but no success.as of now i have done below steps

OS details: Windows 32bit

-> installed git and its working fine from the command prompt -> installed sublime Text 3 -> For proxy handling i have used cntlm authentication and am able to successfully clone repositories -> Installed Mavensmate using both 1).Installer file and 2).manual steps In both the cases it failed installing mm.exe in user folder but didnt throw any error.So i have manually copied the mm for windows package and pasted it in user folder. -> set the workspace path and proxy details in the settings file -> But when i start creating the project it gave me the below error "The local MavensMate server did not respond properly."

-> console message is as below [MAVENSMATE UI]: starting local MavensMate UI server Traceback (most recent call last): File "./urllib/request.py", line 1248, in do_open File "./http/client.py", line 1065, in request File "./http/client.py", line 1103, in _send_request File "./http/client.py", line 1061, in endheaders File "./http/client.py", line 906, in _send_output File "./http/client.py", line 844, in send File "./http/client.py", line 1202, in connect File "./http/client.py", line 808, in _tunnel OSError: Tunnel connection failed: 407 Proxy Authorization Required -> please help and atleast LMK whether it is possible to use MM behind firewall.

frankzimper commented 9 years ago

Is your browser configured to use the proxy even when you access URLs on localhost?

VishnuGoud commented 9 years ago

yes browser has proxy enabled and i have provided the same details in mavensmate user settings file.However for git i have configured cntlm authentication.its working fine from command prompt but when i open mm it tries downloading mm.exe file and fails due to proxy..is there anything am missing here?

frankzimper commented 9 years ago

First of all: Yes, it is possible to use MavensMate behind a corporate firewall. Though the details depend on your firewall configuration.

I am wondering about the message "The local MavensMate server did not respond properly." which you mentioned. Where does this show? In your browser? If so, please make sure that requests to localhost (aka 127.0.0.1) are not being handled by your proxy. Your browser should be able to talk with your local MavensMate installation without passing through your proxy (which can't forward requests to localhost anyway).

The stack trace you're mentioning hints at something different though. Does your proxy use NTLM authentication? IE and Chrome would handle that transparently and for git you mention you use cntlm. Have you tried using cntlm for MavensMate as well?

VishnuGoud commented 9 years ago

Thanks a lot for guidance frank.after configuring the git using cntl authentication i was still using the actual parent proxy in the browser because of which there was a conflict.i have replaced the proxy details with cntlm local host.it worked like a charm...:) thanks once again..