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":"https://github.com/pkumar2-sps/p0sX-server.git","title":"","message":"Add pipeline \n\nAdd pipeline for test","timestamp":0,"sender":"pkumar2-sps","author":"pkumar2-sps","author_avatar":"https://avatars2.githubusercontent.com/u/39080992?v=4","author_email":"39080992+pkumar2-sps@users.noreply.github.com","link_url":"https://github.com/pkumar2-sps/p0sX-server/commit/3985c4f13ef8f9d82418df8bf88b8aef57d5f21c","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
EOF
rpc: error re-connecting: read tcp 172.18.0.3:49656->34.218.203.192:443: read: connection reset by peer
rpc: error re-connecting: read tcp 172.18.0.3:49658->34.218.203.192:443: read: connection reset by peer
EOF

I have follow this blog:

Please guide me, what i am missing

Here is my ngnix config

upstream drone {
server 127.0.0.1:8000;

}
map $http_upgrade $connection_upgrade {
default upgrade;
‘’ close;
}
server {
listen 80;
listen 443 ssl;
#server_name localhost;
#server_name *.amazonaws.com;
server_name 34.218.203.192;
#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 127.0.0.1:80
#
#location ~ \.php$ {
#    proxy_pass   http://127.0.0.1;
#}

# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
#
#location ~ \.php$ {
#    root           html;
#    fastcgi_pass   127.0.0.1:9000;
#    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 http://docs.drone.io/installation/

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.