Skip to content

Error authenticating/opening browser on Raspberry PI #479

Closed

Description

@target111

Describe the bug

Fails on raspberry pi 4 with these errors:

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

Steps to reproduce the behavior

Try to authenticate in the browser.

Expected vs actual behavior

It should authenticate, not error and halt.

Activity

  1. mislav commented on Feb 17, 2020

    @mislav
    Contributor

    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:

    1. 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;
    2. Copy the ~/.config/gh/config.yml file from this machine to your Raspberry PI.

    Let us know if it worked!

  2. changed the title [-]GetVSyncParametersIfAvailable() failed for 1 times![/-] [+]Error authenticating/opening browser on Raspberry PI[/+] on Feb 17, 2020
  3. tierninho commented on Mar 25, 2020

    @tierninho
    Contributor

    Closing as it is a stale issue and a workaround was provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    more-info-neededMore info needed from user/contributor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions