wbond / package_control

The Sublime Text package manager
https://packagecontrol.io
4.8k stars 816 forks source link

Cannot Install Packages (errno 12029) #737

Closed ghost closed 10 years ago

ghost commented 10 years ago

Platform: Windows 7 64bit, ST3 I have not been able to install any packages or update them for like 2 weeks, I have a lot of packages already installed but something seems to have changed. This is what I have since I open the error log.

DPI scale: 1 startup, version: 3059 windows x64 channel: stable executable: /C/Program Files/Sublime Text 3/sublime_text.exe working dir: /C/Program Files/Sublime Text 3 packages path: /C/Users/Photon/AppData/Roaming/Sublime Text 3/Packages state path: /C/Users/Photon/AppData/Roaming/Sublime Text 3/Local hardware concurrency: 8 zip path: /C/Program Files/Sublime Text 3/Packages zip path: /C/Users/Photon/AppData/Roaming/Sublime Text 3/Installed Packages found 46 files for base name Default.sublime-keymap found 6 files for base name Default.sublime-mousemap found 79 files for base name Main.sublime-menu loading bindings loading pointer bindings found 1 files for base name Eightlime Dark.sublime-theme Errors parsing theme: settings must be an array theme loaded app ready wrote startup cache, added files: 2 orphaned files: 0 total files: 480 cache hits: 478 pre session restore time: 0.210149 Loading dictionary Packages/Language - English/en_US.dic startup time: 0.269149 first paint time: 0.272149 unknown include #documentation unknown include #documentation unknown include #documentation unknown include #documentation unknown include #documentation unknown include #documentation unknown include #documentation unknown include #documentation unknown include #documentation launching: /C/Program Files/Sublime Text 3/plugin_host.exe reloading plugin Default.block reloading plugin Default.comment reloading plugin Default.copy_path reloading plugin Default.delete_word reloading plugin Default.detect_indentation reloading plugin Default.duplicate_line reloading plugin Default.echo reloading plugin Default.exec reloading plugin Default.fold reloading plugin Default.font reloading plugin Default.goto_line reloading plugin Default.history_list loaded 3921 snippets reloading plugin Default.indentation reloading plugin Default.kill_ring reloading plugin Default.mark reloading plugin Default.new_templates reloading plugin Default.open_file_settings reloading plugin Default.open_in_browser reloading plugin Default.pane reloading plugin Default.paragraph reloading plugin Default.paste_from_history reloading plugin Default.save_on_focus_lost reloading plugin Default.scroll reloading plugin Default.set_unsaved_view_name reloading plugin Default.side_bar reloading plugin Default.sort reloading plugin Default.swap_line reloading plugin Default.switch_file reloading plugin Default.symbol reloading plugin Default.transform reloading plugin Default.transpose reloading plugin Default.trim_trailing_white_space reloading plugin CSS.css_completions reloading plugin Diff.diff reloading plugin HTML.encode_html_entities reloading plugin HTML.html_completions reloading plugin AAAPackageDev.AAA [AAAPackageDev] Added C:\Users\Photon\AppData\Roaming\Sublime Text 3\Installed Packages\AAAPackageDev.sublime-package\Lib to sys.path. [AAAPackageDev] Added C:\Users\Photon\AppData\Roaming\Sublime Text 3\Installed Packages\AAAPackageDev.sublime-package\Lib_py3 to sys.path. reloading plugin AAAPackageDev.build_sys_dev reloading plugin AAAPackageDev.commands_file_dev reloading plugin AAAPackageDev.completions_dev reloading plugin AAAPackageDev.file_conversion reloading plugin AAAPackageDev.package_dev reloading plugin AAAPackageDev.scope_data reloading plugin AAAPackageDev.settings_dev reloading plugin AAAPackageDev.snippet_dev reloading plugin AAAPackageDev.sublime_inspect reloading plugin AAAPackageDev.syntax_def_dev reloading plugin AdvancedNewFile.AdvancedNewFile reloading plugin Alignment.Alignment reloading plugin All Autocomplete.all_views_completions reloading plugin AutoFileName.autofilename reloading plugin AutoFileName.getimageinfo reloading plugin Better CoffeeScript.CoffeeScript reloading plugin Bower.Bower reloading plugin BracketHighlighter.bh_core reloading plugin BracketHighlighter.bh_logging reloading plugin BracketHighlighter.bh_plugin reloading plugin BracketHighlighter.bh_regions reloading plugin BracketHighlighter.bh_remove reloading plugin BracketHighlighter.bh_rules reloading plugin BracketHighlighter.bh_search reloading plugin BracketHighlighter.bh_swapping reloading plugin BracketHighlighter.bh_wrapping reloading plugin BracketHighlighter.ure reloading plugin Can I Use.useIt reloading plugin Clickable URLs.clickable_urls reloading plugin Codeivate.codeivate Listener Started reloading plugin ColorPicker.sublimecp reloading plugin CSSFontFamily.CSSFontFamily reloading plugin CTags.ctags reloading plugin CTags.ctagsplugin reloading plugin CTags.test_ctags reloading plugin CTags.test_ctagsplugin reloading plugin DictionaryAutoComplete.DictionaryAutoComplete reloading plugin DocBlockr.init reloading plugin DocBlockr.jsdocs reloading plugin EditorConfig.EditorConfig reloading plugin File Navigator.File Navigator reloading plugin Gist.gist reloading plugin Gist.helpers reloading plugin Gist.request reloading plugin Gist.settings reloading plugin Git.add reloading plugin Git.annotate reloading plugin Git.commit reloading plugin Git.diff reloading plugin Git.flow reloading plugin Git.git reloading plugin Git.history reloading plugin Git.repo reloading plugin Git.stash reloading plugin Git.status reloading plugin Git.statusbar reloading plugin GitGutter.git_gutter reloading plugin GitGutter.git_gutter_change reloading plugin GitGutter.git_gutter_compare reloading plugin GitGutter.git_gutter_events reloading plugin GitGutter.git_gutter_handler reloading plugin GitGutter.git_helper reloading plugin GitGutter.view_collection reloading plugin Google Search.google_search reloading plugin Goto Documentation.goto_documentation reloading plugin Hayaku - tools for writing CSS faster.init reloading plugin Hayaku - tools for writing CSS faster.hayaku_dict_driver reloading plugin Hayaku - tools for writing CSS faster.hayaku_get_merged_dict reloading plugin Hayaku - tools for writing CSS faster.hayaku_probe reloading plugin Hayaku - tools for writing CSS faster.hayaku_sublime reloading plugin Hayaku - tools for writing CSS faster.hayaku_sublime_contexts reloading plugin Hayaku - tools for writing CSS faster.hayaku_sublime_cycling reloading plugin Hayaku - tools for writing CSS faster.hayaku_sublime_get_options reloading plugin Hayaku - tools for writing CSS faster.hayaku_sublime_navigation_commands reloading plugin Hayaku - tools for writing CSS faster.hayaku_templates reloading plugin LaTeX Word Count.WordCount reloading plugin LESS.less_completions reloading plugin LoremIpsum.LoremIpsum reloading plugin Markdown Preview.helper reloading plugin Markdown Preview.markdown_wrapper reloading plugin Markdown Preview.MarkdownPreview reloading plugin Markdown Preview.settings reloading plugin MarkdownEditing.bootstrap reloading plugin MarkdownEditing.custom_find_under_expand reloading plugin MarkdownEditing.distraction_free_mode reloading plugin MarkdownEditing.footnotes reloading plugin MarkdownEditing.gather_missing_links reloading plugin MarkdownEditing.indent_list_item reloading plugin MarkdownEditing.insert_references reloading plugin MarkdownEditing.jumpToMarker reloading plugin MarkdownEditing.list_markdown_references reloading plugin MarkdownEditing.numbered_list reloading plugin MarkdownEditing.paste_as_link reloading plugin MarkdownEditing.paste_as_reference reloading plugin MarkdownEditing.quote_indenting reloading plugin MarkdownEditing.underlined_headers reloading plugin Nettuts+ Fetch.Fetch reloading plugin Package Control.Package Control reloading plugin PythonTest.plugin reloading plugin ReadmePlease.ReadmePlease reloading plugin Schemr.schemr reloading plugin SCSS.scss_completions reloading plugin Search Stack Overflow.Stackoverflow reloading plugin SideBarEnhancements.Edit reloading plugin SideBarEnhancements.SideBar reloading plugin SideBarEnhancements.SideBarDefaultDisable reloading plugin SideBarEnhancements.StatusBarFileSize reloading plugin SideBarEnhancements.StatusBarModifiedTime reloading plugin Stylus.Stylus reloading plugin Sublimall.Sublimall reloading plugin sublime-github.commandline reloading plugin sublime-github.github reloading plugin sublime-github.sublime_github reloading plugin sublime-github.sublime_requests reloading plugin SublimeLinter-coffeelint.linter SublimeLinter: coffeelint linter loaded reloading plugin SublimeLinter-csslint.linter SublimeLinter: csslint linter loaded reloading plugin SublimeLinter-jshint.linter SublimeLinter: jshint linter loaded reloading plugin SublimeLinter-json.linter SublimeLinter: json linter loaded reloading plugin SublimeLinter-php.linter SublimeLinter: php linter loaded reloading plugin SublimeLinter-pyflakes.linter SublimeLinter: pyflakes linter loaded reloading plugin SublimeLinter-ruby.linter SublimeLinter: ruby linter loaded reloading plugin TabsExtra.tab_menu reloading plugin TabsExtra.tabs_extra reloading plugin Text Pastry.insert_nums reloading plugin Text Pastry.text_pastry reloading plugin TrailingSpaces.trailing_spaces reloading plugin View In Browser.ViewInBrowserCommand reloading plugin Vintageous.init reloading plugin Vintageous.builder reloading plugin Vintageous.ex_commands reloading plugin Vintageous.ex_main reloading plugin Vintageous.ex_motions reloading plugin Vintageous.jump_list_cmds reloading plugin Vintageous.modelines reloading plugin Vintageous.state reloading plugin Vintageous.test_runner reloading plugin Vintageous.toplist reloading plugin Vintageous.xactions reloading plugin Vintageous.xmotions reloading plugin Vintageous.xsupport reloading plugin Vintageous.xsupport_mouse reloading plugin WordPress Developer Resources.SublimeWPDeveloperResources reloading plugin Zen Tabs.TabsWorker reloading plugin Zen Tabs.ZenTabs reloading plugin Zen Tabs.ZenTabsTest reloading plugin Cheat Sheets.cheat-sheets reloading plugin Emmet Style Reflector.emmet_style_reflector reloading plugin Grunt.main reloading plugin HTML-CSS-JS Prettify.HTMLPrettify reloading plugin Jedi - Python autocompletion.init reloading plugin JSHint.JSHint reloading plugin SublimeCodeIntel.SublimeCodeIntel reloading plugin SublimeLinter.commands reloading plugin SublimeLinter.sublimelinter reloading plugin SublimePythonIDE.sublime_python reloading plugin SublimePythonIDE.sublime_python_linting reloading plugin SublimePythonIDE.util reloading plugin SublimeREPL.init reloading plugin SublimeREPL.completions reloading plugin SublimeREPL.lang_integration reloading plugin SublimeREPL.run_existing_command reloading plugin SublimeREPL.sublimerepl reloading plugin SublimeREPL.sublimerepl_build_system_hack reloading plugin SublimeREPL.text_transfer plugins loaded Current machine name:Corrinne Hinely Codeivate options have been set loaded Traceback (most recent call last): File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 287, in on_selection_modified callback.on_selection_modified(v) File "bh_core in C:\Users\Photon\AppData\Roaming\Sublime Text 3\Installed Packages\BracketHighlighter.sublime-package", line 764, in on_selection_modified File "bh_core in C:\Users\Photon\AppData\Roaming\Sublime Text 3\Installed Packages\BracketHighlighter.sublime-package", line 781, in ignore_event AttributeError: type object 'BhEventMgr' has no attribute 'ignore_all' SublimeLinter: debug mode: off schemr ready 2014-08-15 19:17:46,965 7za_path detected: C:\Program Files\7-Zip\7z.exe Limit: 10 Full path: False Highlight: True found 79 files for base name Main.sublime-menu reloading Packages/User/codeivate-st.sublime-settings reloading Packages/User/Fetch.sublime-settings reloading Packages/User/Preferences.sublime-settings found 1 files for base name Eightlime Dark.sublime-theme Errors parsing theme: settings must be an array theme loaded Package Control: Error downloading channel. Connection refused (errno 12029) during HTTP write phase of downloading https://sublime.wbond.net/channel.json. Package Control: Error downloading channel. Connection refused (errno 12029) during HTTP write phase of downloading https://sublime.wbond.net/channel.json. Package Control: No updated packages 2014-08-15 19:19:38,790 Could not import subprocess32 module, falling back to subprocess module reloading Packages/User/Fetch.sublime-settings Package Control: Error downloading channel. Connection refused (errno 12029) during HTTP write phase of downloading https://sublime.wbond.net/channel.json. error: Package Control

There are no packages available for installation

I have searched a lot on Google and on here and I have not found a solution.

ghost commented 10 years ago

Okay so I put on debug mode now since I read more.

Package Control: Fetching list of available packages Platform: windows-x64 Sublime Text Version: 3059 Package Control Version: 2.0.0 Package Control: Download Debug URL: https://sublime.wbond.net/channel.json Resolved IP: 50.116.34.243 Timeout: 30 Package Control: Error downloading channel. Connection refused (errno 12029) during HTTP write phase of downloading https://sublime.wbond.net/channel.json. error: Package Control

There are no packages available for installation Package Control: WinINet HTTPS Debug General Closing connection to sublime.wbond.net on port 443 after 0 requests

ghost commented 10 years ago

Uninstalled everything and installed ST3 again, fresh, and now package control can't even install:

import urllib.request,os,hashlib; h = '7183a2d3e96f11eeadd761d777e62404' + 'e330c659d4bb41d3bdf022e94cab3cd0'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://sublime.wbond.net/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by) Traceback (most recent call last): File "X/urllib/request.py", line 1252, in do_open File "X/http/client.py", line 1049, in request File "X/http/client.py", line 1087, in _send_request File "X/http/client.py", line 1045, in endheaders File "X/http/client.py", line 890, in _send_output File "X/http/client.py", line 828, in send File "X/http/client.py", line 806, in connect File "X/socket.py", line 424, in create_connection File "X/socket.py", line 415, in create_connection OSError: [WinError 10051] A socket operation was attempted to an unreachable network

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "", line 1, in File "X/urllib/request.py", line 160, in urlopen File "X/urllib/request.py", line 473, in open File "X/urllib/request.py", line 491, in _open File "X/urllib/request.py", line 451, in _call_chain File "X/urllib/request.py", line 1272, in http_open File "X/urllib/request.py", line 1255, in do_open urllib.error.URLError: <urlopen error [WinError 10051] A socket operation was attempted to an unreachable network>

why is this happening to me :'(

wbond commented 10 years ago

@erickbarron According to http://msdn.microsoft.com/en-us/library/windows/desktop/aa383770(v=vs.85).aspx, it seems the WinHTTP layer is unable to connect.

I would check and see if your network security software, antivirus, or local domain policies are blocking the connection.

ghost commented 10 years ago

@wbond, Omg, finally it worked, thanks. The problem was that for some reason Bitdefender Firewall was blocking ST3.

The way I fixed it was going to Settings->Firewall->Application rules and set ST3 to allow, it had a red X on it. I have no idea why it got blocked

mikessoldier commented 9 years ago

I had the same problem, Windows 7 64 Ult. ST 3065, stable Package Control Antivirus: Bitdefender

Bitdefender made a rule for plugin_host.exe-->deny takes me 30 min to find out when i changed it, it started to work again hope it helps somebody

ingro commented 7 years ago

Thanks @mikessoldier for the solution!

Dafaq-lang commented 4 years ago

I had the same problem, Windows 7 64 Ult. ST 3065, stable Package Control Antivirus: Bitdefender

Bitdefender made a rule for plugin_host.exe-->deny takes me 30 min to find out when i changed it, it started to work again hope it helps somebody

Thank You!!! I know this is a few years late, but thank you!!!!