Check if Agent is connecting to Server

Hey guys, is there a way for me to check if the agent is actually talking to the server ???

All my agent logs is:

{“level”:“info”,“msg”:“starting the build runner”,“server”:“xxxxx”,“threads”:1,“time”:“2018-12-18T23:05:47Z”}

When I try running a new build, it does not log anything on my agent and I am afraid is because the server is not able to talk to the agent.

My server, however, logs:

{"arch":"amd64","build":16,"level":"info","machine":"drone-server-679d565c5d","msg":"runner: start execution","os":"linux","pipeline":"default","repo":"repo-xxx","stage":1,"time":"2018-12-19T00:01:55Z"}

{"arch":"amd64","build":16,"level":"debug","machine":"drone-server-679d565c5d","msg":"runner: watch for kill signal","os":"linux","pipeline":"default","repo":"repo-xxx","stage":1,"time":"2018-12-19T00:01:55Z"}

{"level":"debug","msg":"manager: updating step status","step.id":20,"step.name":"build","step.status":"running","time":"2018-12-19T00:01:55Z"}

{"admin":true,"level":"debug","msg":"api: access granted","name":"repo-name","namespace":"repo-namespace","read":true,"request-id":"1EY7X7xzgylW2ZGrJLX76wFsKBv","time":"2018-12-19T00:01:55Z","user.login":"user-login","visibility":"private","write":true}

{"level":"debug","msg":"manager: updating step status","step.id":20,"step.name":"build","step.status":"failure","time":"2018-12-19T00:02:02Z"}

{"fields.time":"2018-12-19T00:02:02Z","latency":7760736363,"level":"debug","method":"GET","msg":"","remote":"100.104.190.131:39330","request":"/api/stream/repo-xxx/16/1/1","request-id":"1EY7X7xzgylW2ZGrJLX76wFsKBv","time":"2018-12-19T00:02:02Z"}

{"arch":"amd64","build":16,"error":"build : exit code 1","level":"info","machine":"drone-server-679d565c5d","msg":"runner: execution failed","os":"linux","pipeline":"default","repo":"repo-xxx","stage":1,"time":"2018-12-19T00:02:02Z"}

{"level":"debug","msg":"manager: stage is complete. teardown","stage.id":16,"time":"2018-12-19T00:02:02Z"}

{"build.id":16,"build.number":16,"level":"debug","msg":"manager: build is finished, teardown","repo.id":105,"stage.id":16,"time":"2018-12-19T00:02:02Z"}

{"arch":"amd64","build":16,"error":"build : exit code 1","level":"debug","machine":"drone-server-679d565c5d","msg":"runner: received kill signal","os":"linux","pipeline":"default","repo":"repo-xxx","stage":1,"time":"2018-12-19T00:02:02Z"}

{"arch":"amd64","level":"debug","machine":"drone-server-679d565c5d","msg":"runner: polling queue","os":"linux","time":"2018-12-19T00:02:04Z"}

{"arch":"amd64","kernel":"","level":"debug","msg":"manager: request queue item","os":"linux","time":"2018-12-19T00:02:04Z","variant":""}

Maybe I am missing something ? :X

did you follow the single-machine (i.e. agentless) installation instructions. I see references to the build runner in your server logs, which would not generally appear if you use the multi-machine install instructions.

Sorry sorry I am taking over an environment that was created already so I might be missing something.

From what I saw, server and agent have set env DRONE_RPC_SECRET so I believe it is using Multi-machine ???

Is DRONE_RUNNER_CAPACITY being passed to the server? If > 0 then the server runs in single-machine mode.

Ahhh got it :slight_smile:
I was thinking DRONE_RUNNER_CAPACITY was to manage how many pipelines you want to run in parallel. I will remove it and check again :slight_smile:

Multi-machine did not work but I will park this for now. I am gong to try to make it work on single-machine first