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

Most upvoted comments

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.tgz tar -xvzf cloudflared-stable-linux-arm.tgz sudo systemctl stop cloudflared sudo cp ./cloudflared /usr/local/bin sudo chmod +x /usr/local/bin/cloudflared sudo systemctl start cloudflared cloudflared -v

Then update cloudflared (to 2020.10.2): sudo cloudflared update sudo systemctl restart cloudflared

Run the update command again, and you should get a sensible response about cloudflared being up to date

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.tgz tar -xvzf cloudflared-stable-linux-arm.tgz sudo systemctl stop cloudflared sudo cp ./cloudflared /usr/local/bin sudo chmod +x /usr/local/bin/cloudflared sudo systemctl start cloudflared cloudflared -v

Then update cloudflared (to 2020.10.2): sudo cloudflared update sudo systemctl restart cloudflared

Run 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.

Cloudflared definitely reporting v2020.10.2?

~Negative, it is still reporting 2020.10.0.~

Looks like I forgot a step sudo systemctl stop cloudflared. I can confirm sudo cloudflared update runs properly now.

Thanks @tamhamilton