cloudflared: Update fails on raspberry pi - context deadline exceeded
Since #249 got closed I want to create a new issue for the problem that was mentioned there and that some of us including me face:
When I run sudo cloudflare update I get the error:
failed to update cloudflared: context deadline exceeded (Client.Timeout or context cancellation while reading body)
More info:
cloudflared --version
cloudflared version 2020.10.0 (built 2020-10-06-1530 UTC)
cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 10 (buster)"
NAME="Raspbian GNU/Linux"
VERSION_ID="10"
VERSION="10 (buster)"
VERSION_CODENAME=buster
ID=raspbian
ID_LIKE=debian
HOME_URL="http://www.raspbian.org/"
SUPPORT_URL="http://www.raspbian.org/RaspbianForums"
BUG_REPORT_URL="http://www.raspbian.org/RaspbianBugs"
About this issue
- Original URL
- State: open
- Created 4 years ago
- Reactions: 11
- Comments: 32
OK, fixed it. Well, more specifically, they fixed it…
This is how:
Roll back cloudflared to an older, stable, version:
wget https://bin.equinox.io/c/VdrWdbjqyF/cloudflared-stable-linux-arm.tgztar -xvzf cloudflared-stable-linux-arm.tgzsudo systemctl stop cloudflaredsudo cp ./cloudflared /usr/local/binsudo chmod +x /usr/local/bin/cloudflaredsudo systemctl start cloudflaredcloudflared -vThen update cloudflared (to 2020.10.2):
sudo cloudflared updatesudo systemctl restart cloudflaredRun the update command again, and you should get a sensible response about cloudflared being up to date
I would say, that this is more of a workaround than a fix. What do the people do, that don’t see this issue report here?
Actually that wasn’t a rollback. It’s a re-install since the stable version is always the latest one.
~Negative, it is still reporting
2020.10.0.~Looks like I forgot a step
sudo systemctl stop cloudflared. I can confirmsudo cloudflared updateruns properly now.Thanks @tamhamilton