woodpecker-ci / woodpecker

Woodpecker is a simple, yet powerful CI/CD engine with great extensibility.
https://woodpecker-ci.org
Apache License 2.0
4.07k stars 353 forks source link

Current version doesn't support GitLab client version 1.41 #597

Closed mislavperi closed 2 years ago

mislavperi commented 2 years ago

Component

agent

Describe the bug

As the title states, running any CI job just cancels it with the agent tossing up this error

{"level":"error","error":"rpc error: code = Unknown desc = Proc finished with exitcode 1, Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40","time":"2021-12-12T08:59:46Z","caller":"/woodpecker/src/github.com/woodpecker-ci/woodpecker/pipeline/rpc/client_grpc.go:91","message":"grpc error: wait(): code: Unknown: rpc error: code = Unknown desc = Proc finished with exitcode 1, Error response from daemon: client version 1.41 is too new. Maximum supported API version is 1.40"}

Woodpecker is running on docker along one agent with an exposed port mapped to a DNS via nginx. The target is a repo on GitLab (non self-hosted).

System Info

{"source":"https://github.com/woodpecker-ci/woodpecker","version":"next-4cbdacb2"}

Docker-compose:


version: '3'

services:
  woodpecker-server:
    container_name: woodpecker
    image: woodpeckerci/woodpecker-server:latest
    volumes:
      - woodpecker-server-data:/var/lib/woodpecker/
    environment:
      - WOODPECKER_OPEN=true
      - WOODPECKER_HOST=${WOODPECKER_HOST}
      - WOODPECKER_GITLAB=true
      - WOODPECKER_GITLAB_CLIENT=${WOODPECKER_GITLAB_CLIENT}
      - WOODPECKER_GITLAB_SECRET=${WOODPECKER_GITLAB_SECRET}
      - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}

  woodpecker-agent:
    image: woodpeckerci/woodpecker-agent:latest
    command: agent
    restart: always
    depends_on:
      - woodpecker-server
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - WOODPECKER_SERVER=woodpecker-server:9000
      - WOODPECKER_AGENT_SECRET=${WOODPECKER_AGENT_SECRET}

  woodpecker-nginx:
    build: ./nginx
    container_name: woodpecker_nginx
    ports:
      - 9000:80

volumes:
  woodpecker-server-data:

Additional context

No response

Validations

anbraten commented 2 years ago

Thanks for reporting.

Note: Update go-gitlab to v0.52.2