Sorry if this is not the channel.
I’ve tested public cloud drone with my github account and all ok, but I need install on my on premise swarm cluster with gitea.
All seems ok, and drone is able to sync my gitea repos. But when created .drone.yml in one of them , nothing happens.
After adding my .drone.yml
- name: en
- echo hello
- echo world
- name: es
- echo hola
- echo mundo
- echo holaaaaaaaaaaaaaaaaaaaa
- name: fr
- echo bonjour
- echo monde
nothing happened, and I can not see it in the activity feed after commit.
Any error message in the drone server log
this is my drone stack setup
- node.labels.role.git == true
- node.labels.role.git == true
# GITEA params
Nothing relevant seem to be in the log file. How can I debug the problem?
This file has been truncated.
"msg": "main: internal scheduler enabled",
have you taken a look at this thread? If yes, which specific issues mentioned in this thread have you already ruled out?
@bradrydzewski, I’ve reviewed the thread , and I’ve recreated the environment . After that , The first I’ve seen is I don’t have any webhook on the main admin control panel
But I’ve seen per repo webhook
Drone is able to sync and configure gitea webhook, but any “/hook” request has been received.
Gitea log is not showing any error, I should config more verbose logging on my gitea instance, anyway I’ve seen these extrange log
"msg": "manager: request queue item",
"msg": "manager: context canceled",
What exactly means " request queue item and context canceled" ?
I will send gitea logs in a few minutes…
I’ve found that gitea didn’t request drone because of the self signed certificate
This was the gitea log output
2019/11/02 11:12:51 ...s/graceful/server.go:87:NewServer() [I] Starting new server: tcp:0.0.0.0:3000 on PID: 18
2019/11/02 11:13:38 ...s/webhook/deliver.go:179:DeliverHooks() [E] deliver: Post https://drone.myserver.io/hook?secret=5Bq2GZ8BWY9yHiG3KPpFud5Gqu56tj8m: x509: certificate is valid for 2a22c8a50bcf6fe0a18245ddbd8979b3.1c13c9704e69fcdb724d9de94cf8e6ae.traefik.default, not drone.myserver.io
After reconfigured the Gitea server with the SKIP_TLS_VERIFY = false in the webhook section , the build has been finally triggered
But in the clone step again the certificate it’s giving me a headache!
latest: Pulling from drone/git
Status: Downloaded newer image for drone/git:latest
Initialized empty Git repository in /drone/src/.git/
+ git fetch origin +refs/heads/master:
fatal: unable to access 'https://git.myserver.io/gitadmin_created_public_org/repo2.git/': SSL certificate problem: unable to get local issuer certificate
In my local lab can not install valid certificates for the sites, so I need skip all SSL related verify in git / http protocols
How can do that in drone?
You can configure the git client to skip SSL verification with an environment variable:
The easiest way to pass this variable to your pipeline steps, including the clone step, is to configure this variables as a global environment variable:
I’ve had been testing by adding GIT_SSL_NO_VERIFY first in the drone-server but didn’t work.
Adding to the runner everything is ok. OK
Thank you very much!!
I’ve had been testing by adding GIT_SSL_NO_VERIFY first in the drone-server but didn’t work. Adding to the runner everything is ok. OK
yes, the setting for global environment variables is a runner setting, as opposed to a server setting.