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.25k stars 517 forks source link

How troubleshooting run/start netbird-ui? #2429

Open patsevanton opened 3 months ago

patsevanton commented 3 months ago

Describe the problem netbird-ui can not start. netbird-ui not show gui application

Are you using NetBird Cloud? No Please specify whether you use NetBird Cloud or self-host NetBird's control plane. self-host NetBird NetBird version

netbird version netbird version 0.28.7

NetBird status -dA output:

If applicable, add the `netbird status -dA' command output.

Daemon status: NeedsLogin

Run UP command to log in with SSO (interactive login):

 netbird up 

If you are running a self-hosted version and no SSO provider has been configured in your Management Server,
you can use a setup-key:

 netbird up --management-url <YOUR_MANAGEMENT_URL> --setup-key <YOUR_SETUP_KEY>

More info: https://docs.netbird.io/how-to/register-machines-using-setup-keys

Do you face any client issues on desktop?

Please provide the file created by netbird debug for 1m -AS. We advise reviewing the anonymized files for any remaining PII.

Screenshots image

If applicable, add screenshots to help explain your problem.

Additional context

DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=23.10
DISTRIB_CODENAME=mantic
DISTRIB_DESCRIPTION="Ubuntu 23.10"
PRETTY_NAME="Ubuntu 23.10"

Add any other context about the problem here.

pascal-fischer commented 3 months ago

Hi @patsevanton, there is an option to run netbird-ui -use-log-file this will create a logfile and print any error messages to /tmp/netbird-ui-*.log. If there is no file created that means the ui client didn't encounter any errors.

patsevanton commented 3 months ago

I run

netbird-ui -use-log-file /tmp/netbird-ui.log

and

cat /tmp/netbird-ui.log
cat: /tmp/netbird-ui.log: No such file or directory
pascal-fischer commented 3 months ago

This flag is not straight forward. You can not specify a path after this it really is just netbird-ui -use-log-file and then a file is being created in the temp folder following the format /tmp/netbird-ui-*.log. So there is no option for custom paths.

On a different topic. What window manager are you using? for the more special ones what systray application are you using?

patsevanton commented 3 months ago

I run

netbird-ui -use-log-file

i don`t show /tmp/netbird-ui-*.log

cat /tmp/netbird-*
cat: '/tmp/netbird-*': No such file or directory

fastfetch:

OS: Ubuntu mantic 23.10 x86_64
Host: Redmi Book Pro 15 2022
Kernel: Linux 6.5.0-44-generic
Uptime: 2 hours, 17 mins
Packages: 3151 (dpkg), 36 (snap)
Shell: bash 5.2.15
Display (TMX1560): 3200x2000 @ 90 Hz in 16″
DE: GNOME 45.2
WM: Mutter (X11)
WM Theme: Yaru
Theme: Yaru [GTK2/3/4]
Icons: Yaru [GTK2/3/4]
Font: Ubuntu (11pt) [GTK2/3/4]
Cursor: Yaru (24px)
Terminal: GNOME Terminal 3.49.92
Terminal Font: FiraMono Nerd Font (12pt)
CPU: AMD Ryzen 7 6800H (16) @ 4.79 GHz
GPU: AMD Radeon 680M [Integrated]
Memory: 6.63 GiB / 14.80 GiB (45%)
Swap: 0 B / 15.10 GiB (0%)
Disk (/): 198.49 GiB / 467.35 GiB (42%) - ext4
Local IP (wlp1s0): 192.168.0.121/24
Battery: 97% [Charging]
Locale: en_US.UTF-8
kokel commented 2 months ago

I think I have the same issue, 0.28.5 is working. But the current version (0.28.9) doesn't start here on Archlinux. The log file isn't created here, neither. Only if I start netbird-ui via root.

I get the following message if I start netbird-ui in user terminal:

❯ netbird-ui -use-log-file
2024/08/30 08:35:53 systray error: failed to register: The name is not activatable
JirakLu commented 2 months ago

This fixed the issue for me https://github.com/fyne-io/systray/issues/75#issuecomment-1977843140