Where communities thrive

  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
Repo info
  • 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
Ray Burgemeestre
Turns out a completely new box I am able to connect an agent. I suppose updating the go-agent (existing) package can cause issues (I had even tried stuff like sudo apt install --reinstall -o Dpkg::Options::="--force-confask,confnew,confmiss") , and the helm provided agent deployment is also not working. at least I got something working now. If someone finds this on google perhaps they will find it useful, if you've updated. Best just purge the existing agents completely, don't try to update them, and don't try to use the agents that are prepared by helm.
Albin Joseph

I am trying to configure go cd behind nginx reverse proxy. I followed the documentation, but when I access gocd using url domain.com/go, its giving a 404 page (the browser url now is /go/pipelines) . My nginx config file is

location /go/ {
    proxy_set_header        Host            $host;
    proxy_set_header        X-Real-IP       $remote_addr;
    proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
    proxy_set_header        X-Forwarded-Proto $scheme;
    proxy_http_version      1.1;

    proxy_pass http://localhost:8153/go;

    client_max_body_size  10000m;

Is there any other changes I need to do to make this working?

3 replies
Saurabh Shrivastava

Hey everybody! I am quite new to GoCD, love it so far! I had a question about webhooks. Can somebody point me to the documentation to the feature this PR introduced gocd/gocd#8023 ?

More specifically, I am looking for the payload config_repo webhook is expecting. Basically, my code is hosted on codecommit (not on GitHub/BitBucket etc). So my plan was to intercept codecommit trigger, convert it into one of the expected payloads to trigger webhook.

I was able to get it to work mostly, but I encountered an issue. Looks like GoCD only triggers the pipeline for branch configured in Config Repo. So, I was planning to mask the branch and convert it to whichever is configured before sending the payload. If I can get what payload GoCD is expecting, maybe I could get it to refresh the material for other branches too?

Saurabh Shrivastava
I just played with notify-materials API (https://api.gocd.org/current/#notify-materials), it appears to be fitting better for my use case.

Hi everyone!
We recently deployed GoCD in our Kubernetes cluster (using gocd helm chart), one server + 3 agents
There's an issue when I try to run a test pipeline that only runs a simple command. It fails without printing any output that'd help me figure out what's happening

[go] Start to prepare test-0/1/test/1/test on revo-gocd-agent-59c54bcd68-bt5q7 [/go]
[go] Start to build test-0/1/test/1/test on revo-gocd-agent-59c54bcd68-bt5q7 [/go]
[go] Task: env     took: 0.1s
[go] Task status: failed, took: 0.1s
[go] Current job status: failed

I tried to run it in a couple of different ways, like /bin/bash -c hostname or using git|pluggable scm materials, but had no success in making in work
Can you please help me understand what I did wrong?
The pipeline is configured as below:

format_version: 10
    group: testGroup
    label_template: ${COUNT}
    lock_behavior: none
    display_order: -1
        scm: my-material
    - test:
        fetch_materials: true
        keep_artifacts: false
        clean_workspace: false
          type: success
          allow_only_on_success: false
            timeout: 0
            - exec:
                command: env
                run_if: passed

Any help would be much appreciated

Cristian Chiru
@rami-abu It seems to be because of copied encrypted values in some env vars from a previous config.xml. Settings the secrets again seems to resolve the issue. However, is it weird that no errors are generated when trying to decrypt the values, instead just the command fails.
Thank you @cristichiru
Yes, an error message would've helped a lot with the investigation


I am looking to move from h2 -> PostgreSQL database. There is very little information on PostgreSQL around licensing, costs, support. I have tried emailing thoughworks but have received no response. Can anyone help? Thanks

2 replies
Eric Low

we are seeing issues with our agents.
we are seeing this error frequently, and I'm not sure how to proceed. This host was restarted 30 minutes before:
```Error performing command: --- Command ---
git rev-parse --abbrev-ref HEAD
--- Environment ---
--- INPUT ----

--- EXIT CODE (128) ---

STDERR: fatal: Not a git repository (or any of the parent directories): .git

Is there a more detailed log I can look at to see what is going on and what I might be able to do next?
Hi, I've configured a role with view only access on a specific env. I assigned this role to a user. Problem : this user does not see any pipelines. On the "role" page, there is a message saying "None of the installed plugin supports role based authorization." I'm using password file authentication. Is there a way to use roles in combination with password files ?
Hello folks, good day. I am trying to setup gocd with elastic agents on a kubernetes cluster, the agents are not coming up

Error on the server
jvm 1 | Caused by: java.security.cert.CertificateException: Could not parse certificate: java.io.IOException: Empty input
jvm 1 | at java.base/sun.security.provider.X509Factory.engineGenerateCertificate(Unknown Source)
jvm 1 | at java.base/java.security.cert.CertificateFactory.generateCertificate(Unknown Source)
jvm 1 | at io.fabric8.kubernetes.client.internal.CertUtils.createTrustStore(CertUtils.java:101)
jvm 1 | at io.fabric8.kubernetes.client.internal.CertUtils.createTrustStore(CertUtils.java:79)
jvm 1 | at io.fabric8.kubernetes.client.internal.SSLUtils.trustManagers(SSLUtils.java:115)
jvm 1 | at io.fabric8.kubernetes.client.internal.SSLUtils.trustManagers(SSLUtils.java:94)
jvm 1 | at io.fabric8.kubernetes.client.utils.HttpClientUtils.createHttpClient(HttpClientUtils.java:82)
jvm 1 | ... 23 common frames omitted
jvm 1 | Caused by: java.io.IOException: Empty input
jvm 1 | ... 30 common frames omitted
jvm 1 | 2021-10-29 05:52:44,389 ERROR [159@MessageListener for CreateAgentListener] JMSMessageListenerAdapter:87 - Exception thrown in message handling by listener com.thoughtworks.go.server.messaging.elasticagents.CreateAgentListener@270e222e
jvm 1 | java.lang.RuntimeException: The plugin sent a response that could not be understood by Go. Plugin returned with code '500' and the following response: 'Failed to handle request cd.go.elastic-agent.create-agent'

Has anyone else faced this issue before, if yes how to solve this.
How to specify MySQL using docker-compose,Do you have a docker-compose exemple?
Hello folks, is it possible to pass a variable declared in 'Environments' as the value of variable declared in environment variables section of a job?
Julian Martinez
Hi, any chance to get the postgresql addon somewhere? I've sent an email to support with no answer. Thanks in advance.-
3 replies
Pedro Carriço
Is there a way to skip a certain revision on a git material? Similar to the [ci skip] that some other hosted solutions offer? I see some old posts on this but nothing recently
My use case is publishing an npm package from a pipeline that also pushes the bump commit
Shaheen Sayyed

Hii team,
I'm trying to setup gocd agent with ECS-EC2 aws service.
Facing issue with fetching artifacts from s3 of Access denied.
The ECS setup are working properly in 3 different region where as facing issue in mumbai region EC2.
same role is attached on EC2 servers for all regions.

S3 bucket is configured(with IAM user having full access of EC2,S3) in Mumbai region
Although the aws cli command(aws s3 ls) is giving proper output when manually executed on container on EC2 server . While getting Access denied while fetching artifact through pipeline.

Is it something wrt access of GoCD server, S3 plugin, Agent server. Can't find any link yet.
Can someone help with this.

Error --->
[cd.go.artifact.s3] Failed pull source file: com.amazonaws.services.s3.model.AmazonS3Exception: Access Denied (Service: Amazon S3; Status Code: 403; Error Code: AccessDenied;

Mārtiņš Tararujs

Hey guys,

I faced some issues while playing around with the latest GoCD server version available on GoCD download page (latest stable). I'm using it locally on my OSX and getting this error:

jvm 1    | Caused by: java.lang.RuntimeException: java.lang.RuntimeException: org.eclipse.jgit.api.errors.RefNotFoundException: Ref master cannot be resolved
jvm 1    |     at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:156)
jvm 1    |     at com.thoughtworks.go.server.initializers.ApplicationInitializer.onApplicationEvent(ApplicationInitializer.java:49)
jvm 1    |     at org.springframework.context.event.SimpleApplicationEventMulticaster.doInvokeListener(SimpleApplicationEventMulticaster.java:172)
jvm 1    |     at org.springframework.context.event.SimpleApplicationEventMulticaster.invokeListener(SimpleApplicationEventMulticaster.java:165)
jvm 1    |     at org.springframework.context.event.SimpleApplicationEventMulticaster.multicastEvent(SimpleApplicationEventMulticaster.java:139)
jvm 1    |     at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:393)
jvm 1    |     at org.springframework.context.support.AbstractApplicationContext.publishEvent(AbstractApplicationContext.java:347)
jvm 1    |     at org.springframework.context.support.AbstractApplicationContext.finishRefresh(AbstractApplicationContext.java:883)
jvm 1    |     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545)
jvm 1    |     at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
jvm 1    |     at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
jvm 1    |     at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
jvm 1    |     at org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(ContextHandler.java:1067)
jvm 1    |     at org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(ServletContextHandler.java:572)
jvm 1    |     at org.eclipse.jetty.server.handler.ContextHandler.contextInitialized(ContextHandler.java:996)
jvm 1    |     at org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:746)
jvm 1    |     at org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:379)
jvm 1    |     at org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1449)
jvm 1    |     at org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1414)
jvm 1    |     at org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:910)
jvm 1    |     at org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandler.java:288)
jvm 1    |     at org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
jvm 1    |     at org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:73)
jvm 1    |     at org.eclipse.jetty.deploy.bindings.StandardStarter.processBinding(StandardStarter.java:46)
jvm 1    |     at org.eclipse.jetty.deploy.AppLifeCycle.runBindings(AppLifeCycle.java:188)
jvm 1    |     at org.eclipse.jetty.deploy.DeploymentManager.requestAppGoal(DeploymentManager.java:517)
jvm 1    |     at org.eclipse.jetty.deploy.DeploymentManager.addApp(DeploymentManager.java:157)
jvm 1    |     at com.thoughtworks.go.server.Jetty9Server.startHandlers(Jetty9Server.java:179)
jvm 1    |     at com.thoughtworks.go.server.Jetty9Server.start(Jetty9Server.java:129)
jvm 1    |     at com.thoughtworks.go.server.GoServer.startServer(GoServer.java:62)
jvm 1    |     ... 14 more
jvm 1    | Caused by: java.lang.RuntimeException: org.eclipse.jgit.api.errors.RefNotFoundException: Ref master cannot be resolved
jvm 1    |     at com.thoughtworks.go.service.ConfigRepository.cleanAndResetToMaster(ConfigRepository.java:377)
jvm 1    |     at com.thoughtworks.go.service.ConfigRepository.initialize(ConfigRepository.java:93)
Note: I was using JRE version which came together with GoCD server package. Any ideas what could be the reason for this failure?
2 replies
Hi, I have strange issue in my GoCD. I think printscreen will say everything, but in short. For some unknown reason, the task is started mutliple time in one job always with new Elastic Agent. Yes we are using docker Swarm plugin and elastic agents. GoCD version 21.3.0. Also agents 21.3.0. Is there some setup to turn it off? Checked logs from server, nothing, just info that the task starts. Any ideas?
Rob Kearey
morning all - anybody know if gocd is vulnerable to CVE-2021-44228?
1 reply
Hi, I am interested in leveraging GoCD to build a pipeline that will involve performance testing against our system. But I don't see any much discussions about a real example or use cases. Can somebody shed some light on this? My understanding is that jobs inside a stage are executed in parallel so we might define multiple jobs to simulate multiple users hitting our endpoint. But what is the conventional way for doing so if we want to leverage code as pipeline?
1 reply
Hey, I'm running GoCD on ec2 instances, and since yesterday I'm receiving this message from OSSEC /gocd-jre/bin/java -Xint -XX:+UseSerialGC -Dlog4jFixerVerbose=false -cp /dev/shm/Log4jHotPatch.jar Log4jHotPatch 35
11 replies
Is this something related with gocd and it's a expected behaviour?
Hi all,
I'm running GoCD 21.02 and a few days ago my server crashed and now it is not working due to the following error:
INFO   | jvm 1    | 2022/01/03 09:12:48 | Caused by: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'internalAgentControllerV1' defined in URL [jar:file:/var/lib/go-server/work/jetty-0_0_0_0-8153-cruise_war-_go-any-/webapp/WEB-INF/lib/api-internal-agent-v1-21.2.0-12498.jar!/com/thoughtworks/go/apiv1/internalagent/InternalAgentControllerV1.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'sqlSessionFactoryBean' defined in file [/var/lib/go-server/work/jetty-0_0_0_0-8153-cruise_war-_go-any-/webapp/WEB-INF/classes/com/thoughtworks/go/server/database/SqlSessionFactoryBean.class]: Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'goDataSource' defined in com.thoughtworks.go.server.database.Database: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.commons.dbcp2.BasicDataSource]: Factory method 'getDataSource' threw exception; nested exception is java.sql.SQLException: Cannot create PoolableConnectionFactory (General error: "java.lang.IllegalStateException: Chunk 53572 not found [1.4.200/9]" [50000-200])
2 replies
Hi all, Can I export pipeline as code yaml defination from existing pipeline?
@coney yes, you can export an existing pipeline config as a YAML definition from the pipeline admin page.

@coney yes, you can export an existing pipeline config as a YAML definition from the pipeline admin page.

Thanks, it works

Sachin Gupta
Hi arvindsv (Aravind SV) chadlwilson (Chad Wilson) I am having issue after upgrade gocd to version 21.4. After upgrade agent not able to clone bot bucket repository, always getting “Failed to run got clone command”. I verified secrets all are same later when I reverted only agent to version 21.3 all working. So I current scenario my gocd server running on version 21.4 and agents are on version 21.3. Any suggestions?
4 replies
Paul Zietsman
@arvindsv @chadlwilson how can we donate to the project? I'd like to help fund the future development of the project?
3 replies
Do you have any logging? It’s been a while since I’ve looked at the code around cloning but I believe we log the STDOUT and STDERR of each command involved in the cloning process. You might (don’t recall) need to enable debug log levels.
Looking for tips for how to run a downstream job that has not run before for a previous build of an upstream job
The downstream job has the message "No instance of this pipeline has run for any of the direct upstream dependency revision."
Hi all - anyone using GoCD with GitHub, Jira and Confluence? Then you may like this article: https://www.linkedin.com/pulse/how-did-i-build-automated-release-notes-miroslav-sommer/
2 replies
Pedro Carriço
Hi, when using GoCD docker images (debian-10 in my case) what is the best way to set the PATH for the agent process? I've tried this https://github.com/gocd/docs.go.cd/pull/579/files but I also see that the wrapper-config file gets re-created when the agent launches (https://github.com/gocd/docker-gocd-agent-debian-10/blob/master/docker-entrypoint.sh#L132)
2 replies
Hello there, We are using gocd version - GoCD Version: 19.5.0, and we are using github plugin cd.go.authorization.github (17.5.0). However due to this we are unable to use / generate access token. After some googling i realised that this is because "Google Oauth plugin is upgraded to use authorization extension v2 however it does not have support for access token based API authentication.". I could not find a solution to this. Would anybody know if an upgrade to the github authorization upgrade fix this ? Or is there any other possible fix to this? Thanks in advance.

Hello, I am thinking about using GoCD to automate a certain process happening in my company, but I have a couple of questions before that. Is it possible to trigger a pipeline via a file uploaded to aws directory/or trough creating a wrapper midleware class that interacts with GoCD api?

Additionally, if I need to use different clusters, for example a GPU/CPU orientated machine/pod for a certain pipeline , can GoCD support the conditional execution on such terms?

5 replies
Also, is it possible to trigger pipelines trough the api, and provide a file that the pipeline could process?
Good Morning! I would like to know if GoCD has integration with bitbucket pipelines?
1 reply
Windfer Garro
Hello everyone! Does someone have a link to good documentation about how to use GOCD with monorepos?
1 reply
Varun Kaushik
Hello All, do we have a limit on the number of agents we can have for GOCD? Does the opensource version have a limit?
1 reply
berkin thomas

unable to send notification from GoCD. I am trying to configure gmail using below setup :
host : smtp.gmail.com
port : 587
Use SMTPS : unchecked

but the error message showing Must issue a STARTTLS command first

1 reply
Eric Low
We are considering paying for support. Should we go through Thoughtworks or some other recommendation is better?
1 reply
Eric Low
How do we know if we have too many pipelines? How do we check memory available, and other performance metrics for GoCD? The main GoCD app does not appear to be responding to the agents fast enough and I'm trying to debug why. What levers do we have available to us?
2 replies
Installed Go-cd in kubernets using helm, configured ssh keys as secret, Initially received permissons error for secret fixed, finally receiving below error, pls let me know if any one ran in to issue
1 reply

Cloning into 'xxx'...
Load key "/home/go/.ssh/id_ecdsa": invalid format
xxx@xxx.com@source.developers.google.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

bash-5.1$ ls -lrta .ssh/
total 20
drwxr-sr-x 1 go root 4096 Mar 5 04:36 ..
-rw-r--r-- 1 go root 183 Mar 5 04:36 id_ecdsa.pub
-rw------- 1 go root 512 Mar 5 04:36 id_ecdsa
drwx--S--- 2 go root 4096 Mar 5 04:36 .
-rw------- 1 go root 196 Mar 5 04:36 known_hosts