Coder Social home page Coder Social logo

Comments (5)

adyanth avatar adyanth commented on May 17, 2024

That does not look to be the issue in the blog. For some reason, tar is not able to extract the downloaded file.

Can you download "https://pkgs.tailscale.com/stable/tailscale_1.32.2_mipsle.tgz" on your machine and use tar to extract it successfully? If so, can you run the bowl commands manually on your router and share the output? How much RAM (free) does your router have?

du -sh /tmp
df -h
mount
free -mh
wget -O- https://pkgs.tailscale.com/stable/ | grep tailscale_ | head -1 | cut -d'_' -f 2
echo -e "tailscale_1.32.2_mipsle/tailscale" > /tmp/tailscale_1.32.2_mipsle_files.txt
wget -O- https://pkgs.tailscale.com/stable/tailscale_1.32.2_mipsle.tgz | tar x -zvf - -C /tmp -T /tmp/tailscale_1.32.2_mipsle_files.txt

from openwrt-tailscale-enabler.

adyanth avatar adyanth commented on May 17, 2024

That is correct behavior. It can start extracting files when the rest is still being piped, it will cause wget to pause for a while. But tar should not say unexpected end of file.

from openwrt-tailscale-enabler.

SandiyosDev avatar SandiyosDev commented on May 17, 2024

That does not look to be the issue in the blog. For some reason, tar is not able to extract the downloaded file.

Can you download "https://pkgs.tailscale.com/stable/tailscale_1.32.2_mipsle.tgz" on your machine and use tar to extract it successfully? If so, can you run the bowl commands manually on your router and share the output? How much RAM (free) does your router have?

du -sh /tmp
df -h
mount
free -mh
wget -O- https://pkgs.tailscale.com/stable/ | grep tailscale_ | head -1 | cut -d'_' -f 2
echo -e "tailscale_1.32.2_mipsle/tailscale" > /tmp/tailscale_1.32.2_mipsle_files.txt
wget -O- https://pkgs.tailscale.com/stable/tailscale_1.32.2_mipsle.tgz | tar x -zvf - -C /tmp -T /tmp/tailscale_1.32.2_mipsle_files.txt

It seems when running wget -O- https://pkgs.tailscale.com/stable/tailscale_1.32.2_mipsle.tgz | tar x -zvf - -C /tmp -T /tmp/tailscale_1.32.2_mipsle_files.txt, tar reads the output directly from the stdout, sees the binary "tailscale_1.32.2_mipsle/tailscale" and begins extraction while "tailscale_1.32.2_mipsle/tailscaled" is still being outputted, and hangs from that point on.

I'll test what you mentioned above and will get back asap.

from openwrt-tailscale-enabler.

SandiyosDev avatar SandiyosDev commented on May 17, 2024

That is correct behavior. It can start extracting files when the rest is still being piped, it will cause wget to pause for a while. But tar should not say unexpected end of file.

Running the command above several times does complete without problems, but when running the single line 'wget' command, it does still hang.
I'll include the commands above into the script, I appreciate your help.

from openwrt-tailscale-enabler.

SandiyosDev avatar SandiyosDev commented on May 17, 2024

It seems like the problem still occurs when running as a shell script.

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.