[SOLVED] "version control system not configured" after upgrading drone (using gogs)

Hi,

I upgraded drone from 0.7.x to 0.8.2 yesterday using docker-compose. When I start it, I receive an error “version control system not configured” by the drone-agent. I looked up the installation guide but couldn’t find anything new that I should have changed. This is my configuration:

version: ‘2’

services:
gogs:
image: gogs/gogs:0.11.34
container_name: gogs
ports:
- 3000:3000
networks:
- web
volumes:
- /root/gogs-drone/gogs_data:/data
labels:
- traefik.backend=gogs
- traefik.port=3000
- traefik.frontend.rule=Host:gogs.mydomain.com
restart: always

drone-server:
image: drone/drone:0.8.2
container_name: droneserver
ports:
- 8000:8000
networks:
- web
volumes:
- /root/gogs-drone/drone_data:/var/lib/drone
environment:
- DRONE_HOST=https://drone.mydomain.com
- DRONE_OPEN=true
- DRONE_GOGS=true
- DRONE_GOGS_URL=https://gogs.mydomain.com
- DRONE_GOGS_PRIVATE_MODE=true
- DRONE_GOGS_SKIP_VERIFY=true # just in case, haven’t set that before
- DRONE_SECRET=secret
labels:
- traefik.backend=drone
- traefik.port=8000
- traefik.frontend.rule=Host:drone.mydomain.com
restart: always

drone-agent:
image: drone/drone:0.8.2
container_name: droneagent
command: agent
restart: always
depends_on: [drone-server]
networks:
- web
volumes:
- /var/run/docker.sock:/var/run/docker.sock
environment:
- DRONE_HOST=https://drone.mydomain.com
- DRONE_SERVER=ws://drone-server:8000/ws/broker
- DRONE_SECRET=secret
stop_signal: SIGINT # added yesterday, I don’t know…

networks:
web:
external:
name: traefik_webgateway

I’m using traefik and gogs. Any suggestions? It worked with 0.7.x.

This is because in 0.8, the name of the agent docker image changed from drone/drone to drone/agent and you need to adjust your configuration accordingly. Please see the release notes for more details.

drone-agent:
- image: drone/drone:0.8.2
+ image: drone/agent:0.8.2
  container_name: droneagent
- command: agent