Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 31 2019 21:37
    ibnc synchronize #5756
  • Jan 31 2019 20:02
    ibnc synchronize #5756
  • Jan 31 2019 19:07
    arvindsv commented #3304
  • Jan 31 2019 19:06
    arvindsv commented #3304
  • Jan 31 2019 18:59
    varshavaradarajan synchronize #5791
  • Jan 31 2019 18:24
    ibnc synchronize #5756
  • Jan 31 2019 18:11
    mushycode commented #3304
  • Jan 31 2019 17:29
    GaneshSPatil opened #5797
  • Jan 31 2019 15:22
    arvindsv unpinned #5776
  • Jan 31 2019 15:07
    arvindsv commented #3304
  • Jan 31 2019 15:07
    arvindsv commented #3304
  • Jan 31 2019 14:59
    arvindsv commented #5796
  • Jan 31 2019 14:09
    akshaydewan commented #5796
  • Jan 31 2019 13:21
    maheshp commented #5796
  • Jan 31 2019 12:42
    ketan commented #5795
  • Jan 31 2019 12:39
    ketan commented #5795
  • Jan 31 2019 12:38
    JorritSalverda commented #5795
  • Jan 31 2019 12:35
    JorritSalverda commented #5795
  • Jan 31 2019 12:35
    JorritSalverda closed #5795
  • Jan 31 2019 12:00
    mushycode commented #3304
marques-work
@marques-work
It looks like Gitea comes close, but not enough to GitHub
Yeah - the auth isn’t correct
For GitHub it wants an hmac calculated against the payload and webhook secret to be on the X-Hub-Signature header
marques-work
@marques-work
For gitlab it wants the webhook secret at x-gitlab-token
So gitea isn’t sending either of those headers

Otherwise it mimics the GitHub payload body well enough (we only check for the ref and repository chunks), as well as x-GitHub-event.

But the auth is wrong.

I’m looking at this example in the Gitea docs as a basis for my claim: https://docs.gitea.io/en-us/webhooks/
marques-work
@marques-work
Doesn’t look like there’s an obvious workaround unless you know how to configure gitea to send the hmac as x-hub-signature
@AntoineProvot ☝🏼
AntoineProvot
@AntoineProvot
Thank you very much for the confirmation @marques-work ! Have a good day!
marques-work
@marques-work
You as well
suzhang85
@suzhang85
Hi , I 'm new to gocd. go-agent and go-server is running in different PC. but the go-agent can't connect to go server with below exception:
2021-01-13 08:58:59,218 ERROR [scheduler-1] AgentHTTPClientController:105 - Error occurred when agent tried to ping server:
org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://10.22.1.41:8153/go/remoting/remoteBuildRepository]; nested exception is org.apache.http.client.ClientProtocolException: The server returned status code 403. Possible reasons include:
- This agent has been deleted from the configuration
- This agent is pending approval
- There is possibly a reverse proxy (or load balancer) that has been misconfigured. See https://docs.gocd.org/20.10.0/installation/configure-reverse-proxy.html#agents-and-reverse-proxies for details.
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:226)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:153)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy11.ping(Unknown Source)
at com.thoughtworks.go.agent.AgentHTTPClientController.ping(AgentHTTPClientController.java:100)
at jdk.internal.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.http.client.ClientProtocolException: The server returned status code 403. Possible reasons include:
- This agent has been deleted from the configuration
- This agent is pending approval
- There is possibly a reverse proxy (or load balancer) that has been misconfigured. See https://docs.gocd.org/20.10.0/installation/configure-reverse-proxy.html#agents-and-reverse-proxies for details.
at com.thoughtworks.go.agent.GoHttpClientHttpInvokerRequestExecutor.validateResponse(GoHttpClientHttpInvokerRequestExecutor.java:100)
at com.thoughtworks.go.agent.GoHttpClientHttpInvokerRequestExecutor.doExecuteRequest(GoHttpClientHttpInvokerRequestExecutor.java:66)
at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:137)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:202)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:184)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:150)
... 15 common frames omitted
could any one help me?
the agent is not shown in the list on server.
Cristiano Fontes
@cfontes
Hello everybody
We are facing a pretty nasty prod issue with our GoCD server
please take a look if you can, I have no idea what to do anymore.
I am afraid to restart the server and make it unusable, right now at least the old pipelines still work
Ashley Stovall
@plainsane
Probably a long shot but it seems as if the filesystem that holds the cruise config is in readonly mode or the filesystem perma on that file do not allow write by tue go server
Chris
@eXpire163
Hi, we are running gocd on aws-eks and use the yaml plugin to write our pipelines. Works find but when it comes to building docker images, it's kind of a pain. I already build something that templates a kaniko job template and runs it. But it just doesn't feel right and is ultra slow compared to a local build. Does anyone have a nice way to build images in combination with the yaml plugin and a private container registry?
Sriram Narayanan
@sriramnrn
I haven't use kaniko yet. From the documentation, I see a note on the caching of layers in a remote registry, and that a cache-miss can lead to a rebuild. Have you reviewed the kaniko logs to determine the cause of the slowness?
To me, the building of images has been orthogonal to the yaml plugin. Could you clarify how one relates to the other in your use case?
Chris
@eXpire163
Hi @sriramnrn, if have already removed all connections to the remote registry to ensure that network is not the bottleneck. The reason i mentioned the yaml plugin, is that i'm looking for a new approach that just plays nicely with it. The task-plugins i have seen so far don't mention a way to set them up via yaml pipeline or don't support full parameter options. To clarify, i'm not trying to troubleshoot the speed of kaniko here, it's more looking for an better way of integrating image build in gocd.
Sriram Narayanan
@sriramnrn
Sriram Narayanan
@sriramnrn
@suzhang85 Did you manage to resolve the issue?
abhilashkom
@abhilashkom
Hi, I am trying to run builds in elastic agent, for testing purpose I created sample job to print hello world, it is using elastic agent profile. Job does not complete it goes to infinite loop, does not print hello world. pls let me know if any one facing similar issue.
abhilashkom
@abhilashkom
gocd agent startup is failing due to error, pls let me know if any one run in to similar issues
2021-01-29 12:20:51,959 ERROR [scheduler-1] AgentHTTPClientController:105 - Error occurred when agent tried to ping server:
org.springframework.remoting.RemoteAccessException: Could not access HTTP invoker remote service at [http://xxxx.xx-xx.xx:8153/go/remoting/remoteBuildRepository]; nested exception is org.apache.http.client.ClientProtocolException: The server returned status code 500. Possible reasons include:
- This agent has been deleted from the configuration
- This agent is pending approval
- There is possibly a reverse proxy (or load balancer) that has been misconfigured. See https://docs.gocd.org/20.5.0/installation/configure-reverse-proxy.html#agents-and-reverse-proxies for details.
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.convertHttpInvokerAccessException(HttpInvokerClientInterceptor.java:226)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:153)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213)
at com.sun.proxy.$Proxy10.ping(Unknown Source)
at com.thoughtworks.go.agent.AgentHTTPClientController.ping(AgentHTTPClientController.java:100)
at jdk.internal.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at org.springframework.scheduling.support.ScheduledMethodRunnable.run(ScheduledMethodRunnable.java:65)
at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run(DelegatingErrorHandlingRunnable.java:54)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.base/java.lang.Thread.run(Unknown Source)
Caused by: org.apache.http.client.ClientProtocolException: The server returned status code 500. Possible reasons include:
- This agent has been deleted from the configuration
- This agent is pending approval
- There is possibly a reverse proxy (or load balancer) that has been misconfigured. See https://docs.gocd.org/20.5.0/installation/configure-reverse-proxy.html#agents-and-reverse-proxies for details.
at com.thoughtworks.go.agent.GoHttpClientHttpInvokerRequestExecutor.validateResponse(GoHttpClientHttpInvokerRequestExecutor.java:100)
at com.thoughtworks.go.agent.GoHttpClientHttpInvokerRequestExecutor.doExecuteRequest(GoHttpClientHttpInvokerRequestExecutor.java:66)
at org.springframework.remoting.httpinvoker.AbstractHttpInvokerRequestExecutor.executeRequest(AbstractHttpInvokerRequestExecutor.java:137)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:202)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.executeRequest(HttpInvokerClientInterceptor.java:184)
at org.springframework.remoting.httpinvoker.HttpInvokerClientInterceptor.invoke(HttpInvokerClientInterceptor.java:150)
... 15 common frames omitted
anoop-l
@anoop-l
Hi How can I customize cruise-control.xml on Kubernetes, when I mount as config map its complaining other files missing, so I mounted config directory still container is not starting up as docker-enrtry-point.sh trying to copy some files, how can avoid this copying files on startup
I am using 18.10.10 docker image
*18.10.0
anoop-l
@anoop-l
I wanted to customize the cruise-control.xml include, agent auto register key, backup and password file. I tried committing changes to docker image, but on kubernetes it's creating a new cruise-control.xml
gunnarx
@gunnarx
Hi, I'm having issues with a fresh install of gocd server 21.1.0. I'm getting errors whenever I try to change the config. For example, editing config XML yields: "The change you wanted was rejected." (it's not a syntax error - I get it if I just Edit+Save directly with no change)
I have a very basic brand new setup with a password file. My user is logged in, and is administrator. Logs seem to say it's an authentication error "InvalidAuthenticityToken". gems/jruby/2.5.0/gems/actionpack-5.2.4.4/lib/action_controller/metal/request_forgery_protection.rb:211:in `handle_unverified_request'
gunnarx
@gunnarx
To clarify, editing the very first pipeline in the system (which was added through the wizard that appears on Dashboard when it is empty) also does not work. So it's not really about manually hacking the XML incorrectly. When using the Add Task to the pipeline job I instead get message "precondition failed". All of this is about a completely fresh and basically empty install (docker gocd/server, nginx reverse-proxy in front of it), so not some strange config... I've tried to make sure hostname/servername matches everywhere. Might still be a problem, but do you think that is where to look, or something else? Would appreciate any hint from devs that know this stuff.
Aravind SV
@arvindsv

Some reasons I've seen this happen:

  1. If there is a significant time difference between the client (browser) and the server. I've seen this happen within a Docker server sometimes, where the time on the server is very wrong.

  2. Browser extensions such as adblockers causing issues by changing referrers or other headers, blocking things, etc.

Those forms usually send some content related to CSRF protection, within a hidden field in the form. That needs to be sent back and will be verified. Something seems to be going wrong there.

Also, maybe looking at older issues might give you a hint: https://github.com/gocd/gocd/issues?q=is%3Aissue+request_forgery_protection.rb
gunnarx
@gunnarx
  1. date command gives the same time, (but presented as different time zones). Not sure if both client and server are set to UTC internally but I'd guess so?
Ah, browser extensions... yes let me look into that and come back. Thanks for now @arvindsv
Eric Low
@ericlow

Hi, I am getting an intermittent:

Could not access HTTP invoker remote service at [https://labs-gocd-server-lv-101.labs.my-company.net:8154/go/remoting/remoteBuildRepository]; 
nested exception is org.apache.http.NoHttpResponseException: labs-gocd-server-lv-101.labs.my-company.net:8154 failed to respond

any thoughts on what to investigate here?
can someone possibly explain the process that is going on? It seems to occur at the same place: after this task is completed, and it's about to start the real work:

[go] Start to prepare mscm_Searchfunc10/38/Build/1/Build_Job on labs-gocd-agent-lv-115.labs.my-company.net [/var/lib/go-agent8]
Aravind SV
@arvindsv

It's hard to say, but it looks like either due to CPU or network saturation, the GoCD server did not respond in time, to the agent. Some instances I've seen this happen:

  1. Uploading a huge artifact saturates the network (on the GoCD server side) and it can't service any agents.

  2. Usually "Start to prepare" means it is about to check out materials. If your SCM repository is also on the GoCD server (and maybe lots of agents are using that repo), the git checkouts could be causing a CPU or n/w spike, meaning the GoCD server is unable to respond.

Eric Low
@ericlow
thanks for the guidance
anoop-l
@anoop-l
How can we customize cruis-config.xml on GOCD Server running on Kubernetes, could someone please help me on this?
@anoop-l This also provides the various directories that are used: https://github.com/gocd/docker-gocd-server#under-the-hood
anoop-l
@anoop-l
Thanks @sriramnrn
Sergio Bruni
@sergebruni
hello! im having a issue trying to start for the first time go-server
Unable to create database upgrade script for database. The problem was: Could not acquire change log lock