Open dariusarnold opened 3 months ago
Hmmm... The URL that it sends you to for authentication is given to Trayscale by the Tailscale daemon. This may be a bit of a chicken and egg problem, as the login server can only be set when starting the server, unlike most options. There's a TODO in Tailscale's code to make it work like the other ones, but at the moment it does not.
Can you try changing the URL manually and then restarting Trayscale? It should be
$ tailscale up --login-server <URL>
It might complain about not setting other options that are already set. If so, just copy the options that it tells you about and add them to the above command. There is also a possibility that it'll need to be brought down manually with tailscale down
first.
If I set the URL using tailscale command and then start Trayscale, the URL will be shown in preferences. Trying to connect opens the browser with the custom URL passed in the command. So that is a valid workaround. I think it deserves mentioning in the README like the operator flag. Otherwise new users who try to setup the GUI first will run into this.
I experienced a minor issue when I first had a typo in the URL, making it not being resolved by DNS: Trayscale shows a modal popup asking me to confirm opening the Browser for the authentication. Confirming it shows a error message related to not being able to launch the browser (it was previously able to). This is the screenshot of the error:
The following is logged to console:
2024/03/22 20:39:55 systray error: failed to request name: org.freedesktop.DBus.Error.ServiceUnknown
2024/03/22 20:39:55 ERROR get waiting files err="Access denied: file access denied"
2024/03/22 20:39:55 ERROR adw_application_window_set_content: assertion 'gtk_widget_get_parent (content) == NULL' failed glib_old_log_api=1 priority=4 glib_domain=Adwaita
2024/03/22 20:39:55 ERROR get waiting files err="Access denied: file access denied"
2024/03/22 20:40:00 ERROR get waiting files err="Access denied: file access denied"
2024/03/22 20:40:02 WARN No IM module matching GTK_IM_MODULE=cedilla found priority=4 code_file=../gtk/gtkimmodule.c code_line=212 code_func=_gtk_im_module_get_default_context_id glib_domain=Gtk
2024/03/22 20:40:05 ERROR get waiting files err="Access denied: file access denied"
2024/03/22 20:40:10 ERROR get waiting files err="Access denied: file access denied"
2024/03/22 20:40:15 ERROR get waiting files err="Access denied: file access denied"
2024/03/22 20:40:20 ERROR get waiting files err="Access denied: file access denied"
The last line is then repeated infinitely every 5 s. I noticed ratelimits to bootstrapDNS in the tailscaled log and noticed the typo. But maybe the error message could show the URL it is failing to open.
Hi, I wanted to try Trayscale as a tailscale GUI client on my laptop. I have experienced the following issue when entering a custom Control Server URL:
Steps to reproduce:
Observed behaviour:
Expected behaviour:
Further analysis results
sudo tailscale set --operator=$USER
from the command line; I am unsure if there is a way for tailscale to print the config. But I can run 'tailscale serve reset' with my user account without sudo being required, while it requires sudo on another machine where I did not set the operatorI collected the following logs:
The lines with access denied are printed every time the characters get deleted.
Information about my system: I installed Trayscale using flatpak and tailscale from the Tumbleweed repository using zypper, this is the version information:
My system: KDE Plasma Version 6.0.2 with X11 KDE Frameworks Version 6.0.0 Qt Version 6.6.2