Closed ijkzen closed 9 months ago
I am using harness/gitness:3.0.0-beta.4.
But when I using docker plugin in pipeline, something went wrong.
I find solution in docs.drone.io, but it is not work for me.
I am sure that password is correct, which can login success by command line.
My pipeline file like below
kind: pipeline spec: stages: - name: build spec: platform: arch: amd64 os: linux steps: - type: plugin spec: name: docker inputs: auto_tag: true debug: true dockerfile: Dockerfile dry_run: "false" email: myemail force_tag: true password: dckr_pat_hxxxxxxxxxxxx_hvaQu-Kt5Tw // Anonymous token purge: "true" repo: ijkzen/javdb_spider username: ijkzen type: ci version: 1
debug_log is following
script latest: Pulling from plugins/docker Digest: sha256:2f157400c2cb7de1b309b0f044f119375108218e54d38e1340e00b9f93abdefb Status: Image is up to date for plugins/docker:latest + /usr/local/bin/dockerd --data-root /var/lib/docker --host=unix:///var/run/docker.sock time="2023-11-24T13:22:03.069913755Z" level=info msg="Starting up" time="2023-11-24T13:22:03.070797784Z" level=warning msg="could not change group /var/run/docker.sock to docker: group docker not found" time="2023-11-24T13:22:03.071411451Z" level=info msg="libcontainerd: started new containerd process" pid=35 time="2023-11-24T13:22:03.071432847Z" level=info msg="parsed scheme: \"unix\"" module=grpc time="2023-11-24T13:22:03.071438966Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc time="2023-11-24T13:22:03.071452056Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc time="2023-11-24T13:22:03.071461408Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc time="2023-11-24T13:22:03Z" level=warning msg="deprecated version : `1`, please switch to version `2`" time="2023-11-24T13:22:03.082555618Z" level=info msg="starting containerd" revision=3df54a852345ae127d1fa3092b95168e4a88e2f8 version=v1.5.11 t ime="2023-11-24T13:22:03.100989653Z" level=info msg="loading plugin \"io.containerd.content.v1.content\"..." type=io.containerd.content.v1 time="2023-11-24T13:22:03.101107154Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.aufs\"..." type=io.containerd.snapshotter.v1 time="2023-11-24T13:22:03.106887444Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.aufs\"..." error="aufs is not supported (modprobe aufs failed: exit status 1 \"ip: can't find device 'aufs'\\nmodprobe: can't change directory to '/lib/modules': No such file or directory\\n\"): skip plugin" type=io.containerd.snapshotter.v1 time="2023-11-24T13:22:03.106911188Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." type=io.containerd.snapshotter.v1 time="2023-11-24T13:22:03.107111110Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.btrfs\"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.btrfs (ext4) must be a btrfs filesystem to be used with the btrfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1 time="2023-11-24T13:22:03.107136050Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.devmapper\"..." type=io.containerd.snapshotter.v1 time="2023-11-24T13:22:03.107155549Z" level=warning msg="failed to load plugin io.containerd.snapshotter.v1.devmapper" error="devmapper not configured" time="2023-11-24T13:22:03.107164009Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.native\"..." type=io.containerd.snapshotter.v1 time="2023-11-24T13:22:03.107286874Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.overlayfs\"..." type=io.containerd.snapshotter.v1 time="2023-11-24T13:22:03.107475990Z" level=info msg="loading plugin \"io.containerd.snapshotter.v1.zfs\"..." type=io.containerd.snapshotter.v1 time="2023-11-24T13:22:03.107625693Z" level=info msg="skip loading plugin \"io.containerd.snapshotter.v1.zfs\"..." error="path /var/lib/docker/containerd/daemon/io.containerd.snapshotter.v1.zfs must be a zfs filesystem to be used with the zfs snapshotter: skip plugin" type=io.containerd.snapshotter.v1 time="2023-11-24T13:22:03.107644722Z" level=info msg="loading plugin \"io.containerd.metadata.v1.bolt\"..." type=io.containerd.metadata.v1 time="2023-11-24T13:22:03.107692272Z" level=warning msg="could not use snapshotter devmapper in metadata plugin" error="devmapper not configured" time="2023-11-24T13:22:03.107702507Z" level=info msg="metadata content store policy set" policy=shared time="2023-11-24T13:22:03.109805594Z" level=info msg="loading plugin \"io.containerd.differ.v1.walking\"..." type=io.containerd.differ.v1 time="2023-11-24T13:22:03.109827243Z" level=info msg="loading plugin \"io.containerd.gc.v1.scheduler\"..." type=io.containerd.gc.v1 time="2023-11-24T13:22:03.109879255Z" level=info msg="loading plugin \"io.containerd.service.v1.introspection-service\"..." type=io.containerd.service.v1 time="2023-11-24T13:22:03.109924718Z" level=info msg="loading plugin \"io.containerd.service.v1.containers-service\"..." type=io.containerd.service.v1 time="2023-11-24T13:22:03.109967415Z" level=info msg="loading plugin \"io.containerd.service.v1.content-service\"..." type=io.containerd.service.v1 time="2023-11-24T13:22:03.110043712Z" level=info msg="loading plugin \"io.containerd.service.v1.diff-service\"..." type=io.containerd.service.v1 time="2023-11-24T13:22:03.110057430Z" level=info msg="loading plugin \"io.containerd.service.v1.images-service\"..." type=io.containerd.service.v1 time="2023-11-24T13:22:03.110067469Z" level=info msg="loading plugin \"io.containerd.service.v1.leases-service\"..." type=io.containerd.service.v1 time="2023-11-24T13:22:03.110093248Z" level=info msg="loading plugin \"io.containerd.service.v1.namespaces-service\"..." type=io.containerd.service.v1 time="2023-11-24T13:22:03.110115255Z" level=info msg="loading plugin \"io.containerd.service.v1.snapshots-service\"..." type=io.containerd.service.v1 time="2023-11-24T13:22:03.110136203Z" level=info msg="loading plugin \"io.containerd.runtime.v1.linux\"..." type=io.containerd.runtime.v1 t ime="2023-11-24T13:22:03.110338429Z" level=info msg="loading plugin \"io.containerd.runtime.v2.task\"..." type=io.containerd.runtime.v2 time="2023-11-24T13:22:03.110452834Z" level=info msg="loading plugin \"io.containerd.monitor.v1.cgroups\"..." type=io.containerd.monitor.v1 time="2023-11-24T13:22:03.110686716Z" level=info msg="loading plugin \"io.containerd.service.v1.tasks-service\"..." type=io.containerd.service.v1 time="2023-11-24T13:22:03.110713604Z" level=info msg="loading plugin \"io.containerd.internal.v1.restart\"..." type=io.containerd.internal.v1 time="2023-11-24T13:22:03.110756511Z" level=info msg="loading plugin \"io.containerd.grpc.v1.containers\"..." type=io.containerd.grpc.v1 t ime="2023-11-24T13:22:03.110767713Z" level=info msg="loading plugin \"io.containerd.grpc.v1.content\"..." type=io.containerd.grpc.v1 time="2023-11-24T13:22:03.110787296Z" level=info msg="loading plugin \"io.containerd.grpc.v1.diff\"..." type=io.containerd.grpc.v1 time="2023-11-24T13:22:03.110795777Z" level=info msg="loading plugin \"io.containerd.grpc.v1.events\"..." type=io.containerd.grpc.v1 time="2023-11-24T13:22:03.110804828Z" level=info msg="loading plugin \"io.containerd.grpc.v1.healthcheck\"..." type=io.containerd.grpc.v1 time="2023-11-24T13:22:03.110813677Z" level=info msg="loading plugin \"io.containerd.grpc.v1.images\"..." type=io.containerd.grpc.v1 time="2023-11-24T13:22:03.110822966Z" level=info msg="loading plugin \"io.containerd.grpc.v1.leases\"..." type=io.containerd.grpc.v1 time="2023-11-24T13:22:03.110833586Z" level=info msg="loading plugin \"io.containerd.grpc.v1.namespaces\"..." type=io.containerd.grpc.v1 time="2023-11-24T13:22:03.110842360Z" level=info msg="loading plugin \"io.containerd.internal.v1.opt\"..." type=io.containerd.internal.v1 time="2023-11-24T13:22:03.111021383Z" level=info msg="loading plugin \"io.containerd.grpc.v1.snapshots\"..." type=io.containerd.grpc.v1 time="2023-11-24T13:22:03.111043977Z" level=info msg="loading plugin \"io.containerd.grpc.v1.tasks\"..." type=io.containerd.grpc.v1 time="2023-11-24T13:22:03.111053949Z" level=info msg="loading plugin \"io.containerd.grpc.v1.version\"..." type=io.containerd.grpc.v1 time="2023-11-24T13:22:03.111062391Z" level=info msg="loading plugin \"io.containerd.grpc.v1.introspection\"..." type=io.containerd.grpc.v1 time="2023-11-24T13:22:03.111283097Z" level=info msg=serving... address=/var/run/docker/containerd/containerd-debug.sock time="2023-11-24T13:22:03.111349767Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock.ttrpc time="2023-11-24T13:22:03.111408874Z" level=info msg=serving... address=/var/run/docker/containerd/containerd.sock time="2023-11-24T13:22:03.111443227Z" level=info msg="containerd successfully booted in 0.030134s" time="2023-11-24T13:22:03.115054195Z" level=info msg="parsed scheme: \"unix\"" module=grpc time="2023-11-24T13:22:03.115069431Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc time="2023-11-24T13:22:03.115081380Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc time="2023-11-24T13:22:03.115088118Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc time="2023-11-24T13:22:03.115639278Z" level=info msg="parsed scheme: \"unix\"" module=grpc time="2023-11-24T13:22:03.115651128Z" level=info msg="scheme \"unix\" not registered, fallback to default scheme" module=grpc time="2023-11-24T13:22:03.115661973Z" level=info msg="ccResolverWrapper: sending update to cc: {[{unix:///var/run/docker/containerd/containerd.sock <nil> 0 <nil>}] <nil> <nil>}" module=grpc time="2023-11-24T13:22:03.115670029Z" level=info msg="ClientConn switching balancer to \"pick_first\"" module=grpc time="2023-11-24T13:22:03.129429406Z" level=info msg="Loading containers: start." time="2023-11-24T13:22:03.170303636Z" level=info msg="Default bridge (docker0) is assigned with an IP address 172.17.0.0/16. Daemon option --bip can be used to set a preferred IP address" time="2023-11-24T13:22:03.195610323Z" level=info msg="Loading containers: done." time="2023-11-24T13:22:03.203655327Z" level=info msg="Docker daemon" commit=87a90dc graphdriver(s)=overlay2 version=20.10.14 time="2023-11-24T13:22:03.203759420Z" level=info msg="Daemon has completed initialization" time="2023-11-24T13:22:03.223018955Z" level=info msg="API listen on /var/run/docker.sock" Detected registry credentials unknown shorthand flag: 'e' in -e See 'docker login --help'. time="2023-11-24T13:22:04Z" level=fatal msg="error authenticating: exit status 1"
Please Help me. Thank you!
Bug in drone-plugins/drone-docker, has added pull request.
I am using harness/gitness:3.0.0-beta.4.
But when I using docker plugin in pipeline, something went wrong.
I find solution in docs.drone.io, but it is not work for me.
I am sure that password is correct, which can login success by command line.
My pipeline file like below
debug_log is following
Please Help me. Thank you!