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

Unable to download repositories.json #151

Closed
Blacktiger opened this issue Jun 27, 2012 · 20 comments
Closed

Unable to download repositories.json #151

Blacktiger opened this issue Jun 27, 2012 · 20 comments

Comments

@Blacktiger
Copy link

I don't get any packages listed when I do Package Control: Install Package. In the console, I get the following lines:

Package Control: Error submitting usage information. URL error [Errno 10061] No connection could be made because the target machine actively refused it downloading https://sublime.wbond.net/submit?package_control_version=1.5.0&sublime_platform=windows&package=Package+Control&sublime_version=2210&version=1.5.0&operation=install.
reloading /C/Users/martzm/AppData/Roaming/Sublime Text 2/Packages/User/Package Control.sublime-settings
Package Control: Error downloading channel. URL error [Errno 10061] No connection could be made because the target machine actively refused it downloading https://sublime.wbond.net/repositories.json.
Package Control: Error downloading channel. URL error [Errno 10061] No connection could be made because the target machine actively refused it downloading https://sublime.wbond.net/repositories.json.
Package Control: No updated packages
  • If I manually go to repositories.json in the browser I do get what looks like a valid response.
  • My company uses a proxy server.
  • I also tried the test build of package control from here but I saw the same console output.
@atinypixel
Copy link

I have this same issue.

@schell
Copy link

schell commented Jun 27, 2012

I also have this issue.

@schell
Copy link

schell commented Jun 27, 2012

I was running an HTTP proxy (Charles) that was freaking out Package Control. It had something to do with SSL. I turned off the proxy (after reinstalling a bunch =P) and everything seems to work fine now.

@mannyishere
Copy link

I have the same issue.

@schlamar
Copy link
Contributor

schlamar commented Jul 6, 2012

@atinypixel @schell @mannyishere Have you all tried the testing version?

@Blacktiger Have you configured your proxy in Package Control settings?

@wbond IMO it is time to make the testing version an official release.

@atinypixel
Copy link

I don't have access to proxy settings info. IT does want employees knowing that stuff.

On Jul 6, 2012, at 1:13 AM, Marc Schlaichreply@reply.github.com wrote:

@atinypixel @schell @mannyishere Have you all tried the testing version?

@Blacktiger Have you configured your proxy in Package Control settings?

@wbond IMO it is time to make the testing version an official release.


Reply to this email directly or view it on GitHub:
#151 (comment)

@wbond
Copy link
Owner

wbond commented Jul 6, 2012

I've posted a new version of Package Control (1.5.0.11) just today at https://sublime.wbond.net/testing/Package%20Control.sublime-package. Please:

  1. In Sublime Text, click the Preferences > Browse Packages… menu entry
  2. Browse up a folder and then into the Installed Packages folder
  3. Download http://sublime.wbond.net/testing/Package%20Control.sublime-package and copy it into the Installed Packages directory
  4. Restart Sublime Text

Also note that in the new version, there are separate settings for proxy_username and proxy_password which you may need to set.

This new version adds support for basic, digest and ntlm auth for proxies. Unfortunately I don't have any of these to test against, but I am hoping it will help with your issue, and you can report any issues back.

@Blacktiger
Copy link
Author

I downloaded the new testing package. I've attempted to configure the proxy server, but I have no idea what I am doing and we use automatic proxy settings on Windows in my environment. I did find out an alternative proxy server that uses port 9119 but I'm not sure if I configured that correctly.

@schlamar
Copy link
Contributor

schlamar commented Jul 6, 2012

@Blacktiger find your proxy settings in Windows under Control -> Internet settings -> Connections -> LAN settings

@Blacktiger
Copy link
Author

Automatic is checked there, so that doesn't really help.

@wbond
Copy link
Owner

wbond commented Jul 6, 2012

Well, according to the python documentation, to use the automatic proxy settings, just don't enter any proxy info. To accomplish this with Package Control, just don't set the http_proxy or https_proxy settings.

@schlamar
Copy link
Contributor

schlamar commented Jul 6, 2012

@wbond I am not sure at this point. The documentation states that urllib2 is able to get the proxy settings automatically from the registry. But this does not imply that it can deal with automatic proxy discovery...

@wbond
Copy link
Owner

wbond commented Jul 6, 2012

Alright, well, unfortunately trying to integrate something like pacparser is too much work right now. I need to get the current staged version out to fix a bunch of bugs that have been present for a while.

As long as I don't hear of any bugs affecting users who have gotten it successfully running on some version in the past, I am planning on launching version 1.5.0.12 later tonight, or some time this weekend.

@mannyishere
Copy link

I am using CNTLM. Using the testing version works after changing proxy settings in Package Control. The latest prod version doesn't work.

@schlamar
Copy link
Contributor

schlamar commented Jul 9, 2012

@atinypixel If you don't have automatic proxy discovery it should work anyway.

@Blacktiger
Copy link
Author

Going to http://proxy seems to have given me the script that my company uses for automatic proxy. I think that I'm using "iprism.mycompany.com:3128" for the proxy host. I tried manually configuring with that host/port combo but no matter what I do I get a 407 Proxy Authentication Required.

@wbond
Copy link
Owner

wbond commented Jul 11, 2012

@Blacktiger Well, looking at the iPrism documentation, it seems it could use a whole bunch of different auth methods. Can you try setting the proxy_username and proxy_password settings (in Package Control > Settings - User) to your Windows login and password? I'd be curious if you could just try at least once to see if that is what is required.

@Blacktiger
Copy link
Author

Ok, I was finally able to get it to work. I needed to put http:// in front of the proxy. My settings look like this for anyone else having this problem:

"http_proxy": "http://iprism.mycompany.com:3128",
"proxy_username": "username", // (windows username)
"proxy_password": "password", // (windows password)

@brandondrew
Copy link

@Blacktiger : you're hitting CNTLM, but still passing your Windows login info? Is that a mistake or did you really need to do that to make it work?

@Blacktiger
Copy link
Author

I really needed to do that to get it to work. I am no longer using that configuration though. We have an alternative proxy at my company that doesn't require a username/password so I'm using that now and with the latest version of package control it works for me.

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

7 participants