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

Missing or invalid credentials. Error: connect ENOENT /run/user/1000/vscode-git-6fc6e74986.sock #192551

Closed
Pnlvfx opened this issue Sep 8, 2023 · 12 comments
Assignees

Comments

@Pnlvfx
Copy link

Pnlvfx commented Sep 8, 2023

Does this issue occur when all extensions are disabled?: Yes/No

  • VS Code Version: latest
  • OS Version: Ubuntu 22.04
  • Missing or invalid credentials. Error: connect ENOENT /run/user/1000/vscode-git-6fc6e74986.sock at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) { errno: -2, code: 'ENOENT', syscall: 'connect', address: '/run/user/1000/vscode-git-6fc6e74986.sock' } Missing or invalid credentials. Error: connect ENOENT /run/user/1000/vscode-git-6fc6e74986.sock at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) { errno: -2, code: 'ENOENT', syscall: 'connect', address: '/run/user/1000/vscode-git-6fc6e74986.sock' } remote: Repository not found.

Steps to Reproduce:

I'm not good at steps to reproduce, but it was working before the latest update,
All my nodejs projects are not able to do git pull or push, even if I can see the changes made.
I'm on ubuntu 22.04 with node 19.5.
Sorry but I cannot provide more info

@Pnlvfx
Copy link
Author

Pnlvfx commented Sep 8, 2023

I've tried to logout and login again, as well as restart the computer

@Pnlvfx Pnlvfx changed the title Missing or invalid credentials. Error: connect ENOENT /run/user/1000/vscode-git-6fc6e74986.sock at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) { errno: -2, code: 'ENOENT', syscall: 'connect', address: '/run/user/1000/vscode-git-6fc6e74986.sock' } Missing or invalid credentials. Error: connect ENOENT /run/user/1000/vscode-git-6fc6e74986.sock at PipeConnectWrap.afterConnect [as oncomplete] (node:net:1494:16) { errno: -2, code: 'ENOENT', syscall: 'connect', address: '/run/user/1000/vscode-git-6fc6e74986.sock' } remote: Repository not found. Missing or invalid credentials. Error: connect ENOENT /run/user/1000/vscode-git-6fc6e74986.sock Sep 8, 2023
@Pnlvfx
Copy link
Author

Pnlvfx commented Sep 8, 2023

The issue seems to be fixed now, after I've totally closed the directory and open it again (with only a restart it was not working). Sorry, you guys can ignore this issue.

@sudhirkumar-dev
Copy link

I have like 50 changes and there was this error showing like authentication failed Error: connect ENOENT /run/user/1000/vscode-git-fb00d917e3.sock i closed the vs code and restarted the directory again it worked fine

@yoyo837
Copy link

yoyo837 commented Sep 20, 2023

Same here in latest stable version.

@Pnlvfx
Copy link
Author

Pnlvfx commented Sep 20, 2023

It's still randomly happens to me

@pigochu
Copy link

pigochu commented Sep 22, 2023

My env is win10 + WSL2(ubuntu 22.04) + vscode 1.82.2
If I start vs code and run git immediately, its works fine , after 1 minutes , its can not work.
I need shutdown wsl2 again , and run git immediately.

@canstand
Copy link

@lszomoru same to me as @pigochu say, os win11

@AlexKomzzz
Copy link

similar situation. ubuntu 22.04 + vscode 1.82.2

@pigochu
Copy link

pigochu commented Sep 23, 2023

I don’t know if this is really a bug of VS CODE. Maybe it’s a bug of Ubuntu itself, because /run/user/1000 will be deleted entirely inexplicably. My WSL has enabled systemd. My current solution is run

sudo loginctl enable-linger username

then restart wsl

@lszomoru
Copy link
Member

@deepak1556, does this ring a bell?

@deepak1556
Copy link
Collaborator

Can affected users check if the issue is present with out latest insiders https://code.visualstudio.com/insiders, I feel this might be a side effect of #192742

@seunghkong
Copy link

I don’t know if this is really a bug of VS CODE. Maybe it’s a bug of Ubuntu itself, because /run/user/1000 will be deleted entirely inexplicably. My WSL has enabled systemd. My current solution is run

sudo loginctl enable-linger username

then restart wsl

had the same problem with /run/user/1000, and this solution worked for win11 + WSL2(ubuntu 22.04) + vscode 1.83

@github-actions github-actions bot locked and limited conversation to collaborators Oct 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants