Question

New Do-Agent daily cron failing to update - service unavailable

Hi, I updated my monitoring to the new agent last week. I’m getting the following notification daily -

“/etc/cron.daily/do-agent: W: Failed to fetch https://repos.insights.digitalocean.com/apt/do-agent/dists/main/InRelease 503 Service Unavailable [IP: 45.55.127.101 443] W: Some index files failed to download. They have been ignored, or old ones used instead.”

If I run the /opt/digitalocean/do-agent/scripts/update.sh script manually it appears to work though it’s possible that I’m not seeing any output.

If I manually run “wget https://repos.insights.digitalocean.com/apt/do-agent/dists/main/InRelease” then it works OK with a 200 response.

Any advice on getting rid of this error would be appreciated. Thanks

Subscribe
Share

Did you find a solution?


Submit an answer
You can type!ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

I have the same error on Ubuntu 18.04, so it doesn’t look like something specific to RPM. Manual execution of

apt-get update -o Dir::Etc::sourcelist="sources.list.d/digitalocean-agent.list" -o Dir::Etc::sourceparts="-" -o APT::Get::List-Cleanup="1"
apt-get install --only-upgrade do-agent

(from update.sh script) works correctly.

The problem is that whoever is creating the RPM spec files doesn’t know what they’re doing. The rpm spec is deleting it’s own files on upgrade. And for bonus points literally obsoleting itself, so executing a reinstall doesn’t work either.

The short term solution is, every time there’s an update, and it cripples itself, completely uninstall the rpm, then re-install.