Skip to content

Decky tailscale controller broke tailscaled #31

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

Open
Angel4371 opened this issue Dec 13, 2024 · 20 comments
Open

Decky tailscale controller broke tailscaled #31

Angel4371 opened this issue Dec 13, 2024 · 20 comments

Comments

@Angel4371
Copy link

Been trying to fix this for hours

Ran the uninstall and re install script

Tried to get the qr code

Says to run sudo systemctl start tailscaled

Get this error

Job for tailscaled.service failed because the control process exited with error code.
See "systemctl status tailscaled.service" and "journalctl -xeu tailscaled.service" for details.

Try to get info and it returns with this

tailscaled.service - Tailscale node agent
Loaded: loaded (/etc/systemd/system/tailscaled.service; disabled; preset: disabled)
Active: failed (Result: exit-code) since Fri 2024-12-13 02:42:15 CST; 6min ago
Docs: https://tailscale.com/kb/
Process: 6948 ExecStart=/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port=${PORT} $FLAGS >
Process: 6950 ExecStopPost=/usr/sbin/tailscaled --cleanup (code=exited, status=203/EXEC)
Main PID: 6948 (code=exited, status=203/EXEC)
CPU: 11ms

Dec 13 02:42:15 (nsfw system name) systemd[1]: tailscaled.service: Scheduled restart job, restart counter is at 5.
Dec 13 02:42:15 (nsfw system name) systemd[1]: tailscaled.service: Start request repeated too quickly.
Dec 13 02:42:15 (nsfw system name) systemd[1]: tailscaled.service: Failed with result 'exit-code'.
Dec 13 02:42:16 (nsfw system name)systemd[1]: Failed to start Tailscale node agent.
Lines 1-13/13 (END)

I have no idea what to do, please help.

@legowerewolf
Copy link
Contributor

If you run journalctl -xeu tailscaled.service does it give you more information? You may have to scroll back a little bit.

@Angel4371
Copy link
Author

Will do very soon, thank you for the quick reply

@Angel4371
Copy link
Author

░░ The process' exit code is 'exited' and its exit status is 203.
Dec 14 22:49:43 (system name) systemd[1]: tailscaled.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit tailscaled.service has entered the 'failed' state with result 'exit-code'.
Dec 14 22:49:43 (system name) systemd[1]: Failed to start Tailscale node agent.
░░ Subject: A start job for unit tailscaled.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit tailscaled.service has finished with a failure.
░░
░░ The job identifier is 4170 and the job result is failed.
Dec 14 22:49:43 (system name)[1]: tailscaled.service: Scheduled restart job, restart counter is at 5.
░░ Subject: Automatic restarting of a unit has been scheduled
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ Automatic restarting of the unit tailscaled.service has been scheduled, as the result for
░░ the configured Restart= setting for the unit.
Dec 14 22:49:43 (system name)[1]: tailscaled.service: Start request repeated too quickly.
Dec 14 22:49:43 (system name) systemd[1]: tailscaled.service: Failed with result 'exit-code'.
░░ Subject: Unit failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ The unit tailscaled.service has entered the 'failed' state with result 'exit-code'.
Dec 14 22:49:43 (system name) systemd[1]: Failed to start Tailscale node agent.
░░ Subject: A start job for unit tailscaled.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit tailscaled.service has finished with a failure.
░░
░░ The job identifier is 4298 and the job result is failed.

@legowerewolf
Copy link
Contributor

203, hm? Are you sure the Tailscale binary's in the right place and is executable?

@Angel4371
Copy link
Author

How do I make sure of this? Sorry, I am a bit inexperienced with this

@legowerewolf
Copy link
Contributor

What do you get when you run ls -la /opt/tailscale and cat /etc/systemd/system/tailscaled.service?

@Angel4371
Copy link
Author

total 54556
drwxr-xr-x 2 root root 4096 Sep 7 17:56 .
drwxr-xr-x 3 root root 4096 Sep 7 17:56 ..
-rwxr-xr-x 1 root root 19309431 Dec 13 01:34 tailscale
-rwxr-xr-x 1 root root 36539989 Dec 13 01:34 tailscaled

[Unit]
Description=Tailscale node agent
Documentation=https://tailscale.com/kb/
Wants=network-pre.target
After=network-pre.target NetworkManager.service systemd-resolved.service

[Service]
EnvironmentFile=/etc/default/tailscaled
ExecStart=/usr/sbin/tailscaled --state=/var/lib/tailscale/tailscaled.state --socket=/run/tailscale/tailscaled.sock --port=${PORT} $FLAGS
ExecStopPost=/usr/sbin/tailscaled --cleanup

Restart=on-failure

RuntimeDirectory=tailscale
RuntimeDirectoryMode=0755
StateDirectory=tailscale
StateDirectoryMode=0700
CacheDirectory=tailscale
CacheDirectoryMode=0750
Type=notify

[Install]
WantedBy=multi-user.target

@legowerewolf
Copy link
Contributor

Hm. So it looks like your Tailscale binaries are good. With this config file, they're in the wrong place, but... I didn't think to ask before, but is there a systemd override file? Is there a directory /etc/systemd/system/tailscaled.service.d/ and what, if anything, is in there?

@Angel4371
Copy link
Author

I have something called override.conf.bak

@legowerewolf
Copy link
Contributor

And that's the only file in there? Seems like you need to download override.conf from this repo and put it in that directory.

@Angel4371
Copy link
Author

it's not letting me put anything in that folder, is there something special I have to do to let me put it in there?

@legowerewolf
Copy link
Contributor

Something like sudo mv path/to/downloaded/override.conf /etc/systemd/system/tailscaled.service.d/override.conf ought to work.

@Angel4371
Copy link
Author

Angel4371 commented Dec 31, 2024

yeah just changed the ownership of the folder to deck which let me put it in there, with the override.conf and override.conf.bak in there, is there anything else that should be in there?

@Angel4371
Copy link
Author

seems like that didn't fix it, I'm still not able to connect to my home pc while out on my hotspot

@legowerewolf
Copy link
Contributor

sudo systemctl daemon-reload to make sure its loaded the changes

@Angel4371
Copy link
Author

it's still saying that all devices are unavailable to connect to

@legowerewolf
Copy link
Contributor

ccing @diericx because it's his install method

@Angel4371
Copy link
Author

ccing @diericx because it's his install method

alright, thank you :)

@Angel4371
Copy link
Author

Angel4371 commented Jan 1, 2025

the issue of it connecting has been solved, but now on reboot it doesn't auto connect to the tailscale server, what should I run to make sure it runs on startup now?

Edit: after reading this issue #16 I checked that the tailscaled.service file is still in rootfs/etc/systemd/system, but I have not done anything to it yet to try to make it start up automatically

@legowerewolf
Copy link
Contributor

sudo systemctl enable tailscaled --now

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants