Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Oct 18 03:30
    @bradrydzewski banned @vityafx
  • May 07 20:55
    @bradrydzewski banned @izznogooood
jbc22
@jbc22
It’s the logs from the runner, by the way
@ashwilliams1 is there any documentation regarding mounting the docker socket into the runner container?
This sounds like the problem to me
Gabriele Cimato
@Gabri3l
Hey @bradrydzewski I know you're super busy but I was wondering if you had a chance to create a simple working config for cockroach. Thanks in advance!
ashwilliams1
@ashwilliams1
@jbc22 thanks for posting the details. I replied and I think I see the issue, along with some other tips. Hope that helps!
Brad Rydzewski
@bradrydzewski
@HighwayofLife I have been directing everyone to your updated Helm chart, but I think some are having difficulty figuring out how to use it. I am guessing updating the README is undesirable since the hope is to get this merged mainline. Would you consider writing up a quick thread at discourse.drone.io that I can direct folks to? Hope it isn't asking too much. thanks!!
@Gabri3l sorry, have been completely swamped but will try and find some time. Once I get something working I will let you know!
Gabriele Cimato
@Gabri3l
Oh yeah don't worry! Ping me if you get to a working sample, I will let you know if I happen to make any progress on my side as well! Thank you!!!
= - =
@mouyong
I use the docker drone , when i click sync, log said cann't sync repositories. have somebody know how to resolve this problem?
drone-server           | {"level":"debug","login":"mouyong","msg":"begin synchronization","time":"2019-12-04T07:01:23Z"}
drone-server           | {"level":"debug","login":"mouyong","msg":"syncer: begin repository sync","time":"2019-12-04T07:01:23Z"}
drone-server           | {"error":"500 Internal Server Error","level":"warning","login":"mouyong","msg":"syncer: cannot get remote repository list","time":"2019-12-04T07:01:27Z"}
drone-server           | {"level":"debug","login":"mouyong","msg":"synchronization failed: 500 Internal Server Error","time":"2019-12-04T07:01:27Z"}
drone-server           | {"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"linux","time":"2019-12-04T07:01:28Z","type":"docker","variant":""}
drone-server           | {"level":"debug","login":"mouyong","msg":"begin synchronization","time":"2019-12-04T07:01:23Z"}
drone-server           | {"level":"debug","login":"mouyong","msg":"syncer: begin repository sync","time":"2019-12-04T07:01:23Z"}
drone-server           | {"fields.time":"2019-12-04T07:01:23Z","latency":240600,"level":"debug","method":"GET","msg":"","remote":"172.30.0.1:49192","request":"/","request-id":"1UVXl2YmAcjM8fFRfcOBiaD4nQy","time":"2019-12-04T07:01:23Z"}
drone-server           | {"fields.time":"2019-12-04T07:01:24Z","latency":240900,"level":"debug","method":"GET","msg":"","remote":"172.30.0.1:49194","request":"/api/user","request-id":"1UVXl8aL93lmBqN2ubinp4M3Iw6","time":"2019-12-04T07:01:24Z"}
drone-server           | {"fields.time":"2019-12-04T07:01:24Z","latency":838100,"level":"debug","method":"GET","msg":"","remote":"172.30.0.1:49196","request":"/api/user/repos?latest=true","request-id":"1UVXlCfCnhQmVRZDknEmmKSgKjU","time":"2019-12-04T07:01:24Z"}
drone-server           | {"fields.time":"2019-12-04T07:01:24Z","latency":584900,"level":"debug","method":"GET","msg":"","remote":"172.30.0.1:49198","request":"/api/user/builds/recent","request-id":"1UVXl80US33sodUeYDUbQn4xTvo","time":"2019-12-04T07:01:24Z"}
drone-server           | {"fields.time":"2019-12-04T07:01:24Z","latency":500200,"level":"debug","method":"GET","msg":"","remote":"172.30.0.1:49200","request":"/api/user/repos?latest=true","request-id":"1UVXlCWeZC3HpkssOUmzYefkiOm","time":"2019-12-04T07:01:24Z"}
drone-server           | {"level":"debug","msg":"events: stream opened","request-id":"1UVXlBhT4oCxSlHlL5emIkYoGWH","time":"2019-12-04T07:01:24Z","user.login":"mouyong"}
drone-server           | {"error":"500 Internal Server Error","level":"warning","login":"mouyong","msg":"syncer: cannot get remote repository list","time":"2019-12-04T07:01:27Z"}
drone-server           | {"level":"debug","login":"mouyong","msg":"synchronization failed: 500 Internal Server Error","time":"2019-12-04T07:01:27Z"}
drone-server           | {"arch":"amd64","kernel":"","kind":"pipeline","level":"debug","msg":"manager: context canceled","os":"linux","time":"2019-12-04T07:01:28Z","type":"docker","variant":""}
rayanebel
@rayanebel

Hello everyone,

can someone explain me the difference between configuring this env variable DRONE_KUBERNETES_ENABLED and deploy the Kubernetes runner ?

When I read some article about drone.io I saw that we can execute all pipeline steps into kubernetes pods without running any agent ?

matrixbot
@matrixbot
gchaincl hey, quick question, if I have more than 1 docker runner, that means that all of them will run the builds, or drone server will distribute the load?
fominv
@fominv
Hey guys. Where is the pipeline yml file stored? I click on save in the WebUI when trying to activate, but i cannot find it. Thanks!
@fominv Ok figured it out, have to add it to my repository!
rayanebel
@rayanebel

Hello guys @bradrydzewski,
I'm trying to run my first kubernetes pipeline, kubernetes runner spawn a new pod but this pod is immediately killed without any reason:

Only message that I have is this:

  Normal  Started    6s                kubelet, ip-10-64-7-249.eu-central-1.compute.internal  Started container
  Normal  Created    5s (x2 over 10s)  kubelet, ip-10-64-7-249.eu-central-1.compute.internal  Created container
  Normal  Killing    5s                kubelet, ip-10-64-7-249.eu-central-1.compute.internal  Killing container with id docker://drone-m5b4sok6jlj24kojgbfb:Container spec hash changed (3761618974 vs 538082423).. Container will be killed and recreated.
  Normal  Pulled     5s                kubelet, ip-10-64-7-249.eu-central-1.compute.internal  Container image "drone/git:latest" already present on machine
  Normal  Started    4s (x2 over 7s)   kubelet, ip-10-64-7-249.eu-central-1.compute.internal  Started container
mramotowski
@mramotowski
Hey a question about drone CI. Will all PR's targeting branch X be rebuilt after merging one of them to branch X?
Leandro Hoffmann
@lehno
Hi guys, I have this simple pipeline
kind: pipeline
type: docker
name: default

steps:
  - name: publish
    image: plugins/ecr
    environment:
      PLUGIN_STORAGE_DRIVER: overlay2
      PLUGIN_CACHE_FROM: test.xxxxx.xxx.eu-west-1.amazonaws.com/test:latest
    settings:
      repo: test
      region: eu-west-1
      tags:
        - ${DRONE_COMMIT}
        - latest
      access_key:
        from_secret: aws_access_key_id
      secret_key:
        from_secret: aws_secret_access_key
      registry: test.xxxxx.xxx.eu-west-1.amazonaws.com

  - name: deploy
    image: quay.io/hectorqin/drone-kubectl
    settings:
      kubernetes_template: k8s/api-deployment.yaml
      kubernetes_namespace: default
      kubernetes_server: https://test.xxxxxx.xxxx.sk1.eu-west-1.eks.amazonaws.com
      kubernetes_cert:
        from_secret: KUBERNETES_CERT
      kubernetes_token:
        from_secret: KUBERNETES_TOKEN
    environment:
      DRONE_COMMIT: ${DRONE_COMMIT}

trigger:
  branch:
    - development
My image is 10GB and it is failing with ephemeral disk space full
Im using docker runner and I have a PVC on kubernetes and AWS with 100gb space
how do I give more space for my DinD to be able to build this image?
Brad Rydzewski
@bradrydzewski
@lehno I think information missing would be how that PVC is being mounted and how you have ensured the publish image is using the PVC for storage
if Drone is using the host machine docker socket to launch pipeline containers, then we might assume pipelines are not using the PVC for their filesystems
if Drone is connecting to a docker daemon that is running inside the same pod as the agent, you would need to make sure the PVC is mounted in a way that all Docker layers are written to the PVC
my initial impression, based on limited data, is that this is probably a pod configuration issue vs something that needs to be handled within Drone itself
matrixbot
@matrixbot
gchaincl what plugin should I use to cache go modules?
Leandro Hoffmann
@lehno
@bradrydzewski sorry for the missing info
Im using helm and the only configuration I changed is the persistence step
persistence:
  enabled: true

  ## A manually managed Persistent Volume and Claim
  ## Requires persistence.enabled: true
  ## If defined, PVC must be created manually before volume will be bound
  existingClaim: drone-home-pvc
drone-home-pvc is 100gb disk on aws
I see there is a volume step on the agent part on helm values as well, should I enable it there? should I use volume mount on my pipeline to make it available to the agent?
tcassaert
@tcassaert
Hi all. I'm having some issues getting a Gitlab repository activated... Gitlab is self-hosted. Doing the same thing on gitlab.com does work.
I'm getting a '404 Record not found'. It's similar to https://discourse.drone.io/t/error-activating-gitlab-repository/3153.
When I look at the logs of the Drone server, it shows that I'm not admin... But I am admin on the gitlab instance, and owner of the repository. Does anyone know where to start? I guess it's more a gitlab authentication thing than a Drone thing, but I'm not sure
{
  "admin": false,
  "error": "404 Project Not Found",
  "level": "warning",
  "msg": "api: cannot sync repository permissions",
  "name": "drone-poc",
  "namespace": "tcassaert",
  "read": true,
  "request-id": "1UZC9WeivgqXQaBR78hs7ngfqPi",
  "time": "2019-12-05T14:02:58Z",
  "user.login": "tcassaert",
  "write": false
}
This is the important log message
Pavle Portic
@TheEdgeOfRage

Is the repo under a GitLab subgroup?

Something like this: https://gitlab.example.com/<owner>/<group>/<repo>

tcassaert
@tcassaert
No, it's just tcassaert/drone-poc
We do have subgroups on our instance, but this repo is not in one
Idk if having subgroups is already enough to make it not work
tcassaert
@tcassaert
Just tried this with the gitlab-ce docker image, this works without a problem, even with admin: false and write: false... So it will have something to do with the subgroups?
MightyDjinn
@MightyDjinn
Is there a way to change the dns-policy on the batch jobs made by the kubernetes runner?
ashwilliams1
@ashwilliams1
@MightyDjinn did you use the Helm chart? As an aside the Helm chart is outdated and uses a deprecated, experimental kubernetes implementation. The following is now the preferred way to run pipelines on Kubernetes https://kube-runner.docs.drone.io/. It does not use jobs, and instead creates a single pod per pipeline
There is a forked / updated Helm chart that installs this runner at https://github.com/HighwayofLife/helm-charts-drone
MightyDjinn
@MightyDjinn
Looks like i need to re-install! Thanks!
I use flux, so I prefer the raw objects, when possible
ashwilliams1
@ashwilliams1
I'm not sure about DNS in the new Kubernetes pipeline runner, but either way this is what you will want to use
PhoenixMage
@PhoenixMage
Is it possible to trigger a rebuild on cloud.drone.io without a commit?
Roman Voitenko
@rvoitenko
Hello @bradrydzewski,
regarding search on https://docs.drone.io/ - it's working really not relevant, for example if I enter "trigger" it shows few pages, but not of them related to pipeline triggers. I didn't found up-to-date repo where these docs stored. Maybe I can help to setup the proper search ?
matrixbot
@matrixbot
strk is the docker plugin broken ? build: Error response from daemon: pull access denied for plugin/docker, repository does not exist or may require 'docker login': denied: requested access to the resource is denied
matrixbot
@matrixbot
strk uhm, I had the wrong image name (plugin/docker instead of docker). But now I get a success with no output ?! https://dronie.osgeo.org/postgis/postgis-docker/4/1/2
Thomas Boerger
@tboerger
Plugins, not plugin...
matrixbot
@matrixbot
strk Anyway, with no namespace at all it "worked"
Dmitry Strygin
@strygin

Hello, I need help here.
Any idea now to make interpolation work correctly?

...
- name: package
  image: plugins/ecr
  settings:
    tags:
      - ${DRONE_BRANCH//\\//-}${DRONE_TAG//\\//-}
      - ${DRONE_BRANCH//\\//-}${DRONE_TAG//\\//-}-${DRONE_COMMIT_SHA:0:7}
      - ${DRONE_COMMIT_SHA}
    dockerfile: Dockerfile
    repo: xxxxxx.dkr.ecr.us-east-1.amazonaws.com/${DRONE_REPO_NAME}
    registry: *registry
    <<: *aws_creds
    build_args_from_env:
      - TAG
  environment:
    TAG: ${DRONE_BRANCH//\\//-}${DRONE_TAG//\\//-}-${DRONE_COMMIT_SHA:0:7}
  commands:
    - env

Output:

...
TAG=${DRONE_BRANCH//\\//-}${DRONE_TAG//\\//-}-${DRONE_COMMIT_SHA:0:7}
...
PLUGIN_TAGS=${DRONE_BRANCH//\\//-}${DRONE_TAG//\\//-},${DRONE_BRANCH//\\//-}${DRONE_TAG//\\//-}-${DRONE_COMMIT_SHA:0:7},${DRONE_COMMIT_SHA}
...
ashwilliams1
@ashwilliams1

hmm, interpolation works for me. Here is my test yaml:

kind: pipeline
type: docker
name: default

steps:
- name: test
  image: alpine:3.8
  environment:
    TAG: "${DRONE_BRANCH//\\//-}${DRONE_TAG//\\//-}-${DRONE_COMMIT_SHA:0:7}"
  settings:
    tags:
      - ${DRONE_BRANCH//\\//-}${DRONE_TAG//\\//-}
      - ${DRONE_BRANCH//\\//-}${DRONE_TAG//\\//-}-${DRONE_COMMIT_SHA:0:7}
      - ${DRONE_COMMIT_SHA}
  commands:
  - echo $TAG
  - echo $PLUGIN_TAGS

and here is the output I received:

[test:1] + echo $TAG
[test:2] master-7c5ffc9
[test:3] + echo $PLUGIN_TAGS
[test:4] master,master-7c5ffc9,7c5ffc9146d6d2fdd83c0b4ef66e88e8bee756df