adyanth / openwrt-tailscale-enabler

Brings Tailscale to low powered OpenWRT devices
MIT License
1.2k stars 185 forks source link

/tmp/tailscale: line 1: syntax error: unexpected "(" #1

Closed tediorelee closed 3 years ago

tediorelee commented 3 years ago

hello: when I'm using tailscale on my openwrt router, I followed your docs and ran into this error is there any way to solve it ?

image

thanks

adyanth commented 3 years ago

This repo was targeted towards mips based processors running openwrt. What are you running it on? Seems to be arm?

The output of uname -m would give you that. Use your processor architecture in the version field of /usr/bin/tailscale and /usr/bin/tailscaled files.

The valid architectures for tailscale are: 386, amd64, arm, arm64, mips, mipsle. See the tailscale package repo for info.

tediorelee commented 3 years ago

thanks for your reply after I change the version field based on my processor architecture, version='1.6.0_amd64', and I repacked the .tgz file, after all of this I get this error image

adyanth commented 3 years ago

There is no need to repackage it as a tar. It seems to be that the tailscaled service has not started, so the tailscale cli cannot connect to its socket. Sadly, the init system wont show much when it fails, but you can check the dmesg to see if anything went wrong starting the tailscale daemon. Can you try to use the same tar but then edit the files in openwrt and then follow the rest of the steps?

Also, you seem to have enough space in disk running on an x64 platform. This was for running it on routers whose flash is not large enough for the tailscale binary. You can actually extract the binaries from here https://pkgs.tailscale.com/stable/#static and copy them to /usr/bin/tailscale and /usr/bin/tailscaled instead of using the bootstrap scripts I wrote. Then, you can proceed to use the init scripts from here since procd scripts are not provided by tailscale.

tediorelee commented 3 years ago

There is no need to repackage it as a tar. It seems to be that the tailscaled service has not started, so the tailscale cli cannot connect to its socket. Sadly, the init system wont show much when it fails, but you can check the dmesg to see if anything went wrong starting the tailscale daemon. Can you try to use the same tar but then edit the files in openwrt and then follow the rest of the steps?

Also, you seem to have enough space in disk running on an x64 platform. This was for running it on routers whose flash is not large enough for the tailscale binary. You can actually extract the binaries from here https://pkgs.tailscale.com/stable/#static and copy them to /usr/bin/tailscale and /usr/bin/tailscaled instead of using the bootstrap scripts I wrote. Then, you can proceed to use the init scripts from here since procd scripts are not provided by tailscale.

thanks a lot, I will try this evening and to see if it works😊