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.
Hi all - Have just upgraded from GoCD 21.4.0 to 22.1.0, and getting the following error message in go-server.log:
Error: Unable to make field private static final long java.util.HashMap.serialVersionUID accessible: module java.base does not "opens java.util" to unnamed module
Any ideas? It's our staging environment so the config file is very small (< 1000 lines)