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

Godot 4 RC 5 and plugin v3.0.0-beta2 Error -16 #164

Open
GodoterFR opened this issue Feb 25, 2023 · 10 comments
Open

Godot 4 RC 5 and plugin v3.0.0-beta2 Error -16 #164

GodoterFR opened this issue Feb 25, 2023 · 10 comments
Labels

Comments

@GodoterFR
Copy link

GodoterFR commented Feb 25, 2023

Windows 10
My Git install :

  • git config --global user.name "Kevin"
    No password
    No passphrase
    Remote github with SSH
    Plugin install by AssetLib

vcs

GitPlugin: Performing push to github
core/variant/variant_utility.cpp:880 - GitPlugin: Could not connect to remote "github". Are your credentials correct? Try using a PAT token (in case you are using Github) as your password. Error -16: Failed to retrieve list of SSH authentication methods: Failed getting response in godot-git-plugin\src\git_plugin.cpp:GitPlugin::_push#L532

I can't push/pull in Godot.
I can push/pull in Git.

@twaritwaikar
Copy link
Contributor

Could you confirm if the github remote on your repository is indeed a SSH remote endpoint and not an HTTPS one?

Plus we have a PR #149 which will help remediate some of the causes behind this issue

@GodoterFR
Copy link
Author

GodoterFR commented Feb 26, 2023

I confirm i use SSH. I check PR #149 but I don't understand what I should do. Should I update libssh2 manually and recompile? I don't think I'm competent enough.

@RobertoMaurizzi
Copy link

I'm not sure what GitPlugin wants, but for SSH access to GitHub the SSH username to use should be git, not your real username, like in git@github.com:godotengine/godot-git-plugin.git...?

@GodoterFR
Copy link
Author

I just tested it and it's not that.
I would wait, it's not a major thing, I can always push with Git. I'm not stuck.
For the moment there are more important things for Godot 4.0.

@RobertoMaurizzi
Copy link

RobertoMaurizzi commented Feb 28, 2023 via email

@RyanCross
Copy link

RyanCross commented Mar 5, 2023

Also experiencing this issue. Referring to

I'm not sure what GitPlugin wants, but for SSH access to GitHub the SSH username to use should be git, not your real username

Most git users set there config user name to either their real name or there github username, it shouldn't be a requirement to change this to use the plugin. This may just be a misunderstanding though as git generates ssh like the following:
git@github.com:RyanCross/godot-game.git

@wschwabauer
Copy link

got pretty much the same issue here :/

@HStep20
Copy link

HStep20 commented Mar 8, 2023

Im seeing a similar issue here as well. I run a local Gitea server for locally hosted VCS, and even though I can authenticate via the cmd on my pc using ssh keys, the Godot VCS Plugin comes back with a -16 error

@HStep20
Copy link

HStep20 commented Mar 8, 2023

After quite a bit more testing and searching, I finally got git to connect via an http connection, instead of SSH, using an access token or password. For anyone struggling, try using the web url of your repository instead of the git url - For my personal git server, it looked like http://IP_ADDRESS:3000/hstep20/godot-4-git-test. For most using github, it would be like https://github.com/godotengine/godot-git-plugin

While its not ideal, at least it works.


While researching, I stumbled across this comment on a gitea issue showing the same problem I was having when trying to verify my ssh keys via the cmd. Like they mentioned, the windows command line seems to have problems properly creating a verification signature for SSH keys. I was able to replicate the results and see that the windows cmd wouldn't properly verify a token with my git ssh setup, but WSL was able to.

It may be nothing at all, but it could be connected to why the ssh plugin is struggling on windows (for me at least). Perhaps others here can chime in on their OS, and your OS of choice could help narrow down the exact problem.

@catgirlcataclysm
Copy link

catgirlcataclysm commented Aug 16, 2023

I've been dealing with this same issue (-16) all night, and reading a lot of issues. HTTPS has worked, its just annoying to type in my PAT every single time I launch Godot.

@Calinou Calinou added the bug label Sep 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

8 participants