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
Thomas Boerger
@tboerger
The 0.8 to latest format has changed heavily, they aren't compatible
The drone cli should have a command to transform the legacy version to the current version
Ivan
@iver
Sure, but the error is the same and the version is not matter. If the error show me the line or some thing more specific description could be better.
Thomas Boerger
@tboerger
That's what the yaml library gives back. Without details I can't tell where the issue comes from. Maybe you could try the lint command from drone cli
Ivan
@iver
Thank you @tboerger ! I changed from pipelines to steps and everything was better. I think this kind of errors are so complicated to debug.
Brad Rydzewski
@bradrydzewski
@iver Drone uses the go-yaml library which means we have to work with the error messages that it returns
I agree that better error reporting would make it easier to debug, however, this requires upstream improvements to the go-yaml library.
vaibhav jain
@vaibhav-jain
Hi guys, I'm new to drone and looking for a way to set the DRONE_MEMORY_LIMIT could someone please help me out?
Brad Rydzewski
@bradrydzewski
@vaibhav-jain please provide more information about your setup. The answer to this question depends on how you installed Drone and which runners you are using
vaibhav jain
@vaibhav-jain
@bradrydzewski docker runner
Brad Rydzewski
@bradrydzewski
the memory limit is passed to the docker-runner container as an environment variable
docker run -e DRONE_MEMORY_LIMIT=500000000 [OPTION]... drone/drone-runner-docker (500mb) https://docs.drone.io/runner/docker/configuration/reference/drone-memory-limit/
vaibhav jain
@vaibhav-jain
How do I see the current limit ? is there any default value for that?
Brad Rydzewski
@bradrydzewski
if you do not set a limit, the default docker limit is used (which is unlimited)
vaibhav jain
@vaibhav-jain
ok thanks @bradrydzewski
Kirill K
@agrrh

Hey guys!

Is it possible to use multiple conversion extensions at once? E.g. I'd like to use those two extensions:

Currently both of them rely on single DRONE_YAML_ENDPOINT which I could not share between 'em.

Brad Rydzewski
@bradrydzewski
@agrrh you cannot use two configuration extensions at the same time. With that being said, you can use a configuration extension and a conversion extension.
meltwater/drone-convert-pathschanged is very similar to microadam/drone-config-changeset-conditional, but since it is a conversion plugin, it can be used alongside bitsbeats/drone-tree-config
3 replies
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.