Skip to content

Unable to sync repositories using GitHub Desktop: fatal error 0x80092012 #3156

Closed

Description

@askbow

Description

Hi
I was trying to use GitHub Desktop to work with my repos, but I get an error like this (when cloning from or publishing to new repos):

fatal: unable to access 'https://github.com/askbow/contact-expand.git/': schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - ������� ������ �� ������ ���������� �������� ������ ��� �����������.

Version

GitHub Desktop version: 1.0.4

OS version: Microsoft Windows [Version 6.1.7601]

Steps to Reproduce

  1. create new repo in the application
  2. add files
  3. commit
  4. press "publish"

Expected behavior: the repo syncs up to Github

Actual behavior: Unknown error (0x80092012)

Reproduces how often: everytime

Logs

2017-10-25T08:40:09.832Z - info: [ui] [AppStore.withAuthenticatingUser] account found for repository: contact-expand - askbow (has token) 2017-10-25T08:40:10.404Z - error: [ui] git -c credential.helper= push origin master --set-upstream --progress exited with an unexpected code: 128. fatal: unable to access 'https://github.com/askbow/contact-expand.git/': schannel: next InitializeSecurityContext failed: Unknown error (0x80092012) - ������� ������ �� ������ ���������� �������� ������ ��� �����������.

Additional Information

I tried to curl the URI in the error, and I get this:
`>curl https://github.com/askbow/contact-expand.git/

<title>301 Moved Permanently</title>

301 Moved Permanently


nginx `

Activity

  1. added
    bug
    on Oct 25, 2017
  2. joshaber commented on Oct 25, 2017

    @joshaber
    Contributor

    Hi @askbow!

    We've had a few reports of this specific error, but it's not been made clear to me how we might be misusing the SChannel APIs, so the best advice I have for you is how to switch over to using the classic OpenSSL APIs alongside your own certificate bundle.

    Open a shell to your repository and run these command:

    $ git config --local http.sslBackend "openssl"
    $ git config --local http.sslCAInfo [path to .pem file]

    Then test it out with a git fetch to ensure it is able to connect to your server.

  3. added
    more-info-needed
    investigation-needed
    and removed
    bug
    more-info-needed
    on Oct 25, 2017
  4. askbow commented on Oct 25, 2017

    @askbow
    Author

    @joshaber
    Thanks for the advice!

    As I'm currently facing this issue, would taking any additional info / logs be helpful?

    Before I change the settings, I mean.

  5. joshaber commented on Oct 25, 2017

    @joshaber
    Contributor

    That is a great question and one I'll have to defer to @shiftkey on 💖

  6. shiftkey commented on Oct 25, 2017

    @shiftkey
    Member

    @askbow @joshaber I'd love to understand which programs are interfering with SChannel in this way, so I can experiment with this to understand it better - do you know which software on your machine might be to blame?

  7. askbow commented on Oct 26, 2017

    @askbow
    Author

    Looks like I found it! TL;DR: The conflict in my case is with CryptoPro CSP.

    At first I tried to catch the event in sysinternals process monitor, but that gave nothing. I also tried to kill other processes in my system one-by-one to find who might be messing with this API, again no results.

    Then I googled a little and found that this error code for SChannel has more than one mention on github issues pages for different projects. Here the error is described as

    CRYPT_E_NO_REVOCATION_CHECK 0x80092012 The revocation function was unable to check revocation for the certificate.

    This pinged in my head: I already had a weird certificate problem with my jabber program last spring. The problem back then was with CryptoPro CSP - a Russian GOST crypto library. Specifically, I have to use version 3.6 R4.

    I uninstalled it, and GitHub desktop started syncing alright.

  8. askbow commented on Oct 26, 2017

    @askbow
    Author

    Confirmed it by installing the crypto provider back. This breaks desktop operation as I described above.

    On their support forum I found a workaround: disable validation by setting DWORD HKEY_LOCAL_MACHINE\SYSTEM\ControlSet001\Control\SecurityProviders\SCHANNEL\ManualCredValidation to 1.

    Probably not best practice, but will work for the time being.

  9. shiftkey commented on Oct 26, 2017

    @shiftkey
    Member

    @askbow thanks for following up! I'll close this out given we know at least one scenario (and how to workaround it).

  10. ACEM7777 commented on Feb 19, 2018

    @ACEM7777

    please the error message attached no idea on how to resolve it. OS Window 8.1 64

    image
    github cloning error message

  11. vladch-kh commented on Jun 5, 2018

    @vladch-kh

    Nice. im fix its problem, down Kaspersiky

  12. locked as resolved and limited conversation to collaborators on Aug 4, 2018
  13. unlocked this conversation on Sep 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    investigation-needed

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions