nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration
MIT License
18.86k stars 21.57k forks source link

Initial start causes OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0 on plugin install on Windows #917

Closed KoenvanderBorghtGomocha closed 4 months ago

KoenvanderBorghtGomocha commented 4 months ago

Describe the bug

After installing all the required tools using chocolatey on Windows 11. I cloned the git repository as per the instructions. After that I rebooted my laptop just to be sure and executed the nvim command. However, when cloning all the repositories for the plugins I'm getting the error message:

~                                                 fatal: unable to access 'https://github.com/hrsh7th/cmp-nvim-lsp.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0                                                                                                                                                                                                                                                                 ~                                             ○ cmp-path  nvim-cmp      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/cmp-path'...                                                                                                                                                                                                                                                                                                ~                                                 fatal: unable to access 'https://github.com/hrsh7th/cmp-path.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ cmp_luasnip  nvim-cmp      ■ clone failed                                                                                                                                                                                                                                                                                                                                             ~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/cmp_luasnip'...                                                                                                                                                                                                                                                                                             ~                                                 fatal: unable to access 'https://github.com/saadparwaiz1/cmp_luasnip.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0                                                                                                                                                                                                                                                             ~                                             ○ Comment.nvim      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/Comment.nvim'...                                                                                                                                                                                                                                                                                            ~                                                 fatal: unable to access 'https://github.com/numToStr/Comment.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0                                                                                                                                                                                                                                                                ~                                             ○ conform.nvim  <leader>f ()      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/conform.nvim'...
~                                                 fatal: unable to access 'https://github.com/stevearc/conform.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ fidget.nvim  nvim-lspconfig      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/fidget.nvim'...
~                                                 fatal: unable to access 'https://github.com/j-hui/fidget.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ gitsigns.nvim      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/gitsigns.nvim'...
~                                                 fatal: unable to access 'https://github.com/lewis6991/gitsigns.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ● lazy.nvim 22535.2ms  init.lua     ■■■ fetch failed
~                                                 fatal: unable to access 'https://github.com/folke/lazy.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                                 fatal: unable to access 'https://github.com/folke/lazy.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ LuaSnip  nvim-cmp      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/LuaSnip'...
~                                                 fatal: unable to access 'https://github.com/L3MON4D3/LuaSnip.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ mason-lspconfig.nvim  nvim-lspconfig      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/mason-lspconfig.nvim'...
~                                                 fatal: unable to access 'https://github.com/williamboman/mason-lspconfig.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ mason-tool-installer.nvim  nvim-lspconfig      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/mason-tool-installer.nvim'...
~                                                 fatal: unable to access 'https://github.com/WhoIsSethDaniel/mason-tool-installer.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ mason.nvim  nvim-lspconfig      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/mason.nvim'...
~                                                 fatal: unable to access 'https://github.com/williamboman/mason.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ mini.nvim      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/mini.nvim'...
~                                                 fatal: unable to access 'https://github.com/echasnovski/mini.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ neodev.nvim  nvim-lspconfig      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/neodev.nvim'...
~                                                 fatal: unable to access 'https://github.com/folke/neodev.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ nvim-cmp  InsertEnter      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/nvim-cmp'...
~                                                 fatal: unable to access 'https://github.com/hrsh7th/nvim-cmp.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ nvim-lspconfig      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/nvim-lspconfig'...
~                                                 fatal: unable to access 'https://github.com/neovim/nvim-lspconfig.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ nvim-treesitter      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/nvim-treesitter'...
~                                                 fatal: unable to access 'https://github.com/nvim-treesitter/nvim-treesitter.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ nvim-web-devicons  telescope.nvim      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/nvim-web-devicons'...
~                                                 fatal: unable to access 'https://github.com/nvim-tree/nvim-web-devicons.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ plenary.nvim  todo-comments.nvim  telescope.nvim      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/plenary.nvim'...
~                                                 fatal: unable to access 'https://github.com/nvim-lua/plenary.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ telescope-fzf-native.nvim  telescope.nvim      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/telescope-fzf-native.nvim'...
~                                                 fatal: unable to access 'https://github.com/nvim-telescope/telescope-fzf-native.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ telescope-ui-select.nvim  telescope.nvim      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/telescope-ui-select.nvim'...
~                                                 fatal: unable to access 'https://github.com/nvim-telescope/telescope-ui-select.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ telescope.nvim  VimEnter      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/telescope.nvim'...
~                                                 fatal: unable to access 'https://github.com/nvim-telescope/telescope.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ todo-comments.nvim  VimEnter      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/todo-comments.nvim'...
~                                                 fatal: unable to access 'https://github.com/folke/todo-comments.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ tokyonight.nvim      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/tokyonight.nvim'...
~                                                 fatal: unable to access 'https://github.com/folke/tokyonight.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ○ vim-sleuth      ■ clone failed
~                                                 Cloning into 'C:/Users/*myusername*/AppData/Local/nvim-data/lazy/vim-sleuth'...
~                                                 fatal: unable to access 'https://github.com/tpope/vim-sleuth.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                             ● which-key.nvim 30.51ms  VimEnter     ■■ fetch failed
~                                                 fatal: unable to access 'https://github.com/folke/which-key.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0
~                                                 fatal: unable to access 'https://github.com/folke/which-key.nvim.git/': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0

I tried running git config http.postBuffer 524288000 and git config --global http.sslBackend "openssl" but that didn't fix the issue. The weird thing is that when I run git in my terminal it works fine, I can fetch, get the status, pull, push. When I manually clone the plugin git repositories into the nvim_data folder it is also clones them succesfully. But I'd rather do it via lazy.nvim since that's the whole point of it. Am I doing something wrong?

To Reproduce

  1. Follow the installation instructions for Windows (choco)
  2. Clone this repo into the appdata local nvim folder
  3. Start nvim
  4. Error messages appear as lazy.nvim is cloning the plugin repos

Desktop

Neovim Version

NVIM v0.9.5                                                                                                                                                                                                                                                                                                                                                                                                                            Build type: RelWithDebInfo                                                                                                                                                                                                                                                                                                                                                                                                             LuaJIT 2.1.1703942320                                                                                                                                                                                                                                                                                                                                                                                                                  Compilation: C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe /MD /Zi /O2 /Ob1  -W3 -wd4311 -wd4146 -DUNIT_TESTING -D_CRT_SECURE_NO_WARNINGS -D_CRT_NONSTDC_NO_DEPRECATE -D_WIN32_WINNT=0x0602 -DMSWIN -DINCLUDE_GENERATED_DECLARATIONS -ID:/a/neovim/neovim/.deps/usr/include/luajit-2.1 -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/build/src/nvim/auto -ID:/a/neovim/neovim/build/include -ID:/a/neovim/neovim/build/cmake.config -ID:/a/neovim/neovim/src -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include -ID:/a/neovim/neovim/.deps/usr/include                                                                                                                                                                                                                                                                                                                                                                                                                                                    system vimrc file: "$VIM\sysinit.vim"                                                                                                                                                                                                                                                                                                                                                                                                 fall-back for $VIM: "C:/Program Files (x86)/nvim/share/nvim"  
feoh commented 4 months ago

Hi. I'm sorry you're having trouble but this has nothing to do with your kickstart install per-se.

You have some kind of problem with SSL and your Windows git installation.

Closing for now.

dam9000 commented 4 months ago

For what is worth, I tried now a fresh Windows 11 23H2 install in virtualbox

So all in all it worked flawlessly, no SSL issues.

The only hiccup was that winget did not work out of the box after a fresh windows install but needed to be updated via the ms store (as instructed in https://learn.microsoft.com/en-us/windows/package-manager/winget/)

KoenvanderBorghtGomocha commented 4 months ago

I tried it on my other Windows 11 laptop and there it worked fine, wonder what the issue is, as I can clone the plugin repositories perfectly fine in my terminal. Just when it is happening via lazy it isn’t working. Does anyone know if lazy is using a different git config?

dam9000 commented 4 months ago

When you clone the repos from the terminal do you use the git https or ssh protocol? That is, which of these:

Do both work?

From one of the pages with a similar error https://stackoverflow.com/questions/46232906/git-clone-error-rpc-failed-curl-56-openssl-ssl-read-ssl-error-syscall-errno this is suggested: git config http.sslVerify "false" Can you try that?

Or actually: git config --global http.sslVerify false

KoenvanderBorghtGomocha commented 4 months ago

Yep that actually worked! After executing the command git config --global http.sslVerify false everything worked like it should! Thank you @dam9000!

AndroidDeveloperLB commented 2 months ago

Somehow I got here, and even though my issue is a bit different, the solution proposed solved it for me:

git config --global http.sslVerify false

The issue I had is not being able to clone/push/pull using Git, when done manually or via other tools that use it (Android-Studio and TortoiseGit). The errors I had were :

Fatal: unable to access 'https://github.com/.../': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0

git did not exit cleanly (exit code 128)

or:

fatal: unable to access 'https://github.com/...': OpenSSL SSL_read: SSL_ERROR_SYSCALL, errno 0

Anyway thank you!