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

Unable to open Gitify on Pop!_OS 22.04 #1612

Open
1 task done
boundless-forest opened this issue Oct 29, 2024 · 22 comments
Open
1 task done

Unable to open Gitify on Pop!_OS 22.04 #1612

boundless-forest opened this issue Oct 29, 2024 · 22 comments
Assignees
Labels
bug Something isn't working help-wanted Extra attention is needed platform:linux Related to linux build priority:medium Items of medium importance. Applicable to most users or use-cases

Comments

@boundless-forest
Copy link

boundless-forest commented Oct 29, 2024

🔍 Is there already an issue for your problem?

  • I have checked older issues, open and closed

📝 Description

I discovered Gitify this afternoon and attempted to install the deb version on PopOS first, which installed successfully. However, when I click the icon, the Gitify window does not open. The icon appears in the system bar, but there is no response when clicked.

image

I checked the process info like this:

bear@pop-os ~/Downloads> ps aux | grep gitify
bear      123381  2.8  0.6 1212191996 153208 ?   SNl  16:59   0:00 /opt/Gitify/gitify
bear      123388  0.1  0.2 33816956 51840 ?      SN   16:59   0:00 /opt/Gitify/gitify --type=zygote --no-zygote-sandbox
bear      123389  0.0  0.2 33816940 51840 ?      SN   16:59   0:00 /opt/Gitify/gitify --type=zygote
bear      123391  0.0  0.0 33816940 10656 ?      SN   16:59   0:00 /opt/Gitify/gitify --type=zygote
bear      123418  2.3  0.6 34321032 161188 ?     SNl  16:59   0:00 /opt/Gitify/gitify --type=gpu-process --enable-crash-reporter=a4b59d2d-2696-4de5-9e0c-b3e5031a8baf,no_channel --user-data-dir=/home/bear/.config/gitify --gpu-preferences=UAAAAAAAAAAgAAAEAAAAAAAAAAAAAAAAAABgAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAQAAABAAAAAAAAAAEAAAAAAAAAAIAAAAAAAAAAgAAAAAAAAA --shared-files --field-trial-handle=3,i,1101294913920176142,9749069726429956090,262144 --disable-features=SpareRendererForSitePerProcess --variations-seed-version
bear      123422  0.1  0.2 33882968 67200 ?      SNl  16:59   0:00 /opt/Gitify/gitify --type=utility --utility-sub-type=network.mojom.NetworkService --lang --service-sandbox-type=none --enable-crash-reporter=a4b59d2d-2696-4de5-9e0c-b3e5031a8baf,no_channel --user-data-dir=/home/bear/.config/gitify --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,1101294913920176142,9749069726429956090,262144 --disable-features=SpareRendererForSitePerProcess --variations-seed-version
bear      123433  1.5  0.5 1212041756 141748 ?   SNl  16:59   0:00 /opt/Gitify/gitify --type=renderer --enable-crash-reporter=a4b59d2d-2696-4de5-9e0c-b3e5031a8baf,no_channel --user-data-dir=/home/bear/.config/gitify --app-path=/opt/Gitify/resources/app.asar --no-sandbox --no-zygote --lang --num-raster-threads=4 --enable-main-frame-before-activation --renderer-client-id=4 --time-ticks-at-unix-epoch=-1730163822039494 --launch-time-ticks=28540830037 --shared-files=v8_context_snapshot_data:100 --field-trial-handle=3,i,1101294913920176142,9749069726429956090,262144 --disable-features=SpareRendererForSitePerProcess --variations-seed-version
bear      123697  0.0  0.0  19016  2688 pts/2    SN+  16:59   0:00 grep --color=auto gitify

I guess AppImage might work, so I’ll give it a try, but no luck. The Gitify window still hasn’t popped up.

The AppImage console output:

14:58:10.708 › Electron's autoUpdater does not support the 'linux' platform. Ref: https://www.electronjs.org/docs/latest/api/auto-updater#platform-notices

I'm not sure what to do next; perhaps there's a way to output a debug log?

🪜 Steps To Reproduce

  1. Download the appImage or deb version
  2. Run it

Gitify Version

5.16.1

Operating System

PopOs 22.04

@boundless-forest boundless-forest added the bug Something isn't working label Oct 29, 2024
@bmulholland
Copy link
Collaborator

bmulholland commented Oct 29, 2024

There's not enough information included in this Issue for us to act on it:

  1. The message you quote is expected, and is an upstream issue anyway. It wouldn't block Gitify from working, just from automatically upgrading.
  2. If Gitify truly isn't working, you'll need to include what isn't working and why. As Linux setups vary widely, we can't feasibly reproduce your error, so you'll either need to provide repro steps or do significant debugging on your own.

In general, filing Issues saying simply "not works" isn't a good use of anyone's time, for any project. If you're unsure about your English, there's more than enough LLMs out there to help you translate. They could also guide you through common debugging steps, and suggest what you could do to fill out an effective bug report. If you're unsure what even to prompt it, you could copy paste my message and your issue and it would probably explain in whatever language you'd like.

Happy to re-open this if sufficiently more information is provided later.

@boundless-forest boundless-forest changed the title Linux not works Unable to open Gitify on Pop!_OS 22.04 Oct 29, 2024
@boundless-forest
Copy link
Author

I sincerely apologize for my informal description of the issue. I have added more details to it; would you mind reviewing it again? Please feel free to ask me for any additional information if needed. @bmulholland

@bmulholland bmulholland reopened this Oct 29, 2024
@bmulholland
Copy link
Collaborator

Much better, thank you!

@setchy setchy added the platform:linux Related to linux build label Oct 29, 2024
@setchy
Copy link
Member

setchy commented Oct 31, 2024

@boundless-forest if possible, I'd be interested to hear your experience running Gitify from source code on your PopOS machine. Does that work?

@boundless-forest
Copy link
Author

I'm stuck at the first step when installing dependencies; it reports the following error, indicating something unexpected in the post-install script.

> ~/w/gitify on main ◦ pnpm install                                                                                                                                                                                                                                              13:58:56
Lockfile is up to date, resolution step is skipped
Packages: +2 -20
++--------------------
Progress: resolved 0, reused 21, downloaded 1, added 2, done
node_modules/electron: Running postinstall script, failed in 2m 15.9s
node_modules/electron postinstall$ node install.js
│ RequestError
│     at ClientRequest.<anonymous> (/home/bear/working-on/gitify/node_modules/got/dist/source/core/index.js:970:111)
│     at Object.onceWrapper (node:events:622:26)
│     at ClientRequest.emit (node:events:519:35)
│     at origin.emit (/home/bear/working-on/gitify/node_modules/@szmarczak/http-timer/dist/source/index.js:43:20)
│     at emitErrorEvent (node:_http_client:103:11)
│     at TLSSocket.socketErrorListener (node:_http_client:506:5)
│     at TLSSocket.emit (node:events:507:28)
│     at emitErrorNT (node:internal/streams/destroy:170:8)
│     at emitErrorCloseNT (node:internal/streams/destroy:129:3)
│     at process.processTicksAndRejections (node:internal/process/task_queues:90:21)AggregateError [ETIMEDOUT]: 
│     at internalConnectMultiple (node:net:1128:18)
│     at afterConnectMultiple (node:net:1693:7)
└─ Failed in 2m 15.9s at /home/bear/working-on/gitify/node_modules/electron
 ELIFECYCLE  Command failed with exit code 1.

@bmulholland
Copy link
Collaborator

Yeah, env issues can be frustrating! Let us know when you've worked through issues installing electron etc and have details on running Gitify itself.

@farfromrefug
Copy link

ACtually i have the exact same issue on PopOS 22.04. The tray appear but does not react to click (left/right).
i tried to build locally and run and got the same error. Not sure how to debug this. Must be related to the lib used for tray icons in Electron.
I see some issues in electron repo electron/electron#37112. The issue must be related to libayatana-appindicator. WHat i can say is that it works with my fork using tauri. So it does not seem to be related to ubuntu setup/config

@setchy setchy added the priority:low Items of low importance. Applicable to select few users or use-cases label Dec 22, 2024
@ronilaukkarinen
Copy link

I have this same issue. Can't be used right now on Pop!_OS.

@setchy
Copy link
Member

setchy commented Dec 23, 2024

Curious if any of you have tried downgrading Gitify. I'm interested in what is the latest working version

@setchy setchy added the help-wanted Extra attention is needed label Dec 23, 2024
@boundless-forest
Copy link
Author

boundless-forest commented Dec 26, 2024

image

I did a test with those versions, neither of them works, but I noticed a strange log in the installation, not sure if it's helpful.

> ~/Downloads sudo dpkg -i gitify_5.10.0_amd64.deb                                                                                                                                                                                                                               13:49:46
dpkg: warning: downgrading gitify from 5.17.0 to 5.10.0
(Reading database ... 235664 files and directories currently installed.)
Preparing to unpack gitify_5.10.0_amd64.deb ...
Unpacking gitify (5.10.0) over (5.17.0) ...
Setting up gitify (5.10.0) ...
update-alternatives is /usr/bin/update-alternatives
Could not parse file "/usr/share/applications/guake.desktop": No such file or directory  // this line
Processing triggers for hicolor-icon-theme (0.17-2) ...
Processing triggers for mailcap (3.70+nmu1ubuntu1) ...
Processing triggers for desktop-file-utils (0.26-1ubuntu3) ...
Processing triggers for gnome-menus (3.36.0-1ubuntu3) ...

The log looks like this:

> ~ cat ~/.config/gitify/logs/main.log                                                                                                                                                                                                                                           14:00:26
[2024-12-26 13:36:47.848] [info]  Electron's autoUpdater does not support the 'linux' platform. Ref: https://www.electronjs.org/docs/latest/api/auto-updater#platform-notices
[2024-12-26 13:41:42.718] [info]  Electron's autoUpdater does not support the 'linux' platform. Ref: https://www.electronjs.org/docs/latest/api/auto-updater#platform-notices
[2024-12-26 13:42:00.910] [info]  Electron's autoUpdater does not support the 'linux' platform. Ref: https://www.electronjs.org/docs/latest/api/auto-updater#platform-notices
[2024-12-26 13:42:31.155] [info]  Electron's autoUpdater does not support the 'linux' platform. Ref: https://www.electronjs.org/docs/latest/api/auto-updater#platform-notices
[2024-12-26 13:46:09.007] [info]  Electron's autoUpdater does not support the 'linux' platform. Ref: https://www.electronjs.org/docs/latest/api/auto-updater#platform-notices
[2024-12-26 13:46:37.737] [info]  Electron's autoUpdater does not support the 'linux' platform. Ref: https://www.electronjs.org/docs/latest/api/auto-updater#platform-notices
[2024-12-26 13:51:21.548] [info]  Electron's autoUpdater does not support the 'linux' platform. Ref: https://www.electronjs.org/docs/latest/api/auto-updater#platform-notices

@setchy
Copy link
Member

setchy commented Dec 26, 2024

Thanks @boundless-forest

So to confirm my understanding, these versions were tested and found incompatible with PopOS

  • v4.4.0
  • v5.0.0
  • v5.5.0
  • v5.10.0
  • v5.15.0
  • v5.17.0

Re: the autoUpdater log entry, that is expected - https://github.com/electron/update.electronjs.org only supports Windows and macOS currently

@boundless-forest
Copy link
Author

Yes, it's a bit strange that I noticed from the GitHub issues that Gitify appears to work on other Linux platforms except Pop!_OS. However, since Pop!_OS is based on Ubuntu, it should function properly as well. I have researched this issue extensively but have not found a workaround. Do you have any suggestions?

@setchy
Copy link
Member

setchy commented Dec 27, 2024

Do you have any suggestions?

I'd continue to debug the logic within https://github.com/gitify-app/gitify/blob/main/src/main/main.ts, which controls showing/hiding the main window with the help of the package https://github.com/max-mapper/menubar

@boundless-forest
Copy link
Author

I'm here if anything that I can help. Please tell me.

@setchy
Copy link
Member

setchy commented Jan 3, 2025

I'm here if anything that I can help. Please tell me.

Thank you. As above, I'd recommend continuing to debug those areas. The maintainers don't have readily access to an environment to reproduce atm

@nachog00
Copy link

nachog00 commented Jan 7, 2025

Im getting a similar problem, even though for me, the window does appear very briefly and dissapears. It did appear alright when i first logged in tho.
I'm not on PopOs.

I'm running the AppImage.

OS ➜ Arch Linux x86_64
├  ➜ Linux 6.12.4-arch1-1
└  ➜ bash 5.2.37

WM ➜ Hyprland (Wayland)
├ 󰀻 ➜ Papirus [GTK2/3]
├  ➜ Bibata-Modern-Ice (24px)
├  ➜ zellij 0.41.2

@hazemadelkhalel
Copy link

hazemadelkhalel commented Feb 2, 2025

I have the same issue, After installing the gitify_5.18.0_amd64.deb file when I tried to open the application the icon only appeared in the top bar but didn't appear.

I am using Ubuntu 22.04.5 LTS

@setchy setchy added priority:medium Items of medium importance. Applicable to most users or use-cases and removed priority:low Items of low importance. Applicable to select few users or use-cases labels Feb 2, 2025
@setchy
Copy link
Member

setchy commented Feb 2, 2025

I have the same issue, After installing the gitify_5.18.0_amd64.deb file when I tried to open the application the icon only appeared in the top bar but didn't appear.

I am using Ubuntu 22.04.5 LTS

I have an Ubuntu 24.04.1 LTS VM and was able to verify both 5.18.0 running and the upcoming 6.0.0 release

To install and run gitify I had to do a few steps

Install

sudo apt install /tmp/gitify-installers/gitify_5.18.0_amd64.deb

First Launch
The app did not launch for the first time.

Running gitify via the terminal or checking the output of journalctl -xe | grep gitify unveiled permission issues re: chrome-sandbox

Fix Chrome Sandbox permissions
Running the below to fix the permissions for the chrome sandbox

sudo chown root:root /opt/Gitify/chrome-sandbox
sudo chmod 4755 /opt/Gitify/chrome-sandbox

Success

5.18.0 6.0.0
Image Image

I don't have a PopOS VM so wasn't able to test this variant

@hazemadelkhalel
Copy link

I have followed all the steps you provided, but it still doesn’t work. I encountered the same permission issue you mentioned and executed the commands you suggested. However, even after doing so, the problem persists. I killed the process and restarted it, but the issue remains unchanged. I also restarted the machine, but unfortunately, the result is still the same.

journalctl -xe | grep gitify this doesn't show anything

should I wait for the next release?

@setchy
Copy link
Member

setchy commented Feb 2, 2025

I have followed all the steps you provided, but it still doesn’t work.

Damn!

should I wait for the next release?

you're welcome to report back with v6.0.0, but please note there isn't any specific changes related to this.

This morning I tested all releases from v5.12.1 through to v6.0.0 on my Ubuntu VM and they worked by following the above steps.

To resolve this for other users like yourself, I'll need further community assistance with debugging.

@setchy
Copy link
Member

setchy commented Feb 2, 2025

@hazemadelkhalel - apologies, i noticed I made a typo above

The second script should be chmod not chown

sudo chown root:root /opt/Gitify/chrome-sandbox
sudo chmod 4755 /opt/Gitify/chrome-sandbox

I've also added this as a FAQ on https://gitify.io/faq

@hazemadelkhalel
Copy link

Issue:

After running sudo gitify --no-sandbox and debugging with @BemwaMalak, the following errors were encountered:

[41615:0202/215127.649577:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[41615:0202/215127.649639:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[41615:0202/215127.649654:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[41615:0202/215127.649668:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[41615:0202/215127.649683:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: 
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[41615:0202/215127.662262:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[41615:0202/215127.681272:ERROR:bus.cc(407)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")
[41615:0202/215127.695278:ERROR:object_proxy.cc(576)] Failed to call method: org.freedesktop.DBus.NameHasOwner: object_path= /org/freedesktop/DBus: unknown error type: 
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[41781:0202/215127.695730:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[41781:0202/215127.695831:ERROR:gl_display.cc(493)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[41781:0202/215127.695882:ERROR:gl_display.cc(762)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified
[41781:0202/215127.696037:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[41781:0202/215127.696082:ERROR:gl_display.cc(493)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[41781:0202/215127.696112:ERROR:gl_display.cc(762)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[41781:0202/215127.696141:ERROR:gl_display.cc(796)] Initialization of all EGL display types failed.
[41781:0202/215127.696172:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
Authorization required, but no authorization protocol specified
[41781:0202/215127.715562:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[41781:0202/215127.715665:ERROR:gl_display.cc(493)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[41781:0202/215127.715748:ERROR:gl_display.cc(762)] eglInitialize OpenGL failed with error EGL_NOT_INITIALIZED, trying next display type
Authorization required, but no authorization protocol specified
[41781:0202/215127.716102:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Could not open the default X display.
[41781:0202/215127.716138:ERROR:gl_display.cc(493)] EGL Driver message (Critical) eglInitialize: Could not open the default X display.
[41781:0202/215127.716164:ERROR:gl_display.cc(762)] eglInitialize OpenGLES failed with error EGL_NOT_INITIALIZED
[41781:0202/215127.716189:ERROR:gl_display.cc(796)] Initialization of all EGL display types failed.
[41781:0202/215127.716213:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[41781:0202/215127.717006:ERROR:viz_main_impl.cc(185)] Exiting GPU process due to errors during initialization
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[41816:0202/215127.780113:ERROR:angle_platform_impl.cc(44)] DisplayVkXcb.cpp:58 (initialize): xcb_connect() failed, error 1
ERR: DisplayVkXcb.cpp:58 (initialize): xcb_connect() failed, error 1
[41816:0202/215127.780276:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Not initialized.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Not initialized.
[41816:0202/215127.780325:ERROR:gl_display.cc(493)] EGL Driver message (Critical) eglInitialize: Not initialized.
[41816:0202/215127.780355:ERROR:gl_display.cc(762)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[41816:0202/215127.780392:ERROR:gl_display.cc(796)] Initialization of all EGL display types failed.
[41816:0202/215127.780423:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
Authorization required, but no authorization protocol specified
[41816:0202/215127.812559:ERROR:angle_platform_impl.cc(44)] DisplayVkXcb.cpp:58 (initialize): xcb_connect() failed, error 1
ERR: DisplayVkXcb.cpp:58 (initialize): xcb_connect() failed, error 1
[41816:0202/215127.812655:ERROR:angle_platform_impl.cc(44)] Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Not initialized.
ERR: Display.cpp:1056 (initialize): ANGLE Display::initialize error 12289: Not initialized.
[41816:0202/215127.812759:ERROR:gl_display.cc(493)] EGL Driver message (Critical) eglInitialize: Not initialized.
[41816:0202/215127.812801:ERROR:gl_display.cc(762)] eglInitialize SwANGLE failed with error EGL_NOT_INITIALIZED
[41816:0202/215127.812836:ERROR:gl_display.cc(796)] Initialization of all EGL display types failed.
[41816:0202/215127.812870:ERROR:gl_ozone_egl.cc(26)] GLDisplayEGL::Initialize failed.
[41816:0202/215127.814657:ERROR:viz_main_impl.cc(185)] Exiting GPU process due to errors during initialization
Authorization required, but no authorization protocol specified
Authorization required, but no authorization protocol specified
[41826:0202/215127.859661:ERROR:x11_software_bitmap_presenter.cc(150)] XGetWindowAttributes failed for window 102760452

Diagnosis:

The errors indicate that the application is unable to connect to the X11 display server and the D-Bus message bus. This is likely due to missing or improperly configured dependencies related to the graphical environment (X11) and D-Bus.

Solution:

The issue was resolved by installing the dbus-x11 package, which provides the necessary D-Bus integration for X11 environments. To fix this, run the following command:

sudo apt-get install dbus-x11

This package ensures that the application can properly communicate with the X11 display server and D-Bus, resolving the errors related to display initialization and authorization.

Additional Notes:

If you are using a different desktop environment or display server (e.g., Wayland), you may need to install additional packages or configure your environment accordingly. For example, Wayland users might need to install wayland or weston packages.

If the issue persists after installing dbus-x11, ensure that your X11 server is running and properly configured. You can also try running the application with the --no-sandbox flag as a temporary workaround, though this is not recommended for long-term use due to security implications.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help-wanted Extra attention is needed platform:linux Related to linux build priority:medium Items of medium importance. Applicable to most users or use-cases
Projects
None yet
Development

No branches or pull requests

7 participants