Hello,
I was attempting to use the docker plugin to build images of my project but for some reason it exits with code 137.
I’ve read a bit about that exit code looks like out of memory killed, but my server has 6.5 gb ram, how is that not enough to build this image, i’ve like 4+ gb free all the time?
Also i went and built it manually on the same server no problems at all…
Have anyone ran into such issue?
Here’s my .drone.yml
pipeline:
restore-cache:
image: drillster/drone-volume-cache
restore: true
mount:
- .gradleHome
volumes:
- /tmp/drone-cache-${DRONE_REPO_NAME}:/cache
depdendencies:
image: openjdk:8-jdk
environment:
- GRADLE_OPTS=-Dorg.gradle.daemon=false
- GRADLE_USER_HOME=.gradleHome
commands:
- ./gradlew dependencies
test:
image: openjdk:8-jdk
environment:
- GRADLE_OPTS=-Dorg.gradle.daemon=false
- GRADLE_USER_HOME=.gradleHome
commands:
- ./gradlew test
rebuild-cache:
image: drillster/drone-volume-cache
rebuild: true
mount:
- .gradleHome
volumes:
- /tmp/drone-cache-${DRONE_REPO_NAME}:/cache
telegram:
image: appleboy/drone-telegram
secrets: [ telegram_token, telegram_to ]
format: markdown
message: |
[Build]({{build.link}}) for [{{repo.name}}:{{commit.branch}}@{{truncate commit.sha 8}}](https://github.com/{{repo.owner}}/{{repo.name}}/commit/{{commit.sha}}) {{#success build.status}}*Succeeded!*{{else}}*Failed!*{{/success}}
{{#success build.status}}
Good job [{{commit.author}}](https://github.com/{{commit.author}})!
{{else}}
Shame on you [{{commit.author}}](https://github.com/{{commit.author}}) _Fix me please!_
{{/success}}
when:
status: [ success, failure ]
docker-image-login:
image: plugins/docker
repo: myOrg/loginserver
dockerfile: Dockerfile_loginserver
registry: registry.my.org
secrets: [ docker_username, docker_password ]
# when:
# branch: [master]
docker-image-game:
image: plugins/docker
repo: myOrg/gameserver
dockerfile: Dockerfile_gameserver
registry: registry.my.org
secrets: [ docker_username, docker_password ]
# when:
# branch: [master]
Here’s information printed by docker plugin
+ /usr/local/bin/dockerd -g /var/lib/docker
+ /usr/local/bin/docker version
Client:
Version: 17.12.0-ce
API version: 1.35
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:05:38 2017
OS/Arch: linux/amd64
Server:
Engine:
Version: 17.12.0-ce
API version: 1.35 (minimum version 1.12)
Go version: go1.9.2
Git commit: c97c6d6
Built: Wed Dec 27 20:12:29 2017
OS/Arch: linux/amd64
Experimental: false
+ /usr/local/bin/docker info
WARNING: No swap limit support
WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
Containers: 0
Running: 0
Paused: 0
Stopped: 0
Images: 0
Server Version: 17.12.0-ce
Storage Driver: overlay2
Backing Filesystem: extfs
Supports d_type: true
Native Overlay Diff: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins:
Volume: local
Network: bridge host macvlan null overlay
Log: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslog
Swarm: inactive
Runtimes: runc
Default Runtime: runc
Init Binary: docker-init
containerd version: 89623f28b87a6004d4b785663257362d1658a729
runc version: b2567b37d7b75eb4cf325b77297b140ea686ce8f
init version: 949e6fa
Security Options:
seccomp
Profile: default
Kernel Version: 4.9.0-4-amd64
Operating System: Alpine Linux v3.7 (containerized)
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 6.324GiB
Name: 4119d0ee9b3f
Docker Root Dir: /var/lib/docker
Debug Mode (client): false
Debug Mode (server): false
Registry: https://index.docker.io/v1/
Labels:
Experimental: false
Insecure Registries:
127.0.0.0/8
Live Restore Enabled: false
Here are logs from agent
{"time":"2018-03-02T16:54:16Z","level":"debug","message":"request next execution"}
{"time":"2018-03-02T17:07:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"received execution"}
{"time":"2018-03-02T17:07:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"listen for cancel signal"}
{"time":"2018-03-02T17:07:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:07:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:07:32Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","message":"log stream opened"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","message":"log stream copied"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","message":"log stream uploading"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","message":"log stream upload complete"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","message":"log stream closed"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/git:latest","stage":"clone","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:08:10Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:08:11Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","message":"log stream opened"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","message":"log stream copied"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","message":"log stream uploading"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","message":"log stream upload complete"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","message":"log stream closed"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"restore-cache","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:08:12Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","message":"log stream opened"}
{"time":"2018-03-02T17:08:27Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","message":"log stream copied"}
{"time":"2018-03-02T17:08:27Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","message":"log stream uploading"}
{"time":"2018-03-02T17:08:27Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","message":"log stream upload complete"}
{"time":"2018-03-02T17:08:27Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","message":"log stream closed"}
{"time":"2018-03-02T17:08:28Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:08:28Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"depdendencies","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:08:28Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:08:28Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:08:28Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","message":"log stream opened"}
{"time":"2018-03-02T17:08:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"pipeline lease renewed"}
{"time":"2018-03-02T17:09:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"pipeline lease renewed"}
{"time":"2018-03-02T17:09:42Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","message":"log stream copied"}
{"time":"2018-03-02T17:09:42Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","message":"log stream uploading"}
{"time":"2018-03-02T17:09:42Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","message":"log stream upload complete"}
{"time":"2018-03-02T17:09:42Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","message":"log stream closed"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"openjdk:8-jdk","stage":"test","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","message":"log stream opened"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","message":"log stream copied"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","message":"log stream uploading"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","message":"log stream upload complete"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","message":"log stream closed"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"drillster/drone-volume-cache:latest","stage":"rebuild-cache","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:09:43Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","message":"log stream opened"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","message":"log stream copied"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","message":"log stream uploading"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","message":"log stream upload complete"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","message":"log stream closed"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","exit_code":0,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"appleboy/drone-telegram:latest","stage":"telegram","exit_code":0,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","exit_code":0,"exited":false,"message":"update step status"}
{"time":"2018-03-02T17:09:44Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","exit_code":0,"exited":false,"message":"update step status complete"}
{"time":"2018-03-02T17:09:45Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","message":"log stream opened"}
{"time":"2018-03-02T17:10:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"pipeline lease renewed"}
{"time":"2018-03-02T17:11:31Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"pipeline lease renewed"}
{"time":"2018-03-02T17:11:35Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","message":"log stream copied"}
{"time":"2018-03-02T17:11:35Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","message":"log stream uploading"}
{"time":"2018-03-02T17:11:35Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","message":"log stream upload complete"}
{"time":"2018-03-02T17:11:35Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","message":"log stream closed"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","exit_code":1,"exited":true,"message":"update step status"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","image":"plugins/docker:latest","stage":"docker-image-login","exit_code":1,"exited":true,"message":"update step status complete"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","error":"","exit_code":1,"message":"pipeline complete"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"uploading logs"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"uploading logs complete"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","error":"","exit_code":1,"message":"updating pipeline status"}
{"time":"2018-03-02T17:11:36Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"stop listening for cancel signal"}
{"time":"2018-03-02T17:11:37Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"updating pipeline status complete"}
{"time":"2018-03-02T17:11:37Z","level":"debug","message":"request next execution"}
{"time":"2018-03-02T17:11:37Z","level":"debug","repo":"UnAfraid/MyRepo","build":"1568","id":"10481","message":"pipeline done"}