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: 188.8.131.52, my 2 server IP: 184.108.40.206
- name: make folder
- mkdir test-drone
did you install an ssh runner to process your pipeline?
also see Builds are Stuck in Pending Status
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
I already did it this way:
docker run -d \
-p 3003:3000 \
--restart always \
--name runner \
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.
Thanks, @bradrydzewski for your explanation, this problem has been solved