Question

curl: (6) Could not resolve host: bash. - Upgrade from the Legacy Metrics Agent to the Current Agent

Following this guide https://www.digitalocean.com/docs/monitoring/how-to/upgrade-legacy-agent/.

Successfully uninstalled the legacy metrics agent.

When I reach step 2. curl -sSL https://insights.nyc3.cdn.digitaloceanspaces.com/install.sh | sudo bash

I receive an error: curl: (6) Could not resolve host: bash.


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.

Accepted Answer

I have encountered the same issue and followed the instructions below from the support team:


  1. If you do not have bash as a shell you’d need to run the script using whatever shell you have installed. You can download the script with:
curl -sSL https://insights.nyc3.cdn.digitaloceanspaces.com/install.sh -o /tmp/install.sh
  1. Run the installation:
sudo bash /tmp/install.sh

Thanks cheey2003!

This worked for me.

They should add this to the official page for server ServerPilotNoobs like me : )

For me there was an issue with the firewall. Apparently I had blocked (or rather never allowed) port 53 to allow for DNS resolution. So I added the port by typing ufw allow out 53 and the rebooted. Then I was able to run the script just fine. This answer is what came up first when I googled my issue so I am replying here in case anyone else finds it useful too.

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

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

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.