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 2020 05:53
    @ashwilliams1 banned @matrixbot
  • Oct 18 2019 03:30
    @bradrydzewski banned @vityafx
  • May 07 2019 20:55
    @bradrydzewski banned @izznogooood
Brad Rydzewski
@bradrydzewski

We're sorry but Drone does not work properly without JavaScript enabled. Please enable it to continue.

@hezibank this means Drone is returning the web page from /hook. This usually happens when your load balancer is automatically redirecting requests from http to https

this usually happens when you configure DRONE_SERVER_PROTO=http, when in fact, it should be https
hezibank
@hezibank
@bradrydzewski Thanks for the response. I'm getting the same response even when i curl locally, so the LB is not involved. Should i run PROTO=HTTPS regardless? (Also the AWS LB is an http LB without redirecting, but i will try that approach also). Thanks again.
Brad Rydzewski
@bradrydzewski
/hook expects to receive a POST request
the only reason Drone will return its html webpage from /hook is when it receives a non-post, such as a GET
if Drone had correctly received POST /hook you would see it in your logs
Amit Baranes
@AmitBaranes
Hey, i would like to get the name of the github user who approved a pull request, is there any native way to achieve that?
AronNaylor
@AronNaylor
Hello, could someone please explain how to use the Cron Trigger functionality, please? https://docs.drone.io/api/cron/cron_trigger/ - do I use the CLI or a pipeline step?
1 reply
hezibank
@hezibank
@bradrydzewski I am not able to see the POST to /hook in the server logs, however I'm still not getting any data on my repo in the Drone UI
Brad Rydzewski
@bradrydzewski
if you do not see POST /hook that means webhooks are not reaching Drone
if they are not reaching Drone, it means there is an upstream networking issue
brandoncollins7
@brandoncollins7
Hello, I was wondering if there is a way to set the cpu resource limits per build?
on kubernetes
brandoncollins7
@brandoncollins7
No, I mean like setting the resource limits of the containers running the build. For instance how you can set max cpu of a pod to 200m
on kubernetes, not docker
brandoncollins7
@brandoncollins7
I believe I have it working with a namespace LimitRage, if that's the correct way? I guess this means it would apply to the runner and drone instance as well though
test-account52345
@test-account52345

I have another issue of builds stuck in pending state. Same builds worked perfectly fine yesterday.
autoscaler logs say

{ "msg":"check capacity","pending-builds":2, ... "server-count":1, ... }

However, I see in DigitalOcean there are no agents.
Any way to debug this?

test-account52345
@test-account52345
had to delete database.sqlite & restart to get it t work...
Danish J.
@djaffer
Is there a support team or just one person trying to answer all of us? It must be hard for him to do it all. Kudos to Brad!
Jimmy
@jiaming0708

I am running drone and gitea on docker on windows, gitea and server can run as well, but runner has some trouble, got an error, how can I fix it?

msg="cannot ping the docker daemon" error="Cannot connect to the Docker daemon at unix:///var/run/docker.sock. Is the docker daemon running?"

WSL 2 is enable on docker desktop

Environment:

  • window 10
  • docker desktop version 3.2.2
  • drone/drone:1
  • drone/drone-runner-docker:1
  • gitea:1.13.3
zshaik
@zillani
Hi,
i'm trying to run drone on port 6443,
where can I update this on drone helm chart?
zshaik
@zillani
my configuration is integrated to bitbucket, currently the login redirect is not happening to 6443, its still taking to 443
I have configured DRONE_SERVER_PORT: NjQ0Mw== under secrets which is 6443.
Brad Rydzewski
@bradrydzewski
DRONE_SERVER_PORT should never be changed. It is the port that drone binds to inside the container. Changing this value will not do what you expect.
zshaik
@zillani
hey @bradrydzewski thanks for the reply!
ah, thats the container port! got it. how do I configure bitbucket for proper redirect?
example my domain foo.drone.com:6643/login after bibucket authentication should redirect to foo.drone.com:6443 instead redirects to foo.drone.com
Brad Rydzewski
@bradrydzewski
@zillani when you configure DRONE_SERVER_HOST, it should include the port
for example, DRONE_SERVER_HOST=foo.drone.com:6643
Danish J.
@djaffer
@bradrydzewski is there anyway that drone can trigger on pr request creation before actually merging?
Brad Rydzewski
@bradrydzewski
drone automatically triggers pipelines for pull request create events
zshaik
@zillani
thank you very much @bradrydzewski it works now :)
Danish J.
@djaffer
It is not doing it in my case can you please tell what you find incorrect. It is only doing when it is merged. Is this not enabled by default.
@bradrydzewski
kind: pipeline
name: production deployment
steps:
  - name: setup/install
    image: node:14.16.0
    commands:
      - yarn install --silent
  - name: build
    image: node:14.16.0
    commands:
      - cd app
      - rm -rf build
      - yarn run build
      - ls build
trigger:
  branch:
    - master
Alex Fomin
@alex-fomin
Hi, is it possible to use CCMenu for drone with Bitbucket authorization?
Unknown Fllooo
@fllooo:matrix.org
[m]
Hey
smokieg
@smokieg
is it possible to run shell scripts via commands in a step (docker pipeline)? everything i've tried fails with no error
1 reply
Timo Rantalaiho
@timorantalaiho
Hello! We have an involved build that has greatly benefited from being converted from yaml to jsonnet.
However our .drone.jsonnet has grown rather large and complex too :)
So I started splitting it to several files, testing happily the results with drone jsonnet --stream locally
and then pushed to our self-hosted Drone server, just to find out it didn't find my imports at all :)
Is there any hope in getting the imports work in Drone? So far I have only found this one third party plugin that seems rather old and not maintained https://discourse.drone.io/t/can-you-import-your-own-jsonnet-libraries/7741
2 replies
dhoffmann
@dhoffmann:matrix.org
[m]
Hello - I have an urgent licensing issue - is there someone I can get into contact with directly?
1 reply
dhoffmann
@dhoffmann:matrix.org
[m]
We were able to get our issue resolved with support. Thanks!
Halfwalker
@Halfwalker
I have gitea and drone running in docker containers on a test box. Just rebooted box, it pulled latest docker images, and logging into drone now gives
Post "http://test2.local:3000/login/oauth/access_token": dial tcp: lookup test2.local on 8.8.8.8:53: no such host
Any ideas ? Why is it querying 8.8.8.8 ? My /etc/resolv.conf has nameserver 127.0.0.53 (It's Ubuntu 18.04 with systemd-resolve)
techknowlogick
@tklk_:matrix.org
[m]
docker injects custom dns config into containers, you'll need to configure your docker daemon to change that, however 127.0.0.53 would'nt work inside docker containers since localhost means something else.
Halfwalker
@Halfwalker
OK, I take it all back. Just restarted the drone container, and now it's OK
Halfwalker
@Halfwalker
To complete this - the gitea container has its /etc/resolv.conf pointing to 8.8.8.8, not the actual DNS server handed out by dhcp. Not sure why, but a restart of the containers had them get the proper nameserver line, and it all worked again.
romcheck
@romcheck
hey guys, anyone tried tmate feature?
I get this:
/bin/sh: /usr/drone/bin/tmate: not found
Elvis Oric
@elvisoric
Hello,
How key/value parameters can be read when build is promoted?