# \[solved\] install drone+gogs, version control system not configured

**URL:** https://drone.discourse.group/t/solved-install-drone-gogs-version-control-system-not-configured/8324
**Category:** Drone Support
**Created:** [January 28, 2017, 7:29am UTC](https://drone.discourse.group/t/solved-install-drone-gogs-version-control-system-not-configured/8324 "2017-01-28T07:29:10Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![Hitogami](https://avatars.discourse-cdn.com/v4/letter/h/c68b51/32.png) [@Hitogami](https://drone.discourse.group/u/Hitogami)
#### Post date: [January 28, 2017, 7:29am UTC](https://drone.discourse.group/t/solved-install-drone-gogs-version-control-system-not-configured/8324/1 "2017-01-28T07:29:10Z")

</div>

Hello,

I follwed the guide [https://docs.drone.io/server/overview/](http://readme.drone.io/admin/installation-guide/), and tried to install drone using docker-compose, putted my url to the gogs server. Started the process using docker-compose up but all it says that no version control is installed and ws://mydomainhete:8000/ws/broker connection refused (i am using port 8000) and used a nginx reverse proxy. Can someone guide me on what am i doing wrong?

Error msg:

> drone-server\_1 | time=“2017-01-28T08:11:30Z” level=fatal msg=“version control system not configured”  
> root\_drone-server\_1 exited with code 1  
> drone-agent\_1 | 1:M 28 Jan 08:11:38.697 # connection failed, retry in 15s. websocket.Dial ws://ci.myweb.pw:8000/ws/broker: dial tcp 45.58.127.19:8000: getsockopt: connection refused

My docker-compose.yml

```
version: '2'

services:
  drone-server:
    image: drone/drone:0.5
    ports:
      - 8000:8000
    volumes:
      - ./drone:/var/lib/drone/
    restart: always
    environment:
      - DRONE_OPEN=true
      - DRONE_SECRET=test
      - 'DRONE_GOGS: true'
      - 'DRONE_GOGS_URL: https://git.myweb.pw'
      - 'DRONE_GOGS_GIT_USERNAME: test'
      - 'DRONE_GOGS_GIT_PASSWORD: test'
  drone-agent:
    image: drone/drone:0.5
    command: agent
    restart: always
    depends_on: [drone-server]
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - DRONE_SERVER=ws://ci.myweb.pw:8000/ws/broker
      - DRONE_SECRET=test

```

Thanks

---

<div class="post-metadata">

### Author: ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)
#### Post date: [January 28, 2017, 9:35am UTC](https://drone.discourse.group/t/solved-install-drone-gogs-version-control-system-not-configured/8324/2 "2017-01-28T09:35:35Z")

</div>

> version control system not configured

this is because your yaml is invalid and does not match the samples in the documentation. The below example quotes variables and mixes map and array syntax:

```auto
      - DRONE_OPEN=true
      - DRONE_SECRET=test
      - 'DRONE_GOGS: true'
      - 'DRONE_GOGS_URL: https://git.myweb.pw'
      - 'DRONE_GOGS_GIT_USERNAME: test'
      - 'DRONE_GOGS_GIT_PASSWORD: test'

```

Instead please use a consistent, valid syntax:

```diff
       - DRONE_OPEN=true
       - DRONE_SECRET=test
- - 'DRONE_GOGS: true'
- - 'DRONE_GOGS_URL: https://git.myweb.pw'
- - 'DRONE_GOGS_GIT_USERNAME: test'
- - 'DRONE_GOGS_GIT_PASSWORD: test'
+ - DRONE_GOGS=true
+ - DRONE_GOGS_URL=https://git.myweb.pw
+ - DRONE_GOGS_GIT_USERNAME=test
+ - DRONE_GOGS_GIT_PASSWORD=test

```

> and ws://mydomainhete:8000/ws/broker connection refused (i am using port 8000) and used a nginx reverse proxy

did you configure your nginx server to accept websockets, per the drone documentation? See [http://readme.drone.io/admin/setup-reverse-proxy/](http://readme.drone.io/admin/setup-reverse-proxy/)

the above step, however, should not even be necessary. The DRONE\_SERVER in the sample docker compose file in the official documentation does not need to be changed. You can use the default value in the official documentation, and bypass your nginx instance:

```diff
- - DRONE_SERVER=ws://ci.myweb.pw:8000/ws/broker
+ - DRONE_SERVER=ws://drone-server:8000/ws/broker
      - DRONE_SECRET=test

```

---

<div class="post-metadata">

### Author: ![Hitogami](https://avatars.discourse-cdn.com/v4/letter/h/c68b51/32.png) [@Hitogami](https://drone.discourse.group/u/Hitogami)
#### Post date: [January 28, 2017, 10:02am UTC](https://drone.discourse.group/t/solved-install-drone-gogs-version-control-system-not-configured/8324/3 "2017-01-28T10:02:21Z")

</div>

@bradrydzewski  
If i try to do it without the ""  
root@gami:~# docker-compose up  
ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:  
services.drone-server.environment contains {“DRONE\_GOGS”: true}, which is an invalid type, it should be a string

---

<div class="post-metadata">

### Author: ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)
#### Post date: [January 28, 2017, 10:04am UTC](https://drone.discourse.group/t/solved-install-drone-gogs-version-control-system-not-configured/8324/4 "2017-01-28T10:04:11Z")

</div>

then you can use `DRONE_GOGS: "true"`

---

<div class="post-metadata">

### Author: ![Hitogami](https://avatars.discourse-cdn.com/v4/letter/h/c68b51/32.png) [@Hitogami](https://drone.discourse.group/u/Hitogami)
#### Post date: [January 28, 2017, 10:05am UTC](https://drone.discourse.group/t/solved-install-drone-gogs-version-control-system-not-configured/8324/5 "2017-01-28T10:05:13Z")

</div>

Still complains  
ERROR: The Compose file ‘./docker-compose.yml’ is invalid because:  
services.drone-server.environment contains {“DRONE\_GOGS”: “true”}, which is an invalid type, it should be a string

---

<div class="post-metadata">

### Author: ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)
#### Post date: [January 28, 2017, 10:06am UTC](https://drone.discourse.group/t/solved-install-drone-gogs-version-control-system-not-configured/8324/6 "2017-01-28T10:06:29Z")

</div>

or you can use the array syntax instead of map syntax

```auto
- - DRONE_GOGS: true
- - DRONE_GOGS_URL: https://git.myweb.pw
- - DRONE_GOGS_GIT_USERNAME: test
- - DRONE_GOGS_GIT_PASSWORD: test
+ - DRONE_GOGS=true
+ - DRONE_GOGS_URL=https://git.myweb.pw
+ - DRONE_GOGS_GIT_USERNAME=test
+ - DRONE_GOGS_GIT_PASSWORD=test

```

---

<div class="post-metadata">

### Author: ![Hitogami](https://avatars.discourse-cdn.com/v4/letter/h/c68b51/32.png) [@Hitogami](https://drone.discourse.group/u/Hitogami)
#### Post date: [January 28, 2017, 10:07am UTC](https://drone.discourse.group/t/solved-install-drone-gogs-version-control-system-not-configured/8324/7 "2017-01-28T10:07:20Z")

</div>

finally works, thanks!
