tailscale / tailscale-qpkg

Package Tailscale client in QPKG
MIT License
458 stars 38 forks source link

On install, I think the instructions are missing a step. #43

Open obra opened 2 years ago

obra commented 2 years ago

I think the instructions may want a ./Tailscale.sh start

[/share/CACHEDEV1_DATA/.qpkg/Tailscale] # ./tailscale -socket var/run/tailscale/tailscaled.sock up
failed to connect to local tailscaled; it doesn't appear to be running (sudo systemctl start tailscaled ?)
[/share/CACHEDEV1_DATA/.qpkg/Tailscale] # systemctl start tailscaled
-sh: systemctl: command not found
[/share/CACHEDEV1_DATA/.qpkg/Tailscale] # ./Tailscale.sh
Usage: ./Tailscale.sh {start|stop|restart|remove}
[/share/CACHEDEV1_DATA/.qpkg/Tailscale] # ./Tailscale.sh start
[/share/CACHEDEV1_DATA/.qpkg/Tailscale] # ./tailscale -socket var/run/tailscale/tailscaled.sock up

To authenticate, visit:
ivokub commented 2 years ago

Hi @obra - usually QNAP starts the Tailscale service itself after installation. Are you sure that the installation succeeded? Does Tailscale start automatically after QNAP reboot?

obra commented 2 years ago

On Mon, Jul 18, 2022, at 1:42 AM, Ivo Kubjas wrote:

Hi @obra https://github.com/obra - usually QNAP starts the Tailscale service itself after installation. Are you sure that the installation succeeded? Does Tailscale start automatically after QNAP reboot?

At the time it claimed the install succeeded. It does not appear to start cleanly at boot, though. (I can't reboot the device in question often, so wasn't aware of that until this past weekeend.)

— Reply to this email directly, view it on GitHub https://github.com/ivokub/tailscale-qpkg/issues/43#issuecomment-1186927600, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAALC2HZCM2XTBFBWSQPPH3VUUKHBANCNFSM53CZZO4A. You are receiving this because you were mentioned.Message ID: @.***>

ivokub commented 2 years ago

Hmm, strange. The package is configured to start automatically. Fact that it works manually indicates that there may be either some configuration which prevents auto-start or there is some race condition. Is there anything particular in your configuration maybe? Have you installed Tailscale as admin or user account?

ivokub commented 2 years ago

It is late, but there was a similar problem in #44. When the user installed the QVPN package, the Tailscale package started working. The problem is that on older device/QTS we do not have the necessary kernel module for the Wireguard tunnel to work, but QVPN package installs it. Newer QTS includes it by default.

Could you try installing QVPN package and reporting if it fixed?

simonkern commented 1 year ago

I encounter a similar issue:

/tailscale -socket  /tmp/tailscale/tailscaled.sock up

failed to connect to local tailscaled (which appears to be running as tailscaled, pid 6113). Got error: Failed to connect to local Tailscale daemon for /localapi/v0/status; not running? Error: dial unix /tmp/tailscale/tailscaled.sock: connect: no such file or directory

However, when I try to bring tailscale up via Tailscale.sh, I get another error:

./Tailscale.sh: line 18: [: -d: binary operator expected

Changing if [ test -d /proc/${PID}/ ]; then to if [ -d /proc/${PID}/ ]; then in Tailscale.sh resolves that error.

However, the socket is located unter /tmp/tailscale/tailscale.sock instead of the path mentioned in the first comment.

Running

./tailscale -socket /tmp/tailscale/tailscaled.sock up

was then finally successful for me.