GithubHelp home page GithubHelp logo

Comments (6)

adyanth avatar adyanth commented on May 25, 2024 1

Your issue is due to running it on an ARM processor where the uname -m does not match the package name. Hardcoding the architecture would not help much. Could you send a PR to specifically check for armv7l and set the arch to arm if so?

from openwrt-tailscale-enabler.

keyakko avatar keyakko commented on May 25, 2024 1

I just created PR now. Please checkout it.
#7

from openwrt-tailscale-enabler.

adyanth avatar adyanth commented on May 25, 2024

Yes indeed. I was assuming that the link will exist, but apparently not. Only the latest stable and unstable builds.

People at Tailscale hope to have historical versions available on pkgs.tailscale.com soon: https://tailscale.com/kb/1032/install-files-all-versions/

Meanwhile, I can look into making the script check for the latest version and use that.

from openwrt-tailscale-enabler.

keyakko avatar keyakko commented on May 25, 2024

I had the same problem. But, I avoided the problem by adding the temporary change to the script /usr/bin/tailscale.

# diff /usr/bin/tailscale /tmp/usr/bin/tailscale
9c9
< version="${tailscale_version}_arm${endianness}"
---
> version="${tailscale_version}_${arch}${endianness}"

(/tmp/usr/bin/tailscale is the original source code(v1.8.5-0897f11).)

In my environment, just worked.
Screen Shot 2021-08-14 at 19 03 57

I think the script needs to add an architecture name check.
In my environment, the result of uname -m is like below.

# uname -m
armv7l

armv7l is 32bit processor. It is expected that tailscale_1.8.5_arm.tgz will be downloaded, but it will attempt to download tailscale_1.8.5_armv7l.tgz.

from openwrt-tailscale-enabler.

keyakko avatar keyakko commented on May 25, 2024

I added a change to /usr/bin/tailscaled that had a similar effect. I just had a successful authentication.

# diff /usr/bin/tailscaled /tmp/usr/bin/tailscaled
3c3
< arch=arm
---
> arch=`uname -m`

(This change is cleaner than the change I made in the previous post... I'm sorry for the disorganized message.)

from openwrt-tailscale-enabler.

adyanth avatar adyanth commented on May 25, 2024

For the initial problem in this issue, something like this works:

curl -q https://pkgs.tailscale.com/stable/ | grep tailscale_ -m 1 | cut -d'_' -f 2

Thinking of whether to implement this in the shell script (and breaking the auto releaser github workflow in the process) or add this as a workflow cron to update every other week or so.

from openwrt-tailscale-enabler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.