By Paul
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
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!
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.
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.