desktop icon indicating copy to clipboard operation
desktop copied to clipboard

Not able to sign in

Open rolia-net opened this issue 3 years ago • 18 comments

The problem

At the welcome page, click on the "Sign in to GitHub.com" button, approve it on the web page. No reaction after that. The spinner in the button keeps going.

Release version

3.0.6-linux1

Operating system

Ubuntu 22.04

Steps to reproduce the behavior

1, At the welcome page, click on the "Sign in to GitHub.com" button, 2, approve it on the web page of github.

No reaction after that. The spinner in the button keeps going.

Log files

2022-10-02.desktop.production.log

Screenshots

No response

Additional context

There are error in console: $ ./GitHubDesktop-linux-3.0.6-linux1.AppImage libva error: vaGetDriverNameByIndex() failed with unknown libva error, driver_name = (null) [267574:1001/171619.934140:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process. [267574:1001/171622.799074:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 1 times! [267574:1001/171624.146379:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 2 times! [267574:1001/171802.589885:ERROR:gl_surface_presentation_helper.cc(260)] GetVSyncParametersIfAvailable() failed for 3 times!

rolia-net avatar Oct 02 '22 00:10 rolia-net

Same thing here. Using Mint and tried it with Firefox, Chrome and Brave. Nothing works.

trincowski avatar Oct 02 '22 16:10 trincowski

I also tried the versions of 3.0.5 and 2.9.15 in the same Ubuntu 22.04 system. Same result.

rolia-net avatar Oct 02 '22 16:10 rolia-net

same result here

DeepAlex1247 avatar Oct 03 '22 16:10 DeepAlex1247

Same issue here Github Desktop 3.0.6 deb package PopOS 22.04 LTS

2022-10-07.desktop.production.log

exen904 avatar Oct 07 '22 09:10 exen904

@exen904 @rolia-net the log files you provided are interesting, and I wonder if the protocol handlers we use to register GitHub Desktop are broken for you:

https://github.com/shiftkey/desktop/blob/8d9add2d7ec25d9d760ce856882c8df416ca1555/script/package-debian.ts#L78-L86

Which browser are you using to sign in?

The other variable is which installer is being used - AppImage has some known problems like #542 that I'm not sure how to fix...

shiftkey avatar Oct 15 '22 19:10 shiftkey

@shiftkey I was using Chrome. I downloaded the AppImage files. Didn't know any other way to install in Ubuntu 22.04.

rolia-net avatar Oct 15 '22 20:10 rolia-net

@shiftkey I was using Firefox. Apparently that was my issue, not something of the app. I completely forgot about the GitHub Mobile app where I was notified to act as 2FA. Worked just fine after that. Sorry for the wrong call there

exen904 avatar Oct 15 '22 22:10 exen904

@rolia-net I'd recommend using the deb installers in our docs: https://github.com/shiftkey/desktop#debianubuntu-distributions

shiftkey avatar Oct 15 '22 23:10 shiftkey

I am having the same issue with Waterfox browser (fork of Firefox). This doesn't happen when Waterfox is already opened, and then Sign In button is clicked.

Note that I am running the appimage as root using command line option --no-sandbox.

lakshayrohila avatar Oct 17 '22 08:10 lakshayrohila

I have the same issue. On my office computer I have:

  • Kubuntu 18.04
  • Firefox 107.0
  • The AppImage version of GitHub Desktop 3.1.1-linux1
  • no root access
  • no other browser than Firefox

After reloading the login page a couple of times, it gives me the option to log in to Github, but then I get stuck with the x-github-desktop-dev-auth://oauth?... link which does not do anything.

Is there a way to enter the auth code manually somewhere? Or a tip how to set up the mime-types manually for Firefox?

grossardt avatar Nov 22 '22 10:11 grossardt

For me, the base problem i think i had was that the mime types were not set up.

So, i tried was to register the mime types manually for GitHub Desktop and it worked.

First I looked for a file named github-desktop.desktop which i found in ~/.local/share/applications For reference, the file looked like:

[Desktop Entry]
Name=GitHub Desktop
Comment=Simple collaboration from your desktop
GenericName=GitHub Desktop
Exec=github-desktop %u
Icon=github-desktop
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;
MimeType=x-scheme-handler/x-github-client;x-scheme-handler/x-github-desktop-auth;x-scheme-handler/x-github-desktop-dev-auth;

Path=
Terminal=false

Then, i ran the commands (in ~/.local/share/applications working directory):

xdg-mime default github-desktop.desktop x-scheme-handler/x-github-client
xdg-mime default github-desktop.desktop x-scheme-handler/x-github-desktop-auth
xdg-mime default github-desktop.desktop x-scheme-handler/x-github-desktop-dev-auth

Reference: https://unix.stackexchange.com/questions/497146/create-a-custom-url-protocol-handler

LowNightSnack avatar Jan 14 '23 13:01 LowNightSnack

For me, the base problem i think i had was that the mime types were not set up.

Perfect. This was the problem for me. That fixed it. Thanks a million!

trincowski avatar Jan 15 '23 16:01 trincowski

For me, the base problem i think i had was that the mime types were not set up.

Unfortunately not helping with the AppImage version.

I tried by adding Exec=~/path/to/GitHubDesktop.AppImage %u to the .desktop file and running the xdg-mime commands.

Opening the auth link (x-github-desktop-dev-auth://oauth?...) via xdg-open does run GitHub Desktop now, but it does not log in. I assume the URL is not passed on correctly?

I think the best workaround would be an alternative option to enter the authorization code manually instead of waiting for reply from the browser.

grossardt avatar Jan 16 '23 08:01 grossardt

For me, the base problem i think i had was that the mime types were not set up.

So, i tried was to register the mime types manually for GitHub Desktop and it worked.

First I looked for a file named github-desktop.desktop which i found in ~/.local/share/applications For reference, the file looked like:

[Desktop Entry]
Name=GitHub Desktop
Comment=Simple collaboration from your desktop
GenericName=GitHub Desktop
Exec=github-desktop %u
Icon=github-desktop
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Utility;
MimeType=x-scheme-handler/x-github-client;x-scheme-handler/x-github-desktop-auth;x-scheme-handler/x-github-desktop-dev-auth;

Path=
Terminal=false

Then, i ran the commands (in ~/.local/share/applications working directory):

xdg-mime default github-desktop.desktop x-scheme-handler/x-github-client
xdg-mime default github-desktop.desktop x-scheme-handler/x-github-desktop-auth
xdg-mime default github-desktop.desktop x-scheme-handler/x-github-desktop-dev-auth

Reference: https://unix.stackexchange.com/questions/497146/create-a-custom-url-protocol-handler

This worked for me too... thank you

antonellocaroli avatar Feb 21 '23 05:02 antonellocaroli

xdg-mime default github-desktop.desktop x-scheme-handler/x-github-desktop-dev-auth

Perfect for me. I lost a day before finding your solution: THANKS A LOT!

Linuxmint 21.1 and all the version of github-desktop from 2.6.5 to 3.2.0

patricekaratchentzeff avatar Mar 06 '23 16:03 patricekaratchentzeff

I think the best workaround would be an alternative option to enter the authorization code manually instead of waiting for reply from the browser.

This would be amazing...

Having these issues with v3.3.10 on WSL (it was working last Friday - yes I use it under WSL because husky) and the workarounds do not work for me... Just get the icon spinning forever.

DevConsole only says "[SignInStore] initializing OAuth flow"

EDIT: In my case, I fixed it by using a non-snap browser. It looks like when we install chromium or firefox from apt-get, Ubuntu will install a snap version, which runs isolated in a sandbox and cannot communicate with the Github Desktop app. Installing Google Chrome from the official website using dpkg solved it.

jesobreira avatar Apr 01 '24 15:04 jesobreira

I also am unable to login. The sign-in button does nothing. Installed with wget. Ubuntu 22.04.

tacolopo avatar Aug 11 '24 19:08 tacolopo

I also am unable to login. The sign-in button does nothing. Installed with wget. Ubuntu 22.04.

I ran these commands (not all worked but can't remember which ones failed) and then after I was able to authenticate:

sudo systemctl start dbus sudo systemctl enable dbus sudo apt install libcanberra-gtk-module libcanberra-gtk3-module sudo apt install xdg-utils sudo apt install vulkan-utils

tacolopo avatar Aug 21 '24 00:08 tacolopo