You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Error authenticating/opening browser on Raspberry PI #479
pi@raspberrypi:~/projects/noise $ gh issue list
Notice: authentication required
Press Enter to open github.com in your browser...
[7763:7977:0216/184828.502272:ERROR:object_proxy.cc(632)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[7763:7977:0216/184828.503064:ERROR:object_proxy.cc(632)] Failed to call method: org.freedesktop.UPower.GetDisplayDevice: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[7763:7977:0216/184828.503901:ERROR:object_proxy.cc(632)] Failed to call method: org.freedesktop.UPower.EnumerateDevices: object_path= /org/freedesktop/UPower: org.freedesktop.DBus.Error.ServiceUnknown: The name org.freedesktop.UPower was not provided by any .service files
[7808:7808:0216/184829.246294:ERROR:gl_surface_presentation_helper.cc(259)] GetVSyncParametersIfAvailable() failed for 1 times!
Compiled from source as instructions said. Here is the version output:
gh version 0.5.5-2-g10ea161 (2020-02-16)
https://github.com/cli/cli/releases/latest
To open the browser on Linux, gh uses xdg-open, which for your platform tries to open Chromium, which fails with the aforementioned error. I'm not sure why Chromium fails, but I'm sure that unless you're running a desktop environment on your Raspberry PI and can interact with a graphical browser, you won't be able to authenticate this way even if Chromium worked.
This issue has the same root cause as #286, even though they appear very different.
To work around this for now, you may try the following:
Download GitHub CLI and authenticate it (i.e. run any gh <command> in a context of a GitHub repository) on a computer where you're running a desktop environment;
Copy the ~/.config/gh/config.yml file from this machine to your Raspberry PI.
Activity
mislav commentedon Feb 17, 2020
Thank you for reporting!
To open the browser on Linux, gh uses
xdg-open, which for your platform tries to open Chromium, which fails with the aforementioned error. I'm not sure why Chromium fails, but I'm sure that unless you're running a desktop environment on your Raspberry PI and can interact with a graphical browser, you won't be able to authenticate this way even if Chromium worked.This issue has the same root cause as #286, even though they appear very different.
To work around this for now, you may try the following:
gh <command>in a context of a GitHub repository) on a computer where you're running a desktop environment;~/.config/gh/config.ymlfile from this machine to your Raspberry PI.Let us know if it worked!
[-]GetVSyncParametersIfAvailable() failed for 1 times![/-][+]Error authenticating/opening browser on Raspberry PI[/+]tierninho commentedon Mar 25, 2020
Closing as it is a stale issue and a workaround was provided.