Wanted to upgrade Digital Ocean Monitoring on my Laravel Forge LEMP server. This so I could use all the latest features and avoid having a tool that would no longer be working anymore soon enough.
Installation
They recommend you first to remove the old agent and then add the new one using
sudo apt-get purge do-agent
to remove the old agent and then installation using:
curl -sSL https://insights.nyc3.cdn.digitaloceanspaces.com/install.sh | sudo bash
That basically ads the new repo and installs the scripts for you to display the new stats in your Digital Ocean Dashboard. That did not work out for my server though as I got the following error:
curl -sSL https://insights.nyc3.cdn.digitaloceanspaces.com/install.sh | sudo bash Cleaning up old sources...OK Verifying machine compatability...OK Verifying compatability with script...OK Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package do-agent Installing apt repository... E: Repository 'http://ppa.launchpad.net/nginx/development/ubuntu bionic InRelease' changed its 'Label' value from 'NGINX Mainline' to 'NGINX Mainline (1.15.x)' Installing gpg key...OK E: Repository 'http://ppa.launchpad.net/nginx/development/ubuntu bionic InRelease' changed its 'Label' value from 'NGINX Mainline' to 'NGINX Mainline (1.15.x)'
so I needed a fix for this table change issue to have it installed properly.
Solution
Even sudo apt update showed this error as a warning now as repository was added but label had changed. However when I did accept all these updates explicitly – even before upgrading packages – I managed to update these label changes too and then I could install the agent with:
$ curl -sSL https://insights.nyc3.cdn.digitaloceanspaces.com/install.sh | sudo bash [sudo] password for forge: Cleaning up old sources...OK Verifying machine compatability...OK Verifying compatability with script...OK Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package do-agent Installing apt repository... Installing gpg key...OK Selecting previously unselected package do-agent. (Reading database ... 111284 files and directories currently installed.) Preparing to unpack .../do-agent_3.0.5_amd64.deb ... Unpacking do-agent (3.0.5) ... Setting up do-agent (3.0.5) ... Detecting SELinux SELinux not enforced Creating /etc/systemd/system/do-agent.service... Created symlink /etc/systemd/system/multi-user.target.wants/do-agent.service → /etc/systemd/system/do-agent.service.
without any issues. Will take some time before I can see stats, but often within the hour.
Upgradables FYI
Will going through all the possible server upgrades with apt list –upgradable such as Nginx updates:
libnginx-mod-http-auth-pam/bionic 1.15.8-0+bionic0 amd64 [upgradable from: 1.15.0-0+bionic0] libnginx-mod-http-dav-ext/bionic 1.15.8-0+bionic0 amd64 [upgradable from: 1.15.0-0+bionic0] libnginx-mod-http-echo/bionic 1.15.8-0+bionic0 amd64 [upgradable from: 1.15.0-0+bionic0] libnginx-mod-http-geoip/bionic 1.15.8-0+bionic0 amd64 [upgradable from: 1.15.0-0+bionic0] libnginx-mod-http-image-filter/bionic 1.15.8-0+bionic0 amd64 [upgradable from: 1.15.0-0+bionic0] libnginx-mod-http-subs-filter/bionic 1.15.8-0+bionic0 amd64 [upgradable from: 1.15.0-0+bionic0] libnginx-mod-http-upstream-fair/bionic 1.15.8-0+bionic0 amd64 [upgradable from: 1.15.0-0+bionic0] libnginx-mod-http-xslt-filter/bionic 1.15.8-0+bionic0 amd64 [upgradable from: 1.15.0-0+bionic0] libnginx-mod-mail/bionic 1.15.8-0+bionic0 amd64 [upgradable from: 1.15.0-0+bionic0] libnginx-mod-stream/bionic 1.15.8-0+bionic0 amd64 [upgradable from: 1.15.0-0+bionic0] nginx/bionic 1.15.8-0+bionic0 all [upgradable from: 1.15.0-0+bionic0] nginx-common/bionic 1.15.8-0+bionic0 all [upgradable from: 1.15.0-0+bionic0] nginx-full/bionic 1.15.8-0+bionic0 amd64 [upgradable from: 1.15.0-0+bionic0]
soon enough with sudo apt-get upgrade. Nice of Ubuntu to remind you of these when you do a general update. Have not done these for quite some time.