# Drone kubernetes runner cannot ping the remote server 301 Moved Permanently

**URL:** <https://drone.discourse.group/t/drone-kubernetes-runner-cannot-ping-the-remote-server-301-moved-permanently/9513>\
**Category:** Drone Support\
**Created:** [August 25, 2021, 8:36pm UTC](https://drone.discourse.group/t/drone-kubernetes-runner-cannot-ping-the-remote-server-301-moved-permanently/9513 "2021-08-25T20:36:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamza\_Razzaq](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/hamza_razzaq/32/2660_2.png) [@Hamza\_Razzaq](https://drone.discourse.group/u/Hamza_Razzaq)\
**Post date:** [August 25, 2021, 8:36pm UTC](https://drone.discourse.group/t/drone-kubernetes-runner-cannot-ping-the-remote-server-301-moved-permanently/9513/1 "2021-08-25T20:36:10Z")

</div>

I was using drone in kubernetes and everything was working fine.

- I have installed drone with helm
- I configured drone and runner on http protocol.

Everything was working good. Then I decided to move drone protocol from http to https. I changed the environment variables and upgrade the helm. Then it started giving me this error

time=“2021-08-25T20:32:14Z” level=error msg=“cannot ping the remote server” error=“301 Moved Permanently\<body bgcolor=“white”\>301 Moved Permanentlynginx/1.14.0 (Ubuntu)”

These are the env variables i am passing  
DRONE\_RPC\_HOST: “[drone.stage.mywebsite.com](http://drone.stage.mywebsite.com)”  
DRONE\_SERVER\_PROTO: https  
DRONE\_RPC\_SECRET: “\*\*\*\*\*”  
DRONE\_RUNNER\_CAPACITY: “2”  
DRONE\_NAMESPACE\_DEFAULT: “drone”  
DRONE\_LOGS\_TRACE: “true”

Status code 301 tells that drone runner is still using http protocol for pinging the drone server. And the ping request is redirected to https from nginx.  
Any suggestion how can I resolve this issue ??

---

<div class="post-metadata">

**Author:** ![bradrydzewski](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/bradrydzewski/32/3513_2.png) [@bradrydzewski](https://drone.discourse.group/u/bradrydzewski)\
**Post date:** [August 25, 2021, 9:44pm UTC](https://drone.discourse.group/t/drone-kubernetes-runner-cannot-ping-the-remote-server-301-moved-permanently/9513/2 "2021-08-25T21:44:39Z")

</div>

I cannot speak to your nginx configuration, but if you want the runner to use https, you need to set DRONE\_RPC\_PROTO=https

---

<div class="post-metadata">

**Author:** ![Hamza\_Razzaq](https://yyz1.discourse-cdn.com/flex003/user_avatar/drone.discourse.group/hamza_razzaq/32/2660_2.png) [@Hamza\_Razzaq](https://drone.discourse.group/u/Hamza_Razzaq)\
**Post date:** [August 26, 2021, 8:17am UTC](https://drone.discourse.group/t/drone-kubernetes-runner-cannot-ping-the-remote-server-301-moved-permanently/9513/3 "2021-08-26T08:17:36Z")

</div>

Thanks [bradrydzewski](http://discuss.harness.io/u/bradrydzewski)  
It was my typo mistake, I was using DRONE\_SERVER\_PROTO env variable instead of DRONE\_RPC\_PROTO for drone runner.
