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
lucaferrarihotmail
@lucaferrarihotmail
yes Marques.. I'm referring to the case you menationed in the first comment
I was thinking to a solution like the one you was immagining with state saved, synch of the agent something like this
2 replies
Sreemaniteja Yellapragada
@sreemaniteja:matrix.org
[m]
marques - I cannot try with IP address.It works fine in other environments which don't have proxy configured
marques-work
@marques-work

You cannot use an IP address? But the error indicates a resolution problem.

Anyhow, what do you mean by proxy? Reverse http proxy, forward proxy, or something like SOCKS proxy?

If your DNS is happening over proxy, you might check there first since you got a resolution error.

@lucaferrarihotmail sorry, I don’t know how that would work.

GoCD does not have native support for such a thing, as I imagine no other software would either. This sounds like some custom functionality specific to your application. Sorry about that, nothing we can do here to that specific solution.

Feel free to elaborate on some specifics of your problem to see if there are alternative approaches to solve your problem, other than what you hypothesized.

Sachin Gupta
@guptas:matrix.org
[m]
Hi I am trying to upgrade gocd from 20.1 to 21.2 but its not working .After version 20.4 its giving error and log showing need to migrate database. I am not sure how to do this, my gocd is running in AWS EKS. I don't fond gocd documentation for db migration useful for system running in kubernetes. Can anyone please guide.
4 replies
R.Rajalakshmi
@Rradharaji
Hi team i am looking for some help in webhook github api .. anyone knew that well please ping here
kind of urgent
marques-work
@marques-work

Hi R.Rajalakshmi it would be more helpful to pose a specific question rather than just say that you need help.

Try to be as specific as possible:

  • what are you trying to accomplish?
  • how did you try to do the above? what approaches did you try so far?
  • what actually happened that was different from your expectations?
  • were you following the docs and were their parts that were unclear or incorrect? Please link the doc you were referencing.
  • is there any useful output, error message, or log that you can post here?
Sachin Gupta: what exactly regarding the DB migration docs are lacking that make it unclear as to how to migrate your DB in your situation? How does running in k8s complicate things with regards to the instructions?
1 reply
David Zschille
@dzschille

Hello! Can a task stop the pipeline without being shown as failed? My use case is a pipeline which deploys on a special staging server whenever there are new commits in the main branch. The pipeline is placed behind our testing pipeline so that it is triggered only when all the tests where successful. This is the task that checks for the main branch:

source ./app_env_vars

if [[ "$APP_CURRENT_BRANCH" == "main" ]]; then
    echo "Yes, it's the main branch!"
    exit 0
else
    echo "That's not the main branch: $APP_CURRENT_BRANCH"
    exit 1
fi

It works but it's distracting that the pipeline is shown as failed when the latest tested commits where not in main.

asaunders-els
@asaunders-els
Hi
I would like to devise a way to generate a historical test report of common test failures from our test stage in a pipeline. This would be for trend analysis to help us spot and resolve either flakey tests or inconsistent failures which may be genuine but difficult to spot. I have not seen any features on GoCD documentation that lends itself as a solution to this - would anyone on this thread know of any possible solutions to this problem other than building a process from scratch (which may be my option otherwise!) :)
Thanks
2 replies
Sam Ag
@ProcessMaster
hi, We have been using GoCD for a long time (@Myriad Genetics/Counsyl). We are on version 20.10.0. A couple of days ago it started responding sluggishly on the UI and the pipelines are also taking a long time. We are using a 8cpu AWS instance for the server and have around 100 agents. We do not see any resource issue except that sometimes cpu is very high and the load is higher than normal but still much lower than 1/core.
8 replies
Nick Ferguson
@nickcrew:matrix.org
[m]
i am trying to do the 20.4 -> 20.5 database migration from h2 to postgres and it is throwing exceptions, a lot of invalid format, and later UI warnings that it can't insert because of constraint violations. the modifications table is not getting copied completely during the migration is what i am guessing the cause is.
Fabricio Correa Duarte
@fabriciocduarte
I haven't seen a release in the past few months, last being 21.2 back in March. Has the release cadance changed?
mdkadar
@mdkadar
Looks like agent is stuck in cancelling a job, the job was cancelled
what should i do to cancel the building process of an agent?
marques-work
@marques-work
If the agent is stuck waiting on a child process to exit, you can hop onto the host running that agent and manually kill the stuck child process(es). That ought to free up the agent
@mdkadar ☝🏼
@fabriciocduarte the cadence isn’t monthly anymore — GoCD releases are cut as-needed (security fixes, new features, etc).
marques-work
@marques-work
That sounds sensible - ultimately it’s just about following the same conceptual steps, which I think you’ve done:
  1. Bring DB up to date with 20.4.0 & back up DB
  2. Run migrator tool on the H2 file to generate a new H2 file in the new format
  3. Replace H2 DB (cruise.h2.db) with the newly generated one in the prior step (cruise.mv.db — note the name change)
  4. Upgrade to newer GoCD (anything after 20.5.0) and verify everything works
minstamaria
@minstamaria
We're trying to upgrade GoCD Agent from 19.5 to 20.1 (or any higher version) on ARM64 (a HIL rig running Ubuntu18) and during installation it complains about not being able to find wrapper binaries for arm64. Are they not bundled any more?
Adding them manually makes us run into another issue: Cannot resolve JAVA version.
Our regular Ubuntu agents that are not arm64 have been upgraded successfully without issues.
Any ideas?
2 replies
Mukesh9092
@Mukesh9092
Hello All, I am new to gocd and trying to CD fo kubernetes deployment. I have followed the gocd official doc but I am not able to achieve the goal. Can someone help me to create the pipeline for Kubernetes deployment.
Christian Dahlhausen
@cdahlhausen
Hi all, Looking for the gocd-postgresql plugin to move from H2 to Psql
ryan-omni3
@ryan-omni3
@cdahlhausen There is no plugin. Here's the guide: https://docs.gocd.org/current/installation/configuring_database/postgres.html I dropped in a postgresql JDBC driver, but I think that was unnecessary.
ryan-omni3
@ryan-omni3
Have been using JSON for defining jobs, but started to use YAML so that I can converge towards a monorepo. My YAML job seems stuck "Waiting for an agent" Removing and re-adding an agent seems to get it going once, then it is stuck for the next build.
Cojok
@cojok

Hi there ... I wanna give gocd a try, but currently I can't manage to get version 21.2.0 docker to see the agent. I am using this 2 docker images: gocd/gocd-server:v21.2.0 and gocd/gocd-agent-debian-10:v21.2.0 on my local environment. I have started the agent docker image like this:

docker run -itd --name gocd-agent -e CI=true -e GO_SERVER_URL=https://$(docker inspect --format='{{(index (index .NetworkSettings.IPAddress))}}' gocd-server):8153/go gocd/gocd-agent-debian-10:v21.2.0

but unfortunately I can't see the agent in the agent view in the gocd ui. Is there a special way to run the agent docker image in order to see it in the gocd ui?

Carlos
@c-carrasco

Hi all,
I'm trying to setup an auto registration remote agent on aws but I'm stuck due to the following error:

My current configuration:

  • [go-server] /etc/gocruise-config.xml:
    <?xml version="1.0" encoding="utf-8"?>
    <cruise xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="cruise-config.xsd" schemaVersion="139">
    <server agentAutoRegisterKey="195ea125-5d3a-4d33-8cc7-5c0e482cc0e7" webhookSecret="..." serverId="..." tokenGenerationKey="...">
      <security>
  • [go-agent] /var/lib/go-agent/config/autoregister.properties
    agent.auto.register.key=195ea125-5d3a-4d33-8cc7-5c0e482cc0e7
    agent.auto.register.hostname=agent-01
    agent.auto.register.elasticAgent.agentId=7f5e55d20407
    agent.auto.register.elasticAgent.pluginId=com.example.aws

With these settings I'm getting the following error:

  • go-server (/var/log/go-server/go-server.log):

    2021-07-21 06:44:21,034 ERROR [qtp993070390-40] AgentRegistrationController:242 - Rejecting request for registration. Error: HttpCode=[422] Message=[Elastic agent registration requires an auto-register agent key to be setup on the server. The agentAutoRegisterKey: [195ea125-5d3a-4d33-8cc7-5c0e482cc0e7] is either not provided or expired. Agent-id: [7f5e55d20407], Plugin-id: [com.example.aws]] UUID=[bbbfd276-ce32-430f-81f5-69dbc3cea571] Hostname=[4255f57b7ca5]ElasticAgentID=[7f5e55d20407] PluginID=[com.example.aws]
  • go-agent (/var/log/go-agent/go-agent.log):

    2021-07-21 06:44:16,390 ERROR [scheduler-2] RemotingClient:166 - Server responded to action `ping` with: status[403 Forbidden], body[]
    2021-07-21 06:44:16,393 ERROR [scheduler-2] AgentHTTPClientController:114 - Error occurred when agent tried to ping server: 
    java.lang.RuntimeException: 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/21.2.0/installation/configure-reverse-proxy.html#agents-and-reverse-proxies for details.
          at com.thoughtworks.go.agent.RemotingClient.post(RemotingClient.java:118)
          at com.thoughtworks.go.agent.RemotingClient.ping(RemotingClient.java:74)
          at com.thoughtworks.go.agent.AgentHTTPClientController.ping(AgentHTTPClientController.java:109)
          ...
          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/21.2.0/installation/configure-reverse-proxy.html#agents-and-reverse-proxies for details.
          at com.thoughtworks.go.agent.RemotingClient.validateResponse(RemotingClient.java:141)
          at com.thoughtworks.go.agent.RemotingClient.post(RemotingClient.java:114)
          ... 14 common frames omitted
    2021-07-21 06:44:21,043 ERROR [scheduler-1] SslInfrastructureService:173 - Error occurred during agent registration process: Elastic agent registration requires an auto-register agent key to be setup on the server. The agentAutoRegisterKey: [195ea125-5d3a-4d33-8cc7-5c0e482cc0e7] is either not provided or expired. Agent-id: [7f5e55d20407], Plugin-id: [com.example.aws]

Could anyone help me with this issue?

Thanks!

sampath kumar
@codyowl

Hi all,

We've been working on setting up multiple agents for pipeline.For allocating jobs to agents as far as the documentation we've gone through.we needt to manually assign the resource to the agents.Is there any way to random assign agents to jobs without doing manually.

1 reply
samrose
@samrose
Is there a way to have some form of file per github project that will give gocd instruction on how to run? Would that be https://docs.gocd.org/current/advanced_usage/pipelines_as_code.html and does it work per repo?
skeleten
@skeleten
Heya, I'm having trouble getting the dind image to run, would this be the right place to ask? In particular it seems the container claims that docker is not running (Can't connect to /var/run/docker.sock). It is running as privileged, but from podman.
Sushma10037017
@Sushma10037017
Hi, Does purgeartifact setting also cleans up cache? we are seeing the high cache usage around 25Gb (unable to find anything on /godata/artifacts/cache/artifacts/pipelines). We are on version v20.2.0 with 1.5k pipelines(with 35Gb memory 8 core cpu). Thanks!
8 replies
Sushma10037017
@Sushma10037017
Screenshot 2021-08-03 at 4.17.24 PM.png
nico🇨🇭
@nico:ungleich.ch
[m]

Good day! I might have posted this before, but I did not see an answer: I am trying to run gocd in an IPv6 only kubernetes cluster. However the gocd never starts, but errors out with:

  Warning  FailedPostStartHook  4m22s  kubelet            Exec lifecycle hook ([/bin/bash /preconfigure_server.sh]) for Container "gocd-server" in Pod "gocd-server-5b8fb6b58f-54qc8_default(799b2a6e-aa1c-4292-b091-4b500a0ab857)" failed - error: command '/bin/bash /preconfigure_server.sh' exited with 137:   % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to localhost port 8153: Connection refused
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to localhost port 8153: Connection refused
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to localhost port 8153: Connection refused
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
curl: (7) Failed to connect to localhost port 8153: Connection refused
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

(lots of repetitions)

Does anyone know what is going on or whether it's somewhat possible to get gocd running in k8s/ipv6?
skele10
@skele10:matrix.org
[m]
Heya! I'm trying to get the current version of go-server running on nixos, with the possible goal of contriubting changes back to the nixos packages. While updating the package for the go-agent was relatively straightforward, the go-server gives me a big long and scary exception that I do not know what to make of. Here is a log of it: https://gist.github.com/skeleten/8cbe11f1a620af4e702abebd62b63c95 I'd really appreciate any points as to whats going wrong here :)
3 replies
skele10
@skele10:matrix.org
[m]
Mhm, that would be a problem, considering that the whole reason to update the package was that it was no longer compatible with the shipped jdk version. Thinking of it, the earlier versions gave a much more clear error message about what was going wrong, weird to see that being no longer the case. Thanks for your hint, i'll try to modify the package to use an earlier version (lts maybe) of java, i'll ask again if the problem persist ^-^
skele10
@skele10:matrix.org
[m]
Hm, actually this goes against the documentation that says it just needs a version > 13 =/
TJ Broadus
@teejstroyer:matrix.org
[m]
Hello, does anyone have experience with the gocd api. I'm attempting to make a curl request to update EnvironmentVariables for a single pipeline, but the request isnt working.
ConFliX
@ConFliX
Hi, does anyone know what I would need to do to get GoCD to access github using personal access tokens?
For Materials
skele10
@skele10:matrix.org
[m]
Usually you login with those via https, just use the https url and your username, set the access code as password
ConFliX
@ConFliX

@skele10 Correct, however on August 13th GitHub changed what is allowed for logging in and I receive this message now for Materials:

STDERR: remote: Support for password authentication was removed on August 13, 2021. Please use a personal access token instead.
STDERR: remote: Please see https://github.blog/2020-12-15-token-authentication-requirements-for-git-operations/ for more information.
STDERR: fatal: unable to access 'https://github.com/my-repo': The requested URL returned error: 403

yshdev
@yshdev
Hello, I try to build test and pack and angular application in 3 separate stages, but it seems that the between each stage the 'node-modules' folder that contains dependent packages is deleted by 'git clean' and I need to add a task to build again on the next stages. Is it possible to keep working directory uncleaned between stages?
skele10
@skele10:matrix.org
[m]
@ConFliX: Weird, it seems to work on my instance. Are you positive you've set an personal access token as password? (created on https://github.com/settings/tokens)? Username should be your github username. You also need to set the repo permissions on the token, so it can be used to read the repository
ConFliX
@ConFliX
@skele10:matrix.org It actually does work on mine! We found that suggestion this morning! Sorry about that!
skele10
@skele10:matrix.org
[m]
No worries Im glad if I was able to help :)
devops-hacks
@devops-hacks
Hey Folks, is there a way to install multiple agents on windows? I tried silent setup but the installer detects existing agent and exists...
devops-hacks
@devops-hacks

Hey Folks, is there a way to install multiple agents on windows? I tried silent setup but the installer detects existing agent and exists...

Install using Generic zip is the answer :) : https://docs.gocd.org/current/installation/install/agent/zip.html