# Gitea + drone ruuner-ssh and runner-exec not working

**URL:** <https://drone.discourse.group/t/gitea-drone-ruuner-ssh-and-runner-exec-not-working/11600>\
**Category:** Drone Support\
**Tags:** basic\
**Created:** [February 1, 2022, 9:52pm UTC](https://drone.discourse.group/t/gitea-drone-ruuner-ssh-and-runner-exec-not-working/11600 "2022-02-01T21:52:06Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![stille](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/stille/32/6974_2.png) [@stille](https://drone.discourse.group/u/stille)\
**Post date:** [February 1, 2022, 9:52pm UTC](https://drone.discourse.group/t/gitea-drone-ruuner-ssh-and-runner-exec-not-working/11600/1 "2022-02-01T21:52:06Z")

</div>

I had deploy Gitea + drone + runner for my group. **Normally runner-docker works fine** , but runner-ssh and runner-exec don’t work

## deploy by docker compose

### gitea

```yml
version: "3"

services:
  gitea:
    image: gitea/gitea:1.15.7
    # container_name: gitea
    environment:
      - USER_UID=1000
      - USER_GID=1000
      - DB_TYPE=mysql
      - DB_HOST=db:3306
      - DB_NAME=gitea
      - DB_USER=gitea
      - DB_PASSWD=xxxxxxx
    restart: always
    volumes:
      - ./gitea:/data
      - /home/git/.ssh/:/data/git/.ssh
      - /etc/timezone:/etc/timezone:ro
      - /etc/localtime:/etc/localtime:ro
    ports:
      - "33333:3000"
      - "22:22"
    depends_on:
      - db

  db:
    image: mariadb
    restart: always
    environment:
      - MYSQL_ROOT_PASSWORD=xxxxxx
      - MYSQL_USER=gitea
      - MYSQL_PASSWORD=xxxxxx
      - MYSQL_DATABASE=gitea
    volumes:
      - ./db:/var/lib/mysql

```

### drone

```yml
version: "3"
services:
  drone:
    image: drone/drone
    container_name: drone
    ports:
      - "8800:80"
      # - "44443:443"
    volumes:
      - ./drone:/data
    environment:
      - DRONE_GITEA_SERVER=https://git.ioiox.com
      - DRONE_GITEA_CLIENT_ID=xxxxxxxxx
      - DRONE_GITEA_CLIENT_SECRET=xxxxxxxxx
      - DRONE_RPC_SECRET=yyyyyyyyyyyyyy
      - DRONE_SERVER_HOST=drone.ioiox.com
      - DRONE_SERVER_PROTO=https
      - DRONE_GIT_ALWAYS_AUTH=true
      - DRONE_USER_CREATE=username:stilleshan,admin:true
    restart: always

```

### runner-docker & runner-ssh

```yml
version: "3"
services:
  drone-runner-docker:
    image: drone/drone-runner-docker:1
    container_name: drone-runner-docker
    # ports:
    # - "3000:3000"
    volumes:
      - /var/run/docker.sock:/var/run/docker.sock
    environment:
      - TZ=Asia/Shanghai
      - DRONE_RPC_PROTO=https
      - DRONE_RPC_HOST=drone.ioiox.com
      - DRONE_RPC_SECRET=yyyyyyyyyyyyyy
      - DRONE_RUNNER_CAPACITY=5
      - DRONE_RUNNER_NAME=runner-docker
    restart: always

  drone-runner-ssh:
    image: drone/drone-runner-ssh
    container_name: drone-runner-ssh
    # ports:
    # - 3001:3000
    environment:
      - TZ=Asia/Shanghai
      - DRONE_RPC_PROTO=https
      - DRONE_RPC_HOST=drone.ioiox.com
      - DRONE_RPC_SECRET=yyyyyyyyyyyyyy
      - DRONE_RUNNER_CAPACITY=5
      - DRONE_RUNNER_NAME=runner-ssh
    restart: always

```

### runner-exec

Install in centos7 by [drone.io](http://drone.io) [documents](https://docs.drone.io/runner/exec/installation/linux/)

## issue

### runner-exec

When I push to private repo activate runner, something wrong about git clone. But public repo works fine.  
I tried setting DRONE\_GIT\_ALWAYS\_AUTH=true or false also to no effect

 ![1](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/8/844d745ab4a2bbc26aa738bd2d89b7ad5ea8ea5c.jpeg)

### runner-ssh

I use type: ssh in .drone.yml, Can trigger workflows. But got clone: skipped error, when i set disable clone step, also got error “greeting: skipped”, I think the whole workflow can not working.

 ![2](https://canada1.discourse-cdn.com/flex003/uploads/testdrone/original/2X/d/dd53023bb35272b4f0dc876c8c450e5f84e46a6b.jpeg)
