Package Details: do-agent 3.5.5-1

Git Clone URL: https://aur.archlinux.org/do-agent.git (read-only)
Package Base: do-agent
Description: DigitalOcean Agent for Enhanced Droplet Graphs
Upstream URL: https://github.com/digitalocean/do-agent
Keywords: digitalocean do droplet
Licenses: Apache
Submitter: 2bluesc
Maintainer: 2bluesc
Last Packager: 2bluesc
Votes: 3
Popularity: 0.000007
First Submitted: 2016-12-29 19:45
Last Updated: 2019-08-10 15:38

Latest Comments

1 2 Next › Last »

HLFH commented on 2019-08-22 16:19

@waffle_lapkin

Haha. I have the same issue with ArchLinux on DO. I don't know what can be wrong, excepted the lack of support of ArchLinux by DigitalOcean. DO does not even support .ISO images or with .IMG images, IPv6 is no longer supported. So I will quit DO within one month.

waffle_lapkin commented on 2019-08-22 16:15

In 'graphs' of my droplet DO says "Notice: The legacy metrics agent has been deprecated as of 8 July, 2019. To continue viewing metrics, please upgrade the agent to the latest version." (and also no graphs displayed)

droplet converted to arch Linux using https://github.com/gh2o/digitalocean-debian-to-arch .

> do-agent --version

do-agent (DigitalOcean Agent)

Version:
Revision:    a7672cb
Build Date:  Wed Aug 21 19:52:07 UTC 2019
Go Version:  go1.12.1
Website:     https://github.com/digitalocean/do-agent

Copyright (c) 2019 DigitalOcean, Inc. All rights reserved.

This work is licensed under the terms of the Apache 2.0 license.
For a copy, see <https://www.apache.org/licenses/LICENSE-2.0.html>.
> journalctl -u do-agent | tail -n 9
-- Reboot --
Aug 22 16:05:47 arch-vps systemd[1]: Started DigitalOcean agent.
Aug 22 16:05:57 arch-vps do-agent[348]: ERROR: 2019/08/22 16:05:57 /home/do-agent/pkg/writer/sonar.go:68: failed to flush: Get https://sonar.digitalocean.com/v1/appkey/droplet-auth-token: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Aug 22 16:05:57 arch-vps do-agent[348]: ERROR: 2019/08/22 16:05:57 /home/do-agent/cmd/do-agent/run.go:73: failed to send metrics: flush failure
Aug 22 16:06:47 arch-vps do-agent[348]: crypto/rand: blocked for 60 seconds waiting to read random data from the kernel
Aug 22 16:06:57 arch-vps do-agent[348]: ERROR: 2019/08/22 16:06:57 /home/do-agent/pkg/writer/sonar.go:68: failed to flush: Get https://sonar.digitalocean.com/v1/appkey/droplet-auth-token: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Aug 22 16:06:57 arch-vps do-agent[348]: ERROR: 2019/08/22 16:06:57 /home/do-agent/cmd/do-agent/run.go:110: failed to write diagnostic information: flush failure
Aug 22 16:07:57 arch-vps do-agent[348]: ERROR: 2019/08/22 16:07:57 /home/do-agent/pkg/writer/sonar.go:68: failed to flush: Get https://sonar.digitalocean.com/v1/appkey/droplet-auth-token: net/http: request canceled while waiting for connection (Client.Timeout exceeded while awaiting headers)
Aug 22 16:07:57 arch-vps do-agent[348]: ERROR: 2019/08/22 16:07:57 /home/do-agent/cmd/do-agent/run.go:73: failed to send metrics: flush failure

What can be wrong?

HLFH commented on 2019-07-16 11:11

3.5.2 package released. sha512sum is 982c5b284bb6fc3799b2bb8e8e835e76470ae23a3d1e02439603f0cc0ad1aad07797a890ecbbfbc5362df2b8501fc90ae8cf57df6a276c6b83849fb4ec7ec458

glitsj16 commented on 2019-05-02 01:59

For people that don't like the docker dependency, there's an alternative PKGBUILD at https://git.io/fjZiy. Please note that technically that is a binary package, so I called it do-agent-bin. It's just an example, I have no plans to offer it on AUR.

2bluesc commented on 2019-05-01 07:42

@z3ntu you're welcome to share a patch for consideration. Certainly would be simpler.

z3ntu commented on 2019-05-01 07:25

Can't the package just use "go build" like any other normal go software instead of requiring docker..? It's a bit ridiculous in my opinion.

djmoch commented on 2019-04-20 13:00

Since docker is required to build, it should be a makedepends.

BloodyAltair commented on 2019-04-17 22:25

@kureta digitalocean uses docker to build do-agent. To access docker daemon via unix socket as regular user, you need to be a member of docker group (read the following article ). @2bluesc you need to add docker as makedepends to this package

kureta commented on 2019-04-17 22:08

I installed docker and started docker.service, the error became:

fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.
fatal: No names found, cannot describe anything.

:::::::::::::::: [Wed Apr 17 22:00:27 UTC 2019] target/do-agent-linux-amd64 ::::::::::::::::
docker run --rm -i -u "1000" -e "GOOS=linux" -e "GOARCH=amd64" -e "GOPATH=/gopath" -e "GOCACHE=/gopath/src/github.com/digitalocean/do-agent/target/.cache/go" -v "/home/kureta/.cache/yay/do-agent/src/go/src/github.com/digitalocean/do-agent:/gopath/src/github.com/digitalocean/do-agent" -w "/gopath/src/github.com/digitalocean/do-agent" golang:1.11.5 go build -ldflags ' -X "main.version=" -X "main.revision=e30bc2f" -X "main.buildDate=Wed Apr 17 22:00:27 UTC 2019" ' -o "target/do-agent-linux-amd64" ./cmd/do-agent
docker: Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Post http://%2Fvar%2Frun%2Fdocker.sock/v1.39/containers/create: dial unix /var/run/docker.sock: connect: permission denied.
See 'docker run --help'.
make: *** [Makefile:79: target/do-agent-linux-amd64] Error 126
==> ERROR: A failure occurred in build().
    Aborting...

Then I did chmod 777 /var/run/docker.sock and it worked.

kureta commented on 2019-04-17 20:45

I'm getting this error when trying to install:

==> Starting build()...                                                           
fatal: No names found, cannot describe anything.                                  
fatal: No names found, cannot describe anything.                                  
fatal: No names found, cannot describe anything.                                  
fatal: No names found, cannot describe anything.                                  
fatal: No names found, cannot describe anything.                                  

:::::::::::::::: [Wed Apr 17 20:40:55 UTC 2019] target/do-agent-linux-amd64 ::::::
::::::::::                                                                        
docker run --rm -i -u "1000" -e "GOOS=linux" -e "GOARCH=amd64" -e "GOPATH=/gopath"
 -e "GOCACHE=/gopath/src/github.com/digitalocean/do-agent/target/.cache/go" -v "/h
ome/kureta/.cache/yay/do-agent/src/go/src/github.com/digitalocean/do-agent:/gopath
/src/github.com/digitalocean/do-agent" -w "/gopath/src/github.com/digitalocean/do-
agent" golang:1.11.5 go build -ldflags ' -X "main.version=" -X "main.revision=e30b
c2f" -X "main.buildDate=Wed Apr 17 20:40:55 UTC 2019" ' -o "target/do-agent-linux-
amd64" ./cmd/do-agent                                                             
/bin/sh: docker: command not found                                                
make: *** [Makefile:79: target/do-agent-linux-amd64] Error 127                    
==> ERROR: A failure occurred in build().                                         
    Aborting...                                                                   
Error making: do-agent