Drone 0.8.3 compiled on arm64 doesn't start any build

v0.8.3
3daf679

compiled on arm64

conversation followable on : https://discordapp.com/channels/322538954119184384/375246078741708801

agent + server running on the same server

2 arm64 nodes in a docker swarm cluster

docker stack docker-compose.yml file

version: '3'

networks:
  traefik-net:
    external: true
      
services:
  
  server64:
    image: bambuserver1:5000/ergu/drone-server:0.8.3-arm64
    deploy:
        labels:
            traefik.enable: "true" 
            traefik.port: "8000"
            traefik.docker.network: "traefik-net"
            traefik.backend.maxconn.amount: "1"
            traefik.frontend.rule: "Host:drone64"
        placement:
            constraints:
            - node.hostname==bambuserver11

    ports:
      - 9000:9000
    networks:
      - traefik-net
    volumes:
        - drone-datas:/var/lib/drone
    environment:
      - DRONE_ADMIN=ergu,administrator
      - DRONE_DEBUG=true
      - DRONE_OPEN=true
      - DRONE_HOST=server64
      - DRONE_SECRET=${DRONE_SECRET}
      - DRONE_PORT=${DRONE_PORT}
      - DRONE_SERVER_PORT=${DRONE_SERVER_PORT}
      - DRONE_GITEA=true
      - DRONE_GITEA_URL=http://bambuserver1:3000
      - DRONE_GITEA_SKIP_VERIFY=true
      - DRONE_ESCALATE=ergu/drone-docker-arm64,ergu/drone-git-arm64

  agent64:
    depends_on: [ server64 ]
    image: bambuserver1:5000/ergu/drone-agent:0.8.3-arm64
    networks:
      - traefik-net
    deploy:
        placement:
            constraints:
            - node.hostname==bambuserver11

    volumes: [ "/var/run/docker.sock:/var/run/docker.sock" ]
    
    environment:
      - DRONE_SERVER=server64:9000
      - DRONE_SECRET=${DRONE_SECRET}
      - DRONE_DEBUG=true
          
volumes:
  drone-datas:
    driver: local-persist
    driver_opts:
        mountpoint: /mnt/virtual/docker/volumes/drone/
        type: volume 

drone agent logs

{"time":"2017-12-26T17:06:04Z","level":"debug","message":"request next execution"}
INFO: 2017/12/26 17:06:05 grpc: addrConn.resetTransport failed to create client transport: connection error: desc = "transport: Error while dialing dial tcp: lookup server64 on 127.0.0.11:53: no such host"; Reconnecting to {server64:9000 <nil>}

drone server logs

[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
 - using env:	export GIN_MODE=release
 - using code:	gin.SetMode(gin.ReleaseMode)

[GIN-debug] GET    /logout                   --> github.com/drone/drone/server.GetLogout (12 handlers)
[GIN-debug] GET    /login                    --> github.com/drone/drone/server.HandleLogin (12 handlers)
[GIN-debug] GET    /api/user                 --> github.com/drone/drone/server.GetSelf (13 handlers)
[GIN-debug] GET    /api/user/feed            --> github.com/drone/drone/server.GetFeed (13 handlers)
[GIN-debug] GET    /api/user/repos           --> github.com/drone/drone/server.GetRepos (13 handlers)
[GIN-debug] POST   /api/user/token           --> github.com/drone/drone/server.PostToken (13 handlers)
[GIN-debug] DELETE /api/user/token           --> github.com/drone/drone/server.DeleteToken (13 handlers)
[GIN-debug] GET    /api/users                --> github.com/drone/drone/server.GetUsers (13 handlers)
[GIN-debug] POST   /api/users                --> github.com/drone/drone/server.PostUser (13 handlers)
[GIN-debug] GET    /api/users/:login         --> github.com/drone/drone/server.GetUser (13 handlers)
[GIN-debug] PATCH  /api/users/:login         --> github.com/drone/drone/server.PatchUser (13 handlers)
[GIN-debug] DELETE /api/users/:login         --> github.com/drone/drone/server.DeleteUser (13 handlers)
[GIN-debug] POST   /api/repos/:owner/:name   --> github.com/drone/drone/server.PostRepo (16 handlers)
[GIN-debug] GET    /api/repos/:owner/:name   --> github.com/drone/drone/server.GetRepo (15 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/builds --> github.com/drone/drone/server.GetBuilds (15 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/builds/:number --> github.com/drone/drone/server.GetBuild (15 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/logs/:number/:pid --> github.com/drone/drone/server.GetProcLogs (15 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/logs/:number/:pid/:proc --> github.com/drone/drone/server.GetBuildLogs (15 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/files/:number --> github.com/drone/drone/server.FileList (15 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/files/:number/:proc/*file --> github.com/drone/drone/server.FileGet (15 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/secrets --> github.com/drone/drone/server.GetSecretList (16 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/secrets --> github.com/drone/drone/server.PostSecret (16 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/secrets/:secret --> github.com/drone/drone/server.GetSecret (16 handlers)
[GIN-debug] PATCH  /api/repos/:owner/:name/secrets/:secret --> github.com/drone/drone/server.PatchSecret (16 handlers)
[GIN-debug] DELETE /api/repos/:owner/:name/secrets/:secret --> github.com/drone/drone/server.DeleteSecret (16 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/registry --> github.com/drone/drone/server.GetRegistryList (16 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/registry --> github.com/drone/drone/server.PostRegistry (16 handlers)
[GIN-debug] GET    /api/repos/:owner/:name/registry/:registry --> github.com/drone/drone/server.GetRegistry (16 handlers)
[GIN-debug] PATCH  /api/repos/:owner/:name/registry/:registry --> github.com/drone/drone/server.PatchRegistry (16 handlers)
[GIN-debug] DELETE /api/repos/:owner/:name/registry/:registry --> github.com/drone/drone/server.DeleteRegistry (16 handlers)
[GIN-debug] PATCH  /api/repos/:owner/:name   --> github.com/drone/drone/server.PatchRepo (16 handlers)
[GIN-debug] DELETE /api/repos/:owner/:name   --> github.com/drone/drone/server.DeleteRepo (16 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/chown --> github.com/drone/drone/server.ChownRepo (16 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/repair --> github.com/drone/drone/server.RepairRepo (16 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/move --> github.com/drone/drone/server.MoveRepo (16 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/builds/:number --> github.com/drone/drone/server.PostBuild (16 handlers)
[GIN-debug] DELETE /api/repos/:owner/:name/builds/:number --> github.com/drone/drone/server.ZombieKill (16 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/builds/:number/approve --> github.com/drone/drone/server.PostApproval (16 handlers)
[GIN-debug] POST   /api/repos/:owner/:name/builds/:number/decline --> github.com/drone/drone/server.PostDecline (16 handlers)
[GIN-debug] DELETE /api/repos/:owner/:name/builds/:number/:job --> github.com/drone/drone/server.DeleteBuild (16 handlers)
[GIN-debug] GET    /api/badges/:owner/:name/status.svg --> github.com/drone/drone/server.GetBadge (12 handlers)
[GIN-debug] GET    /api/badges/:owner/:name/cc.xml --> github.com/drone/drone/server.GetCC (12 handlers)
[GIN-debug] POST   /hook                     --> github.com/drone/drone/server.PostHook (12 handlers)
[GIN-debug] POST   /api/hook                 --> github.com/drone/drone/server.PostHook (12 handlers)
[GIN-debug] GET    /stream/events            --> github.com/drone/drone/server.EventStreamSSE (12 handlers)
[GIN-debug] GET    /stream/logs/:owner/:name/:build/:number --> github.com/drone/drone/server.LogStreamSSE (15 handlers)
[GIN-debug] GET    /api/info/queue           --> github.com/drone/drone/server.GetQueueInfo (13 handlers)
[GIN-debug] GET    /authorize                --> github.com/drone/drone/server.HandleAuth (12 handlers)
[GIN-debug] POST   /authorize                --> github.com/drone/drone/server.HandleAuth (12 handlers)
[GIN-debug] POST   /authorize/token          --> github.com/drone/drone/server.GetLoginToken (12 handlers)
[GIN-debug] GET    /api/builds               --> github.com/drone/drone/server.GetBuildQueue (13 handlers)
[GIN-debug] GET    /api/debug/pprof/         --> github.com/drone/drone/server/debug.IndexHandler.func1 (13 handlers)
[GIN-debug] GET    /api/debug/pprof/heap     --> github.com/drone/drone/server/debug.HeapHandler.func1 (13 handlers)
[GIN-debug] GET    /api/debug/pprof/goroutine --> github.com/drone/drone/server/debug.GoroutineHandler.func1 (13 handlers)
[GIN-debug] GET    /api/debug/pprof/block    --> github.com/drone/drone/server/debug.BlockHandler.func1 (13 handlers)
[GIN-debug] GET    /api/debug/pprof/threadcreate --> github.com/drone/drone/server/debug.ThreadCreateHandler.func1 (13 handlers)
[GIN-debug] GET    /api/debug/pprof/cmdline  --> github.com/drone/drone/server/debug.CmdlineHandler.func1 (13 handlers)
[GIN-debug] GET    /api/debug/pprof/profile  --> github.com/drone/drone/server/debug.ProfileHandler.func1 (13 handlers)
[GIN-debug] GET    /api/debug/pprof/symbol   --> github.com/drone/drone/server/debug.SymbolHandler.func1 (13 handlers)
[GIN-debug] POST   /api/debug/pprof/symbol   --> github.com/drone/drone/server/debug.SymbolHandler.func1 (13 handlers)
[GIN-debug] GET    /api/debug/pprof/trace    --> github.com/drone/drone/server/debug.TraceHandler.func1 (13 handlers)
[GIN-debug] GET    /metrics                  --> github.com/drone/drone/server/metrics.PromHandler.func1 (13 handlers)
[GIN-debug] GET    /version                  --> github.com/drone/drone/server.Version (12 handlers)
[GIN-debug] GET    /healthz                  --> github.com/drone/drone/server.Health (12 handlers)
time="2017-12-26T17:06:06Z" level=debug msg="agent connected: fcae9fac8b21: polling" 
time="2017-12-26T17:06:30Z" level=info ip=10.255.0.3 latency=27.449744ms method=GET path="/ergu/go-lang-test" status=200 time="2017-12-26T17:06:30Z" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/54.0 Safari/537.36 Chrome/54.0.2840.71" 
time="2017-12-26T17:06:30Z" level=info ip=10.255.0.3 latency=6.675639ms method=GET path="/api/user/feed" status=200 time="2017-12-26T17:06:30Z" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/54.0 Safari/537.36 Chrome/54.0.2840.71" 
time="2017-12-26T17:06:30Z" level=debug msg="ergu granted &{UserID:1 RepoID:1 Repo: Pull:true Push:true Admin:true Synced:1514306809} permission to ergu/go-lang-test" 
time="2017-12-26T17:06:30Z" level=info ip=10.255.0.3 latency=8.101803ms method=GET path="/api/repos/ergu/go-lang-test" status=200 time="2017-12-26T17:06:30Z" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/54.0 Safari/537.36 Chrome/54.0.2840.71" 
time="2017-12-26T17:06:30Z" level=debug msg="ergu granted &{UserID:1 RepoID:1 Repo: Pull:true Push:true Admin:true Synced:1514306809} permission to ergu/go-lang-test" 
time="2017-12-26T17:06:30Z" level=info ip=10.255.0.3 latency=11.354391ms method=GET path="/api/repos/ergu/go-lang-test/builds" status=200 time="2017-12-26T17:06:30Z" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/54.0 Safari/537.36 Chrome/54.0.2840.71" 
time="2017-12-26T17:06:30Z" level=debug msg="user feed: connection opened" 
time="2017-12-26T17:06:30Z" level=info ip=10.255.0.3 latency=5.737822ms method=GET path="/favicon.png" status=200 time="2017-12-26T17:06:30Z" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/54.0 Safari/537.36 Chrome/54.0.2840.71" 
time="2017-12-26T17:06:31Z" level=debug msg="ergu granted &{UserID:1 RepoID:1 Repo: Pull:true Push:true Admin:true Synced:1514306809} permission to ergu/go-lang-test" 
time="2017-12-26T17:06:31Z" level=info ip=10.255.0.3 latency=38.471752ms method=GET path="/api/repos/ergu/go-lang-test/builds/1" status=200 time="2017-12-26T17:06:31Z" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/54.0 Safari/537.36 Chrome/54.0.2840.71" 
time="2017-12-26T17:06:35Z" level=debug msg="ergu granted &{UserID:1 RepoID:1 Repo: Pull:true Push:true Admin:true Synced:1514306809} permission to ergu/go-lang-test" 
time="2017-12-26T17:06:35Z" level=info ip=10.255.0.3 latency=4.785505ms method=POST path="/api/repos/ergu/go-lang-test/builds/1" status=500 time="2017-12-26T17:06:35Z" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/54.0 Safari/537.36 Chrome/54.0.2840.71" 
time="2017-12-26T17:07:58Z" level=debug msg="user feed: connection closed" 
time="2017-12-26T17:07:58Z" level=info ip=10.255.0.3 latency=1m27.576008034s method=GET path="/stream/events" status=200 time="2017-12-26T17:07:58Z" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/54.0 Safari/537.36 Chrome/54.0.2840.71" 

I do not think the architecture (arm64) is a factor here.

I can see that, based on your logs, you are getting a 500 error when trying to restart a build. Here is the specific line in the logs:

path="/api/repos/ergu/go-lang-test/builds/1" status=500

Note that the above endpoint is trying to restart an existing builds. Does build number 1 already exist? If not, that would explain the 500 error, since you cannot re-start a build that does not exist yet. You also cannot restart pending builds or running builds.

If you are trying to start a new build, you need to push to gitea. This will trigger a post-commit hook from gitea to drone. You will see an entry in the logs for /hook. Because I do not see an entry in the logs for /hook that would tell me the following:

  1. you have not yet pushed code to gitea to trigger a build hook OR
  2. your hooks is incorrectly configured OR
  3. there is a network configuration issue and Gitea cannot reach drone

If you do not see an entry for /hooks you should debug this with your Gitea server and you should look at the hook configuration in your Gitea repository settings (as this is not a drone issue).

This is my gitea logs in Docker:

Dec 26 12:41:19 syslogd started: BusyBox v1.27.2
Dec 26 12:41:19 sshd[15]: Server listening on :: port 22.
Dec 26 12:41:19 sshd[15]: Server listening on 0.0.0.0 port 22.
2017/12/26 12:41:21 e[1;36m[T] AppPath: /app/gitea/giteae[0m
2017/12/26 12:41:21 e[1;36m[T] AppWorkPath: /app/giteae[0m
2017/12/26 12:41:21 e[1;36m[T] Custom path: /data/giteae[0m
2017/12/26 12:41:21 e[1;36m[T] Log path: /data/gitea/loge[0m
[Macaron] 2017-12-26 12:41:34: Started GET /api/v1/repos/ergu/armhf-alpine-nginx for 93.208.164.180
[Macaron] 2017-12-26 12:41:34: Started GET /api/v1/repos/ergu/armhf-alpine-nginx for 93.208.164.180
[Macaron] 2017-12-26 12:41:36: Completed /api/v1/repos/ergu/armhf-alpine-nginx 200 OK in 1.3758483s
[Macaron] 2017-12-26 12:41:36: Completed /api/v1/repos/ergu/armhf-alpine-nginx 200 OK in 1.380303307s
Dec 26 12:45:43 sshd[36]: rexec line 32: Deprecated option UsePrivilegeSeparation
Dec 26 12:45:43 sshd[36]: Accepted publickey for git from 93.208.164.180 port 60387 ssh2: RSA SHA256:8OwsCYBxczXJHkzIy5eZeVZFmuRopAZPabGDeavYkF0
[Macaron] 2017-12-26 12:45:44: Started GET /api/internal/branch/14/master for 127.0.0.1
[Macaron] 2017-12-26 12:45:44: Completed /api/internal/branch/14/master 200 OK in 25.586082ms
[Macaron] 2017-12-26 12:45:45: Started POST /api/internal/push/update for 127.0.0.1
[Macaron] 2017-12-26 12:45:47: Completed /api/internal/push/update 202 Accepted in 2.323602411s
[Macaron] 2017-12-26 12:45:47: Started POST /api/internal/ssh/1/update for 127.0.0.1
[Macaron] 2017-12-26 12:45:47: Completed /api/internal/ssh/1/update 200 OK in 196.093624ms
Dec 26 12:45:47 sshd[38]: Received disconnect from 93.208.164.180 port 60387:11: disconnected by user
Dec 26 12:45:47 sshd[38]: Disconnected from user git 93.208.164.180 port 60387
[Macaron] 2017-12-26 12:45:49: Started GET /api/v1/repos/ergu/armhf-alpine-nginx/raw/f4c841d93747c1dc34b936d31209fac3f21aaf25/.drone.yml for 93.208.164.180
[Macaron] 2017-12-26 12:45:49: Completed /api/v1/repos/ergu/armhf-alpine-nginx/raw/f4c841d93747c1dc34b936d31209fac3f21aaf25/.drone.yml 200 OK in 400.957272ms
[Macaron] 2017-12-26 12:45:52: Started POST /api/v1/repos/ergu/armhf-alpine-nginx/statuses/f4c841d93747c1dc34b936d31209fac3f21aaf25 for 93.208.164.180
[Macaron] 2017-12-26 12:45:52: Completed /api/v1/repos/ergu/armhf-alpine-nginx/statuses/f4c841d93747c1dc34b936d31209fac3f21aaf25 201 Created in 451.031424ms
[Macaron] 2017-12-26 13:50:03: Started GET /api/v1/repos/ergu/armhf-alpine-nginx for 93.208.164.180
[Macaron] 2017-12-26 13:50:03: Completed /api/v1/repos/ergu/armhf-alpine-nginx 200 OK in 319.786978ms
[Macaron] 2017-12-26 15:13:14: Started GET /api/v1/repos/ergu/armhf-alpine-nginx for 93.208.164.180
[Macaron] 2017-12-26 15:13:14: Completed /api/v1/repos/ergu/armhf-alpine-nginx 200 OK in 475.388543ms
[Macaron] 2017-12-26 15:23:49: Started GET /ergu/docker for 93.208.164.180
[Macaron] 2017-12-26 15:23:49: Completed /ergu/docker 200 OK in 559.186208ms
[Macaron] 2017-12-26 15:23:49: Started GET /vendor/assets/font-awesome/css/font-awesome.min.css for 93.208.164.180
[Macaron] 2017-12-26 15:23:49: Started GET /vendor/assets/octicons/octicons.min.css for 93.208.164.180
[Macaron] 2017-12-26 15:23:49: Started GET /vendor/plugins/semantic/semantic.min.css for 93.208.164.180
[Macaron] 2017-12-26 15:23:49: Started GET /css/index.css?v=38dfe6388acfa83c3486d41f22b08165 for 93.208.164.180
[Macaron] [Static] Serving /vendor/assets/octicons/octicons.min.css
[Macaron] 2017-12-26 15:23:49: Completed /vendor/assets/octicons/octicons.min.css 304 Not Modified in 6.151035ms
[Macaron] 2017-12-26 15:23:49: Started GET /vendor/plugins/cssrelpreload/loadCSS.min.js for 93.208.164.180
[Macaron] [Static] Serving /vendor/plugins/cssrelpreload/loadCSS.min.js
[Macaron] 2017-12-26 15:23:49: Completed /vendor/plugins/cssrelpreload/loadCSS.min.js 304 Not Modified in 2.993017ms
[Macaron] 2017-12-26 15:23:49: Started GET /vendor/plugins/cssrelpreload/cssrelpreload.min.js for 93.208.164.180
[Macaron] [Static] Serving /css/index.css
[Macaron] 2017-12-26 15:23:49: Completed /css/index.css?v=38dfe6388acfa83c3486d41f22b08165 304 Not Modified in 9.665055ms
[Macaron] [Static] Serving /vendor/plugins/cssrelpreload/cssrelpreload.min.js
[Macaron] 2017-12-26 15:23:49: Completed /vendor/plugins/cssrelpreload/cssrelpreload.min.js 304 Not Modified in 2.302013ms
[Macaron] [Static] Serving /vendor/assets/font-awesome/css/font-awesome.min.css
[Macaron] 2017-12-26 15:23:49: Completed /vendor/assets/font-awesome/css/font-awesome.min.css 304 Not Modified in 15.980092ms
[Macaron] [Static] Serving /vendor/plugins/semantic/semantic.min.css
[Macaron] 2017-12-26 15:23:50: Completed /vendor/plugins/semantic/semantic.min.css 304 Not Modified in 64.841372ms
[Macaron] 2017-12-26 15:23:50: Started GET /vendor/plugins/jquery/jquery.min.js for 93.208.164.180
[Macaron] [Static] Serving /vendor/plugins/jquery/jquery.min.js
[Macaron] 2017-12-26 15:23:50: Completed /vendor/plugins/jquery/jquery.min.js 304 Not Modified in 18.235105ms
[Macaron] 2017-12-26 15:23:50: Started GET /vendor/plugins/jquery.areyousure/jquery.are-you-sure.js for 93.208.164.180
[Macaron] 2017-12-26 15:23:50: Started GET /vendor/plugins/autolink/autolink.js for 93.208.164.180
[Macaron] 2017-12-26 15:23:50: Started GET /vendor/plugins/clipboard/clipboard.min.js for 93.208.164.180
[Macaron] 2017-12-26 15:23:50: Started GET /vendor/assets/octicons/octicons.woff2?ef21c39f0ca9b1b5116e5eb7ac5eabe6 for 93.208.164.180
[Macaron] 2017-12-26 15:23:50: Started GET /vendor/plugins/emojify/emojify.min.js for 93.208.164.180
[Macaron] [Static] Serving /vendor/plugins/jquery.areyousure/jquery.are-you-sure.js
[Macaron] 2017-12-26 15:23:50: Completed /vendor/plugins/jquery.areyousure/jquery.are-you-sure.js 304 Not Modified in 4.038023ms
[Macaron] 2017-12-26 15:23:50: Started GET /vendor/plugins/semantic/themes/default/assets/fonts/icons.woff2 for 93.208.164.180
[Macaron] [Static] Serving /vendor/plugins/emojify/emojify.min.js
[Macaron] 2017-12-26 15:23:50: Completed /vendor/plugins/emojify/emojify.min.js 304 Not Modified in 4.683027ms
[Macaron] [Static] Serving /vendor/assets/octicons/octicons.woff2
[Macaron] 2017-12-26 15:23:50: Completed /vendor/assets/octicons/octicons.woff2?ef21c39f0ca9b1b5116e5eb7ac5eabe6 304 Not Modified in 7.673044ms
[Macaron] [Static] Serving /vendor/plugins/semantic/themes/default/assets/fonts/icons.woff2
[Macaron] [Static] Serving /vendor/plugins/autolink/autolink.js
[Macaron] 2017-12-26 15:23:50: Completed /vendor/plugins/semantic/themes/default/assets/fonts/icons.woff2 304 Not Modified in 7.00004ms
[Macaron] 2017-12-26 15:23:50: Completed /vendor/plugins/autolink/autolink.js 304 Not Modified in 11.364065ms
[Macaron] [Static] Serving /vendor/plugins/clipboard/clipboard.min.js
[Macaron] 2017-12-26 15:23:50: Completed /vendor/plugins/clipboard/clipboard.min.js 304 Not Modified in 13.098075ms
[Macaron] 2017-12-26 15:23:50: Started GET /img/gitea-sm.png for 93.208.164.180
[Macaron] 2017-12-26 15:23:50: Started GET /vendor/plugins/vue/vue.min.js for 93.208.164.180
[Macaron] [Static] Serving /img/gitea-sm.png
[Macaron] 2017-12-26 15:23:50: Completed /img/gitea-sm.png 304 Not Modified in 4.493025ms
[Macaron] 2017-12-26 15:23:50: Started GET /vendor/plugins/semantic/semantic.min.js for 93.208.164.180
[Macaron] 2017-12-26 15:23:50: Started GET /js/index.js?v=38dfe6388acfa83c3486d41f22b08165 for 93.208.164.180
[Macaron] [Static] Serving /js/index.js
[Macaron] 2017-12-26 15:23:50: Completed /js/index.js?v=38dfe6388acfa83c3486d41f22b08165 304 Not Modified in 10.45306ms
[Macaron] [Static] Serving /vendor/plugins/vue/vue.min.js
[Macaron] 2017-12-26 15:23:50: Completed /vendor/plugins/vue/vue.min.js 304 Not Modified in 15.002086ms
[Macaron] [Static] Serving /vendor/plugins/semantic/semantic.min.js
[Macaron] 2017-12-26 15:23:50: Completed /vendor/plugins/semantic/semantic.min.js 304 Not Modified in 40.884234ms
[Macaron] 2017-12-26 15:23:51: Started GET /ergu/docker/src/branch/master/aarch64 for 93.208.164.180
[Macaron] 2017-12-26 15:23:52: Completed /ergu/docker/src/branch/master/aarch64 200 OK in 485.144784ms
[Macaron] 2017-12-26 15:23:53: Started GET /ergu/docker/src/branch/master/aarch64/drone-arm64 for 93.208.164.180
[Macaron] 2017-12-26 15:23:54: Completed /ergu/docker/src/branch/master/aarch64/drone-arm64 200 OK in 340.788956ms
[Macaron] 2017-12-26 15:23:56: Started GET /ergu/docker/src/branch/master/aarch64/drone-arm64/Dockerfile for 93.208.164.180
[Macaron] 2017-12-26 15:23:56: Completed /ergu/docker/src/branch/master/aarch64/drone-arm64/Dockerfile 200 OK in 259.292488ms
[Macaron] 2017-12-26 16:23:50: Started GET /ergu for 93.208.164.180
[Macaron] 2017-12-26 16:23:50: Completed /ergu 200 OK in 151.532803ms
[Macaron] 2017-12-26 16:24:00: Started GET /repo/create for 93.208.164.180
[Macaron] 2017-12-26 16:24:00: Completed /repo/create 200 OK in 48.811258ms
[Macaron] 2017-12-26 16:24:12: Started POST /repo/create for 93.208.164.180
[Macaron] 2017-12-26 16:24:13: Completed /repo/create 302 Found in 1.328466048s
[Macaron] 2017-12-26 16:24:13: Started GET /ergu/go-lang-test for 93.208.164.180
[Macaron] 2017-12-26 16:24:13: Completed /ergu/go-lang-test 200 OK in 264.034401ms
[Macaron] 2017-12-26 16:24:13: Started GET /img/avatar_default.png for 93.208.164.180
[Macaron] [Static] Serving /img/avatar_default.png
[Macaron] 2017-12-26 16:24:13: Completed /img/avatar_default.png 200 OK in 5.756031ms
Dec 26 16:24:41 sshd[255]: rexec line 32: Deprecated option UsePrivilegeSeparation
Dec 26 16:24:41 sshd[255]: Accepted publickey for git from 93.208.164.180 port 60809 ssh2: RSA SHA256:8OwsCYBxczXJHkzIy5eZeVZFmuRopAZPabGDeavYkF0
[Macaron] 2017-12-26 16:24:42: Started POST /api/internal/ssh/1/update for 127.0.0.1
[Macaron] 2017-12-26 16:24:42: Completed /api/internal/ssh/1/update 200 OK in 312.836661ms
Dec 26 16:24:42 sshd[257]: Received disconnect from 93.208.164.180 port 60809:11: disconnected by user
Dec 26 16:24:42 sshd[257]: Disconnected from user git 93.208.164.180 port 60809
[Macaron] 2017-12-26 16:32:27: Started GET /api/v1/user/repos for 93.208.164.180
[Macaron] 2017-12-26 16:32:28: Completed /api/v1/user/repos 200 OK in 501.699691ms
[Macaron] 2017-12-26 16:32:40: Started GET /ergu/go-lang-test for 93.208.164.180
[Macaron] 2017-12-26 16:32:40: Completed /ergu/go-lang-test 200 OK in 232.036245ms
[Macaron] 2017-12-26 16:32:41: Started GET /img/favicon.png for 93.208.164.180
[Macaron] [Static] Serving /img/favicon.png
[Macaron] 2017-12-26 16:32:41: Completed /img/favicon.png 200 OK in 6.023032ms
[Macaron] 2017-12-26 16:32:53: Started GET /api/v1/repos/ergu/go-lang-test for 93.208.164.180
[Macaron] 2017-12-26 16:32:54: Completed /api/v1/repos/ergu/go-lang-test 200 OK in 755.919055ms
[Macaron] 2017-12-26 16:32:55: Started POST /api/v1/repos/ergu/go-lang-test/hooks for 93.208.164.180
[Macaron] 2017-12-26 16:32:55: Completed /api/v1/repos/ergu/go-lang-test/hooks 200 OK in 669.823594ms
[Macaron] 2017-12-26 16:32:56: Started GET /api/v1/repos/ergu/go-lang-test for 93.208.164.180
[Macaron] 2017-12-26 16:32:56: Completed /api/v1/repos/ergu/go-lang-test 200 OK in 250.714345ms
Dec 26 16:33:28 sshd[280]: rexec line 32: Deprecated option UsePrivilegeSeparation
Dec 26 16:33:28 sshd[280]: Accepted publickey for git from 93.208.164.180 port 60848 ssh2: RSA SHA256:8OwsCYBxczXJHkzIy5eZeVZFmuRopAZPabGDeavYkF0
[Macaron] 2017-12-26 16:33:28: Started GET /api/internal/branch/39/master for 127.0.0.1
[Macaron] 2017-12-26 16:33:28: Completed /api/internal/branch/39/master 200 OK in 6.545035ms
[Macaron] 2017-12-26 16:33:29: Started POST /api/internal/push/update for 127.0.0.1
[Macaron] 2017-12-26 16:33:30: Completed /api/internal/push/update 202 Accepted in 1.351074251s
[Macaron] 2017-12-26 16:33:30: Started POST /api/internal/ssh/1/update for 127.0.0.1
[Macaron] 2017-12-26 16:33:30: Completed /api/internal/ssh/1/update 200 OK in 183.869987ms
Dec 26 16:33:30 sshd[282]: Received disconnect from 93.208.164.180 port 60848:11: disconnected by user
Dec 26 16:33:30 sshd[282]: Disconnected from user git 93.208.164.180 port 60848
[Macaron] 2017-12-26 16:33:31: Started GET /api/v1/repos/ergu/go-lang-test/raw/7f3c4765d9da82fbf2723c844346f0d246ca1649/.drone.yml for 93.208.164.180
[Macaron] 2017-12-26 16:33:31: Completed /api/v1/repos/ergu/go-lang-test/raw/7f3c4765d9da82fbf2723c844346f0d246ca1649/.drone.yml 200 OK in 370.117986ms
[Macaron] 2017-12-26 16:33:33: Started POST /api/v1/repos/ergu/go-lang-test/statuses/7f3c4765d9da82fbf2723c844346f0d246ca1649 for 93.208.164.180
[Macaron] 2017-12-26 16:33:34: Completed /api/v1/repos/ergu/go-lang-test/statuses/7f3c4765d9da82fbf2723c844346f0d246ca1649 201 Created in 455.454445ms
[Macaron] 2017-12-26 16:33:49: Started GET /ergu/go-lang-test/compare/60f72be92cc70b142b6bfa62c305b2e56bfc551f...7f3c4765d9da82fbf2723c844346f0d246ca1649 for 93.208.164.180
[Macaron] 2017-12-26 16:33:50: Completed /ergu/go-lang-test/compare/60f72be92cc70b142b6bfa62c305b2e56bfc551f...7f3c4765d9da82fbf2723c844346f0d246ca1649 200 OK in 530.409848ms
[Macaron] 2017-12-26 16:34:46: Started GET /ergu/go-lang-test for 93.208.164.180
[Macaron] 2017-12-26 16:34:46: Completed /ergu/go-lang-test 200 OK in 324.921746ms
[Macaron] 2017-12-26 16:34:47: Started GET /img/favicon.png for 93.208.164.180
[Macaron] [Static] Serving /img/favicon.png
[Macaron] 2017-12-26 16:34:47: Completed /img/favicon.png 200 OK in 4.513025ms
[Macaron] 2017-12-26 16:34:54: Started GET /ergu/go-lang-test/compare/master...master for 93.208.164.180
[Macaron] 2017-12-26 16:34:54: Completed /ergu/go-lang-test/compare/master...master 200 OK in 284.575529ms
[Macaron] 2017-12-26 16:34:54: Started GET /vendor/plugins/dropzone/dropzone.css for 93.208.164.180
[Macaron] [Static] Serving /vendor/plugins/dropzone/dropzone.css
[Macaron] 2017-12-26 16:34:54: Completed /vendor/plugins/dropzone/dropzone.css 200 OK in 3.486019ms
[Macaron] 2017-12-26 16:34:54: Started GET /vendor/plugins/dropzone/dropzone.js for 93.208.164.180
[Macaron] [Static] Serving /vendor/plugins/dropzone/dropzone.js
[Macaron] 2017-12-26 16:34:54: Completed /vendor/plugins/dropzone/dropzone.js 200 OK in 12.191066ms
[Macaron] 2017-12-26 16:46:06: Started GET /api/v1/users/ergu/tokens for 93.208.164.180
[Macaron] 2017-12-26 16:46:06: Completed /api/v1/users/ergu/tokens 200 OK in 513.950604ms
[Macaron] 2017-12-26 16:46:07: Started GET /api/v1/users/ergu for 93.208.164.180
[Macaron] 2017-12-26 16:46:07: Completed /api/v1/users/ergu 200 OK in 291.562477ms
[Macaron] 2017-12-26 16:46:09: Started GET /api/v1/user/repos for 93.208.164.180
[Macaron] 2017-12-26 16:46:09: Completed /api/v1/user/repos 200 OK in 489.528482ms
[Macaron] 2017-12-26 16:46:49: Started GET /api/v1/repos/ergu/go-lang-test for 93.208.164.180
[Macaron] 2017-12-26 16:46:49: Completed /api/v1/repos/ergu/go-lang-test 200 OK in 362.679844ms
[Macaron] 2017-12-26 16:46:50: Started POST /api/v1/repos/ergu/go-lang-test/hooks for 93.208.164.180
[Macaron] 2017-12-26 16:46:50: Completed /api/v1/repos/ergu/go-lang-test/hooks 200 OK in 535.049721ms
[Macaron] 2017-12-26 16:46:51: Started GET /api/v1/repos/ergu/go-lang-test for 93.208.164.180
[Macaron] 2017-12-26 16:46:51: Completed /api/v1/repos/ergu/go-lang-test 200 OK in 196.883001ms
Dec 26 16:49:56 sshd[395]: rexec line 32: Deprecated option UsePrivilegeSeparation
Dec 26 16:49:56 sshd[395]: Accepted publickey for git from 93.208.164.180 port 60892 ssh2: RSA SHA256:8OwsCYBxczXJHkzIy5eZeVZFmuRopAZPabGDeavYkF0
[Macaron] 2017-12-26 16:49:57: Started GET /api/internal/branch/39/master for 127.0.0.1
[Macaron] 2017-12-26 16:49:57: Completed /api/internal/branch/39/master 200 OK in 7.291038ms
[Macaron] 2017-12-26 16:49:57: Started POST /api/internal/push/update for 127.0.0.1
[Macaron] 2017-12-26 16:49:59: Completed /api/internal/push/update 202 Accepted in 1.486374647s
[Macaron] 2017-12-26 16:49:59: Started POST /api/internal/ssh/1/update for 127.0.0.1
[Macaron] 2017-12-26 16:49:59: Completed /api/internal/ssh/1/update 200 OK in 184.815951ms
Dec 26 16:49:59 sshd[397]: Received disconnect from 93.208.164.180 port 60892:11: disconnected by user
Dec 26 16:49:59 sshd[397]: Disconnected from user git 93.208.164.180 port 60892
[Macaron] 2017-12-26 16:50:01: Started GET /api/v1/repos/ergu/go-lang-test/raw/0576d6e24cdf0f75cdaaad3dd14b16e4a9de7010/.drone.yml for 93.208.164.180
[Macaron] 2017-12-26 16:50:01: Completed /api/v1/repos/ergu/go-lang-test/raw/0576d6e24cdf0f75cdaaad3dd14b16e4a9de7010/.drone.yml 200 OK in 358.700846ms
[Macaron] 2017-12-26 16:50:04: Started POST /api/v1/repos/ergu/go-lang-test/statuses/0576d6e24cdf0f75cdaaad3dd14b16e4a9de7010 for 93.208.164.180
[Macaron] 2017-12-26 16:50:04: Completed /api/v1/repos/ergu/go-lang-test/statuses/0576d6e24cdf0f75cdaaad3dd14b16e4a9de7010 201 Created in 450.246317ms
[Macaron] 2017-12-26 16:50:26: Started GET /ergu/go-lang-test/compare/7f3c4765d9da82fbf2723c844346f0d246ca1649...0576d6e24cdf0f75cdaaad3dd14b16e4a9de7010 for 93.208.164.180
[Macaron] 2017-12-26 16:50:26: Completed /ergu/go-lang-test/compare/7f3c4765d9da82fbf2723c844346f0d246ca1649...0576d6e24cdf0f75cdaaad3dd14b16e4a9de7010 200 OK in 418.961159ms
[Macaron] 2017-12-27 07:35:09: Started GET / for 93.208.165.102
[Macaron] 2017-12-27 07:35:10: Completed / 200 OK in 1.288298307s
[Macaron] 2017-12-27 07:35:11: Started GET /api/v1/repos/search?uid=2&q=&limit=15&mode= for 93.208.165.102
[Macaron] 2017-12-27 07:35:11: Completed /api/v1/repos/search?uid=2&q=&limit=15&mode= 200 OK in 33.363189ms

There is only one build triggered at the moment.

The webhook for the repo that drone is trying to build:

The agent seems to communicate well with server because the log says:

time="2017-12-26T17:06:06Z" level=debug msg="agent connected: fcae9fac8b21: polling" 
time="2017-12-26T17:06:30Z" level=info ip=10.255.0.3 latency=27.449744ms method=GET path="/ergu/go-lang-test" status=200 time="2017-12-26T17:06:30Z" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/54.0 Safari/537.36 Chrome/54.0.2840.71" 
time="2017-12-26T17:06:30Z" level=info ip=10.255.0.3 latency=6.675639ms method=GET path="/api/user/feed" status=200 time="2017-12-26T17:06:30Z" user-agent="Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Iridium/54.0 Safari/537.36 Chrome/54.0.2840.71" 
time="2017-12-26T17:06:30Z" level=debug msg="ergu granted &{UserID:1 RepoID:1 Repo: Pull:true Push:true Admin:true Synced:1514306809} permission to ergu/go-lang-test" 

The agent will log an entry when it successfully pulls a build from the server queue. This log message will look something like this:

{"time":"2017-08-03T14:12:49-04:00","level":"debug","repo":"octocat/hello-world","build":"5","id":"158","message":"received execution"}

The absense of this log message could be the result of

  1. the agent <> server communication is being disrupted or broken
  2. there is a platform mismatch between your yaml file and the agent

Note that the official arm64 image (drone/agent:linux-arm64) is configured with the correct defaults to send the platform to the server, which the server will match to the platform field in the yaml. If this is not configured correctly, and the platforms never match up, your build will never be assigned to an agent.

This is the Dockerfile that I used for agent :

FROM arm64v8/alpine
ENV GODEBUG=netdns=go
ENV DRONE_PLATFORM=linux/arm64
ADD drone-agent /bin/

EXPOSE 3000
HEALTHCHECK CMD ["/bin/drone-agent", "ping"]

ENTRYPOINT ["/bin/drone-agent"]

Dockerfile drone-server :

FROM arm64v8/alpine
EXPOSE 8000 9000 80 443

RUN apk add -U --no-cache ca-certificates

ENV DATABASE_DRIVER=sqlite3
ENV DATABASE_CONFIG=/var/lib/drone/drone.sqlite
ENV GODEBUG=netdns=go
ENV XDG_CACHE_HOME /var/lib/drone

ADD drone-server /bin/

ENTRYPOINT ["/bin/drone-server"]

the yaml file :

version: '3'

networks:
  traefik-net:
    external: true
      
services:
  
  server64:
    image: bambuserver1:5000/ergu/drone-server:0.8.3-arm64
    deploy:
        labels:
            traefik.enable: "true" 
            traefik.port: "8000"
            traefik.docker.network: "traefik-net"
            traefik.backend.maxconn.amount: "1"
            traefik.frontend.rule: "Host:drone64"
        placement:
            constraints:
            - node.hostname==bambuserver11

    ports:
      - 9000:9000
    networks:
      - traefik-net
    volumes:
        - drone-datas:/var/lib/drone
    environment:
      - DRONE_ADMIN=ergu,administrator
      - DRONE_DEBUG=true
      - DRONE_OPEN=true
      - DRONE_HOST=server64
      - DRONE_SECRET=${DRONE_SECRET}
      - DRONE_PORT=${DRONE_PORT}
      - DRONE_SERVER_PORT=${DRONE_SERVER_PORT}
      - DRONE_GITEA=true
      - DRONE_GITEA_URL=http://bambuserver1:3000
      - DRONE_GITEA_SKIP_VERIFY=true
      - DRONE_ESCALATE=ergu/drone-docker-arm64,ergu/drone-git-arm64

  agent64:
    depends_on: [ server64 ]
    image: bambuserver1:5000/ergu/drone-agent:0.8.3-arm64
    networks:
      - traefik-net
    deploy:
        placement:
            constraints:
            - node.hostname==bambuserver11

    volumes: [ "/var/run/docker.sock:/var/run/docker.sock" ]
    
    environment:
      - DRONE_SERVER=server64:9000
      - DRONE_SECRET=${DRONE_SECRET}
      - DRONE_DEBUG=true
          
volumes:
  drone-datas:
    driver: local-persist
    driver_opts:
        mountpoint: /mnt/virtual/docker/volumes/drone/
        type: volume 

Tried to ping from the agent the server

Tried to ping from the server the agent

and does your .drone.yml define the platform so that it is routed to the agent:

platform: linux/amd64

pipeline:
  ...

I used the dummy example for the plugin.

workspace:
  base: /go
  path: src/github.com/octocat/hello-world

pipeline:
  build:
    image: golang:latest
    commands:
      - go get ./...
      - go test
      - go build

The default examples are for amd64. If you are using an arm64 agent, you must include the platform in your yaml file. If you do not specify a platform, drone assumes the default amd64 platform.

So in this case, because no platform is specified, drone assumes amd64 which means the build will never be routed to your arm64 agent, and will sit in a pending state indefinitely.

Are you suggesting me to just add this to my .drone file ?

platform: linux/arm64

I will test this just right now!

There is some progress brother !

Not bad but it failed !

It is working perfect on arm64 thanx Brad good work!

I will now compile and test for arm32