# DRONE\_HOST is not properly configured

**URL:** https://drone.discourse.group/t/drone-host-is-not-properly-configured/10748
**Category:** Drone Support
**Created:** [September 22, 2017, 7:25am UTC](https://drone.discourse.group/t/drone-host-is-not-properly-configured/10748 "2017-09-22T07:25:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![fanux](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/fanux/32/4159_2.png) [@fanux](https://drone.discourse.group/u/fanux)
#### Post date: [September 22, 2017, 7:25am UTC](https://drone.discourse.group/t/drone-host-is-not-properly-configured/10748/1 "2017-09-22T07:25:47Z")

</div>

time=“2017-09-22T07:20:24Z” level=fatal msg=“DRONE\_HOST is not properly configured”

I want install drone using docker link network. this is my compose file:

```auto
  drone-server:
    container_name: droneServer
    hostname: droneServer
    image: drone/drone:0.8
    ports:
      - 8080:8000
    volumes:
      - /data/drone:/var/lib/drone/
    restart: always
    links:
      - gogs:gogs
    environment:
      - DRONE_OPEN=true
      - DOCKER_API_VERSION=1.24
      - DRONE_HOST=172.31.124.184
      - DRONE_GOGS=true
      - DRONE_GOGS_URL=http://gogs:3000
      - DRONE_SECRET=ok

  drone-agent:
    image: drone/drone:0.8
    links:
       - drone-server:droneServer
    command: agent --max-procs 50
    restart: always
    depends_on:
      - drone-server
    environment:
      - DRONE_HOST=droneServer
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    links:
      - drone-server:droneServer
    environment:
      - DOCKER_API_VERSION=1.24
      - DRONE_SERVER=ws://droneServer:8000/ws/broker
      - DRONE_SECRET=ok

```

DRONE\_HOST must config an ip address? I don’t want to config an ip, I want to use --link

---

<div class="post-metadata">

### Author: ![fanux](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/fanux/32/4159_2.png) [@fanux](https://drone.discourse.group/u/fanux)
#### Post date: [September 22, 2017, 7:36am UTC](https://drone.discourse.group/t/drone-host-is-not-properly-configured/10748/2 "2017-09-22T07:36:06Z")

</div>

```auto
drone-server:
    container_name: droneServer
    hostname: droneServer
    image: drone/drone:0.8
    ports:
      - 8080:8000
    volumes:
      - /data/drone:/var/lib/drone/
    restart: always
    links:
      - gogs:gogs
    environment:
      - DRONE_OPEN=true
      - DOCKER_API_VERSION=1.24
      - DRONE_HOST=localhost 
      - DRONE_GOGS=true
      - DRONE_GOGS_URL=http://gogs:3000
      - DRONE_SECRET=ok

  drone-agent:
    image: drone/drone:0.8
    links:
       - drone-server:droneServer
    command: agent --max-procs 50
    restart: always
    depends_on:
      - drone-server
    environment:
      - DRONE_HOST=droneServer
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    links:
      - drone-server:droneServer

```

Actually, I don’t want to care about server ip, I want to use localhost, so this compose file can move to other hosts, run containers without edit something.

---

<div class="post-metadata">

### Author: ![ozbillwang](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ozbillwang/32/3947_2.png) [@ozbillwang](https://drone.discourse.group/u/ozbillwang)
#### Post date: [September 22, 2017, 7:44am UTC](https://drone.discourse.group/t/drone-host-is-not-properly-configured/10748/3 "2017-09-22T07:44:41Z")

</div>

put “http” or “https” in front of it

---

<div class="post-metadata">

### Author: ![fanux](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/fanux/32/4159_2.png) [@fanux](https://drone.discourse.group/u/fanux)
#### Post date: [September 22, 2017, 7:54am UTC](https://drone.discourse.group/t/drone-host-is-not-properly-configured/10748/4 "2017-09-22T07:54:53Z")

</div>

```auto
drone-server:
    container_name: droneServer
    hostname: droneServer
    image: drone/drone:0.8.0
    ports:
      - 8080:8000
    volumes:
      - /data/drone:/var/lib/drone/
    restart: always
    links:
      - gogs:gogs
    environment:
      - DRONE_OPEN=true
      - DOCKER_API_VERSION=1.24
      - DRONE_HOST=127.0.0.1
      - DRONE_GOGS=true
      - DRONE_GOGS_URL=http://gogs:3000
      - DRONE_SECRET=ok

  drone-agent:
    image: drone/agent:0.8.0
    links:
       - drone-server:droneServer
    restart: always
    depends_on:
      - drone-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    links:
      - drone-server:droneServer
    environment:
      - DOCKER_API_VERSION=1.24
      - DRONE_SERVER=ws://droneServer:8000/ws/broker
      - DRONE_SECRET=ok

```

drone 0.8 separate server and agent image… 😅 above compose worked, but agent still can’t access to server :

INFO: 2017/09/22 07:49:00 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = “transport: Error while dialing dial tcp: address ws://droneServer:8000/ws/broker: too many colons in address”; Reconnecting to {ws://droneServer:8000/ws/broker }

---

<div class="post-metadata">

### Author: ![fanux](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/fanux/32/4159_2.png) [@fanux](https://drone.discourse.group/u/fanux)
#### Post date: [September 22, 2017, 8:07am UTC](https://drone.discourse.group/t/drone-host-is-not-properly-configured/10748/5 "2017-09-22T08:07:39Z")

</div>

I fixed the agent environment  
DRONE\_SERVER=droneServer:8000  
it accessed to drone server

but agent output a lots of logs… :  
INFO: 2017/09/22 08:02:46 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.  
INFO: 2017/09/22 08:02:47 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.  
INFO: 2017/09/22 08:02:47 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.  
INFO: 2017/09/22 08:02:47 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.  
INFO: 2017/09/22 08:02:47 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.  
INFO: 2017/09/22 08:02:47 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.  
INFO: 2017/09/22 08:02:47 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.  
INFO: 2017/09/22 08:02:47 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.  
INFO: 2017/09/22 08:02:47 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.  
INFO: 2017/09/22 08:02:47 transport: http2Client.notifyError got notified that the client transport was broken unexpected EOF.

---

<div class="post-metadata">

### Author: ![ozbillwang](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/ozbillwang/32/3947_2.png) [@ozbillwang](https://drone.discourse.group/u/ozbillwang)
#### Post date: [September 22, 2017, 10:29am UTC](https://drone.discourse.group/t/drone-host-is-not-properly-configured/10748/6 "2017-09-22T10:29:09Z")

</div>

The installation document for 0.8 is here:

[http://docs.drone.io/release-0.8.0](http://docs.drone.io/release-0.8.0)

```diff
- - DRONE_SERVER=ws://drone-server:8000/ws/broker
+ - DRONE_SERVER=drone-server:9000

```
