Drone - 0.5 - Agent fails to start

Hi there,

I’m trying to setup a drone server and agent on drone:0.5 with gogs using docker. I’m able to successfully connect the drone-server and gogs and fire off builds, however I am unable to spin up the drone agent. Using the installation guide, I get the following database error.

time="2017-05-12T07:30:58Z" level=fatal msg="database ping attempts failed"

When a build is ran, the test hangs, and eventually times out (presumably since no agent picks up the job).

Here’s how I instantiate the two containers:

docker-server

docker run -d --name=“drone-server” --net=“bridge” -e TZ=“America/Los_Angeles” -e HOST_OS=“unRAID” -e “DRONE_GOGS”=“true” -e “DRONE_GOGS_URL”=“http://192.168.173.48:9080” -e “DRONE_GOGS_GIT_USERNAME”=“joshuajcoronado” -e “DRONE_GOGS_GIT_PASSWORD”=“[[REDACTED]]” -e “DRONE_SECRET”=“[[REDACTED]]” -e “DRONE_ADMIN”=“joshuajcoronado” -p 8000:8000/tcp -v “/mnt/user/appdata/drone”:“/var/lib/drone/”:rw drone/drone:0.5

docker-agent

docker run -d --name=“drone-agent” --net=“bridge” -e TZ=“America/Los_Angeles” -e HOST_OS=“unRAID” -e “DRONE_SECRET”=“[[REDACTED]]” -e “DRONE_SERVER”=“ws://192.168.173.48:8000/ws/broker” -e “DRONE_DEBUG”=“true” -v “/var/run/docker.sock”:“/var/run/docker.sock”:rw drone/drone:0.5

Any direction to a solution would be greatly appreciated.

Thanks!

I think I’ve found the solution, I didn’t run the command

agent

on the drone-agent. Thanks!