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

"Could not connect: No such file or directory" when trying to sign in #1040

Closed
jesobreira opened this issue Apr 1, 2024 · 1 comment
Closed

Comments

@jesobreira
Copy link

The problem

When I finish logging in in the browser and the browser redirects back to Github Desktop, I get a modal with "Could not connect: No such file or directory".

The repo folder is all ok (I can commit, push and pull it via command line or other Git clients).

Tried uninstalling and reinstalling, no luck.

Release version

3.3.12-linux2 (x64)

Operating system

Ubuntu 22.04 WSL

Steps to reproduce the behavior

  1. Start with a failed login (not sure how to reproduce it or why it happened to me), in an already clonned repo
    image

2 Do the standard login procedure via browser
image

  1. Complete the login and wait for the browser to take you back to Github Desktop
    image

Log files

From DevTools, it makes three requests, and they all work well, giving some of my data:

image

And in the console (starting from the error message that says I'm not logged in, through the login process until finally the issue raises):

image

Desktop logs are similar:

image

And this is when I run github-desktop on the command line. Same thing, but I have several "No such file or directory" for "/run/user/1000/bus" that start throwing every time since the app is launched.

image

Screenshots

image

Additional context

After the error, Github Desktop remains not logged in. The File > Options > Accounts screen still has the "Sign into GitHub.com" button.

@jesobreira
Copy link
Author

jesobreira commented Apr 1, 2024

It seems that the messages in the terminal are related to the issue.

I created a directory with sudo mkdir -p /run/user/1000/bus (as in the message) and chmod 777'ed it, and now the message changed to:

image

image

Strangely, I installed GitHub Desktop on WSL on 17 March and it worked well until last Friday... Since then, the computer only slept over the weekend...

I'm still researching but it seems to be related to WSL not having systemd...

EDIT: Due to the pressure on recent projects' deadlines, I had to wipe and reinstall Ubuntu on WSL to have it working again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant