netbirdio / netbird

Connect your devices into a secure WireGuard®-based overlay network with SSO, MFA and granular access controls.
https://netbird.io
BSD 3-Clause "New" or "Revised" License
11.26k stars 517 forks source link

libappindicator3.so.1 is outdated and doesnt work on some linux distrubutions #2304

Open simen64 opened 4 months ago

simen64 commented 4 months ago

Describe the problem

On void-linux (may also be on other distros) the netbird-ui app wont load because it cant find libappindicator3.so.1 This library is outdated as the latest release was in 2012, and distros like void doesnt package it anymore. https://launchpad.net/libappindicator

To Reproduce

Steps to reproduce the behavior:

  1. Be on void linux or any other distro without libappindicator3.so.1
  2. Try launching netbird ui netbird-ui
  3. Get error: netbird-ui: error while loading shared libraries: libappindicator3.so.1: cannot open shared object file: No such file or directory

Expected behavior

Netbird UI launching

NetBird version

0.28.6

bcmmbaga commented 4 months ago

Hello @simen64 , can you check if libayatana-appindicator is available in void-linux?

simen64 commented 4 months ago

Yes it is in the repos

bcmmbaga commented 4 months ago

Could you please install it and test if NetBird-UI works?

simen64 commented 4 months ago

It gives the same error. According to this thread it needs to be fixed upstream https://www.reddit.com/r/voidlinux/comments/lfy5kv/error_while_loading_shared_libraries/

bcmmbaga commented 4 months ago

Can you download the NetBird-UI (this version does not contain support for the legacy indicator) https://github.com/netbirdio/netbird/actions/runs/10060312792/artifacts/1730753028 and then test if it works now?

simen64 commented 4 months ago

will test when i get back home to my void system

xadhoom commented 3 months ago

Same on Fedora 40, wanted to try the above link, but it states "Failed to generate URL to download artifact."

bcmmbaga commented 3 months ago

Same on Fedora 40, wanted to try the above link, but it states "Failed to generate URL to download artifact."

The previous link has expired. Please use this new link https://github.com/netbirdio/netbird/actions/runs/10060312792/artifacts/1768310854

xadhoom commented 3 months ago

Now the app "starts", but I get the following error:

2024/08/02 12:17:16 systray error: failed to register: The name is not activatable

And I cannot see the tray icon anywhere, but maybe this is a different issue. Using FC40 + Gnome + Wayland (which is the default of Fedora)

bcmmbaga commented 3 months ago

The name is not activatable

Did you install the deb and run it, or are you running the binary directly from the terminal?

xadhoom commented 3 months ago

Being Fedora, I installed the rpm and run it (from the terminal)

Now I've tried to run the amd64 binary present in the artifacts directly from the terminal, but got same result.

bcmmbaga commented 3 months ago

Being Fedora, I installed the rpm and run it (from the terminal)

Now I've tried to run the amd64 binary present in the artifacts directly from the terminal, but got same result.

To determine if this is a GNOME-specific issue, I recommend installing gnome-shell-extension-appindicator and test again.

xadhoom commented 3 months ago

Nice, with the suggested extension, the beta starts ok and is displayed correctly. thanks!

acarstoiu commented 3 months ago

Gentoo Linux has also masked libappindicator because it's been superseded by libayatana-appindicator.

netbird-ui 0.28.7 is (still) compiled with libappindicator3.so.1 among the required shared libraries.

acarstoiu commented 1 month ago

This can be closed, I've tested the 0.29.4 version.