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 503 Service Unavailable [IP: 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/ script manually it appears to work though it’s possible that I’m not seeing any output.

If I manually run “wget” then it works OK with a 200 response.

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

Show comments

Submit an answer

This textbox defaults to using Markdown to format your answer.

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

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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