Drone SSH stuck in pending

I want to try to create a new folder via drone ssh but after I try as in the documentation, the status is always pending. is there anything I missed? my 1 server IP: 222.122.122.122, my 2 server IP: 177.33.9.222

---
kind: pipeline
type: ssh
name: drone-ssh-test

server:
  host: 177.33.9.222
  user: user_name
  password: pass_word

steps:
- name: make folder
  commands:
  - mkdir test-drone

did you install an ssh runner to process your pipeline?

also see Builds are Stuck in Pending Status

1 Like

I wanted to install ssh runner but my DRONE RPC HOST environment is already used for exec runner, can it also be used for ssh runner?

Iā€™m pretty sure you can. You just set it once in the Drone image config, and then just repeat it in all of your runners.

Guess the best way to find out though would be to try it :man_shrugging:

I already did it this way:

docker run -d \
  --env=DRONE_RPC_SECRET={{DRONE_RPC_SECRET}} \ 
  --env=DRONE_SERVER_HOST={{DRONE_SERVER_HOST}} \ 
  --env=DRONE_SERVER_PROTO={{DRONE_SERVER_PROTO}} \
  -p 3003:3000 \
  --restart always \
  --name runner \
  drone/drone-runner-ssh

but its appear error:

drone-runner-ssh: error: required key DRONE_RPC_HOST missing value, try --help

The DRONE_RPC_HOST is the hostname / ip address of the Drone server, not the runner. The runner uses this DRONE_RPC_HOST to determine the server address so that it can connect and poll for work. It is therefore required.

1 Like

Thanks, @bradrydzewski for your explanation, this problem has been solved