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.
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?
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?
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
pipelines:
test-0:
group: testGroup
label_template: ${COUNT}
lock_behavior: none
display_order: -1
materials:
my-material:
scm: my-material
stages:
- test:
fetch_materials: true
keep_artifacts: false
clean_workspace: false
approval:
type: success
allow_only_on_success: false
jobs:
test:
timeout: 0
tasks:
- exec:
command: env
run_if: passed
Any help would be much appreciated
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.
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) ---
--- STANDARD OUT ---
--- STANDARD ERR ---
STDERR: fatal: Not a git repository (or any of the parent directories): .git
```
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;
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)
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])
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?
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
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.