by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Feb 20 05:53
    @ashwilliams1 banned @matrixbot
  • Oct 18 2019 03:30
    @bradrydzewski banned @vityafx
  • May 07 2019 20:55
    @bradrydzewski banned @izznogooood
YangWenbin
@ywbjja
Cannot use docker layering in drone to save push time https://docs.docker.com/storage/storagedriver/
dineshsalunke
@dineshsalunke
Can i change the timeout value for the digital ocean runner
AmengSong
@AmengSong
giteaļ¼šERRO[0040] oauth: cannot exchange code: 9Rw6MQCLLqoLihiv6vFIp780YAnTjw0hA8ZIqkIsdCY=: unauthorized_client: client is not authorized
DEBU[0040] cannot authenticate user: unauthorized_client: client is not authorized
dineshsalunke
@dineshsalunke
image.png
I am frequently getting this
I have a gitea,, runner and drone server hosted on digital ocean droplets
AmengSong
@AmengSong
gitea cannot access drone for drone log: ERRO[0040] oauth: cannot exchange code: 9Rw6MQCLLqoLihiv6vFIp780YAnTjw0hA8ZIqkIsdCY=: unauthorized_client: client is not authorized
DEBU[0040] cannot authenticate user: unauthorized_client: client is not authorized
AmengSong
@AmengSong
I solved this problem for wrong secret configuration
vaibhav jain
@vaibhav-jain
I'm trying to run tests in parallel my instance has 16 CPUs and 64GB RAM still these tests are working fine when running serially but get stuck when I try running them parallel .
Sergey Lapin
@lapanoid
Hey everyone, does anybody have issue with exec runner speed (using it on my mac pro)? For some reason it is extremely slow npm "Building fresh packages..." takes 10 minutes. Could it be some configuration issue?
ashwilliams1
@ashwilliams1
@lapanoid I believe npm caches libraries in $HOME/.npm and the exec runner creates a temporary home for each pipeline. Since each pipeline has its own temporary home, I presume the cache would never be used. So perhaps that is why it feels slow?
ashwilliams1
@ashwilliams1
The easiest way to test this would be to override the cache path to ensure that it is global, and is not in the pipeline temporary workspace:
- name: install
  commands:
  - npm config set cache /tmp/.npm --global
  - npm install
Kirill K
@agrrh

Hey guys!

Can you please explain to me, how status-based trigger works?

Let's say, we define trigger: { status: 'failure' } for latest pipeline in our YAML.

Does Drone execute this pipeline when it was unsuccessful on previous run?
Or does it execute this pipeline if other pipelines has failed in current run?
Or ..?

2 replies
TianYi Wen
@dinfer
drone-runner-kube cannot build image using kaniko, and there is no log
Is anyone has built image using drone
consultbop
@consultbop
Hey guys, does anybody if you can ssh directly into already built droplet on DigitalOcean using drone?
Andrey Kovalev
@Russia9

Hello. I have Gitea installed on a server from Scaleway through docker-compose.

Drone CI is also installed on the same server, also via docker-compose. When I commit something to the Gitea repository, nothing happens in drone-ci. Why?

My docker-compose: https://hastebin.com/hobayojizo.http

ashwilliams1
@ashwilliams1
@Russia9 please work through our FAQ which helps diagnose and resolve all possible root causes for nothing happening https://discourse.drone.io/t/nothing-happens-when-i-push-code-no-builds-or-builds-stuck-in-pending/3424
Sergey Parfenov
@sparfenov
Hello! I have drone:0.8 been working for a long time, now i want to upgrade it to version 1. But there is a problem: after i synchronized all repos, i cannot enable any, there is a message "Please contact a repository administrator to activate this project.". I see that in the database, in table perms, there are no repo with prem_admin = 1. But drone user in bitbucket stash has admin rights for the project and for the exact repo that i am testing with. Can anyone advice me what to check?
Thomas Boerger
@tboerger
For an upgrade from 0.8 to 1.x you need to apply some manual changes.
@sparfenov have you used https://github.com/drone/drone-migrate?
Sergey Parfenov
@sparfenov
i run it isolated, new database, new containers
Thomas Boerger
@tboerger
Ah, so no upgrade, just getting it working.
Sergey Parfenov
@sparfenov
yes
does drone:1 has bitbucket version requirements? is it possible that problem is old bitbucket version? i have Atlassian Bitbucket v4.1.3
Thomas Boerger
@tboerger
I don't know details about Bitbucket, but there had been changes because Bitbucket dropped fields in current versions because of GDPR
Sergey Parfenov
@sparfenov
thank you, i found that old bitbucket api is not compatible with driver used in drone:1x. I will try to make compatible driver for old version
Dominik Schmidt
@dschmidt
Screenshot_20200518_125335.png
@bradrydzewski Hey! I was wondering if you had any special requirements for showing parameters on builds. I toyed around a bit and came up with this. I know design/UX is always highly controversial and a matter of personal taste ... and also I suck at it. Would you think this is still something from where it makes sense to carry on? Only then I would submit a PR :)
rajula801
@rajula801
Integration test cases are failing randomly in Drone build but passing in locally. may I know the where to start basic troubleshoot. We are using API calls as well.
Danilo Silva
@silvadanilo
Hi guys, I'have an issue with mounting docker.socks in a plugins/ecr step
I would like to build docker image, push to ecr, and keep them into the machine, because further steps use that images and I want to avoid to pull from ecr because I build them 1 seconds ago
so I tried this:
steps:

  - name: publish-staging-builder
    image: plugins/ecr
    volumes:
      - name: dockersock
        path: /var/run/docker.sock
    settings:
      region: eu-west-1
      tags:
        - staging-builder
      dockerfile: Dockerfile
      purge: false
      .........

volumes:
  - name: dockersock
    host:
      path: /var/run/docker.sock
Danilo Silva
@silvadanilo
I mount the /var/run/docker.sock and added the purge: false
the purge: false settings works as expected in fact there is no trace in the log of docker rmi, etc.
but the images are not keeped, and if I try docker image ls in the host the is no trace of built images
Nathan
@3to1null
Hi, I'm starting containers via docker-compose from within a docker container, using a mounted docker socket. This means that the docker containers are spawned on the host, which means that I can't 'just mount' the git cloned dir (/drone/src/). Yet, I do want this dir mounted within a docker-compose container. Is this dir also available on the host? Can I do this using volumes? I'm not sure. Any help would be appreciated.
ashwilliams1
@ashwilliams1
@3to1null if you find yourself mounting the host machine docker socket to run docker-compose, you should probably consider using exec pipelines instead of docker pipelines. See https://docs.drone.io/pipeline/exec/overview/
docker pipelines and docker-compose are both orchestration systems and share many of the same features, and therefore conflict with one-another as opposed to complement one-another. So in this situation I recommend exec pipelines instead
Nathan
@3to1null
@ashwilliams1 Thanks. I will have a look.
Nathan
@3to1null
@ashwilliams1 How does this work though, if drone itself is installed via docker-compose. Is the 'host' where docker exec runs the underlying VPS, or the drone container?
ashwilliams1
@ashwilliams1
@3to1null Drone has different types of pipelines (docker, exec, kuberntes, ssh, etc). You install a different runner for each pipeline type. The exec runner is distributed as a binary and does not run inside docker.
the exec pipeline is not related to docker exec. An exec pipeline executes your shell commands directly on the host. No docker is involved.
Baalaji
@baalajimaestro
Does drone block a build if a labelled runner doesnt exist? Or does it proceed any available runner?
The situation is, the runner might be offline many times a day, so I dont want builds redirected to another runner.
Thomas Boerger
@tboerger
Than the build will stay in pending state
gevalter
@gevalter
hey guys, do someone here knows how can i pass a file to template field in drone/slack plugin? currently using this configuration - slack output is the file path instead file content
- name: slack
  image: plugins/slack
  settings:
    webhook: https://hooks.slack.com/services/xxxxx/xxxxxx/xxxxxxx
    channel: automation
    username: drone
    template: /drone/src/slack_message.txt
  when:
    event: pull_request
    status:
    - failure
    - success
Baalaji
@baalajimaestro

A remote docker runner isnt able to connect to my drone instance.

The drone instance is behind nginx and has TLS v1.3 with HTTP/2. Hope this helps.

time="2020-05-21T04:29:15Z" level=error msg="cannot ping the remote server" error="Post https://builds.baalajimaestro.me/rpc/v2/ping: remote error: tls: protocol version not supported"

Baalaji
@baalajimaestro
If it does matter, drone is just using plain http, I used nginx for the certs.
ashwilliams1
@ashwilliams1
@baalajimaestro sounds like an nginx configuration issue or some other configuration issue.