Status is in pending from along time

Hi All,
I am new in drone and using this first time.

Here is my repo:

My build are not working as there is no update about the pipline.

{"id":3,"number":3,"parent":0,"event":"push","status":"pending","error":"","enqueued_at":1527489450,"created_at":1527489450,"started_at":0,"finished_at":0,"deploy_to":"","commit":"3985c4f13ef8f9d82418df8bf88b8aef57d5f21c","branch":"master","ref":"refs/heads/master","refspec":"","remote":"","title":"","message":"Add pipeline \n\nAdd pipeline for test","timestamp":0,"sender":"pkumar2-sps","author":"pkumar2-sps","author_avatar":"","author_email":"","link_url":"","signed":false,"verified":true,"reviewed_by":"","reviewed_at":0}

This would indicate a problem with your agents (either they are not configured at all, not configured properly, or unable to connect to the server due to network configuration issues). I recommend looking at your agent logs which might provide further detail.

Here is my docker agent log
rpc: error re-connecting: read tcp> read: connection reset by peer
rpc: error re-connecting: read tcp> read: connection reset by peer

I have follow this blog:

Please guide me, what i am missing

Here is my ngnix config

upstream drone {

map $http_upgrade $connection_upgrade {
default upgrade;
‘’ close;
server {
listen 80;
listen 443 ssl;
#server_name localhost;
#server_name *;
#charset koi8-r;
#access_log /var/log/nginx/host.access.log main;

location / {
    #root   /usr/share/nginx/html;
    #index  index.html index.htm;
    # try_files $uri $uri/ =404;
    proxy_pass http://drone;

    include proxy_params;
    proxy_set_header Upgrade $http_upgrade;
    proxy_set_header Connection $connection_upgrade;

    proxy_redirect off;
    proxy_http_version 1.1;
    proxy_buffering off;
    chunked_transfer_encoding off;
    proxy_read_timeout 86400;


#error_page  404              /404.html;

# redirect server error pages to the static page /50x.html
error_page   500 502 503 504  /50x.html;
location = /50x.html {
    root   /usr/share/nginx/html;


# proxy the PHP scripts to Apache listening on
#location ~ \.php$ {
#    proxy_pass;

# pass the PHP scripts to FastCGI server listening on
#location ~ \.php$ {
#    root           html;
#    fastcgi_pass;
#    fastcgi_index  index.php;
#    fastcgi_param  SCRIPT_FILENAME  /scripts$fastcgi_script_name;
#    include        fastcgi_params;

# deny access to .htaccess files, if Apache's document root
# concurs with nginx's one
#location ~ /\.ht {
#    deny  all;


That tutorial is outdated and will not result in a working installation. Instead use

The main problem that I see is that you are using nginx, and have configured the agent to connect with the server through nginx. This will not work, because the agent and server communicate using grpc and http2, which will not work with nginx. Instead you need to connect the agent directly to the server, without any man-in-the-middle.

Also note that nginx is not required (or recommended) for a working Drone installation. If you are using nginx for SSL termination please note that Drone supports native SSL configuration including Lets Encrypt.