Unable to checkout git repository from bamboo
Asked by Van Nguyen:

1. I set up a git repository named "Git Common Trunk" in "Linked repositories" and uploaded "SSH private key". "Test connection" and got a "Connection successful" message.

2. Next, I setup a plan to checkout "Git Common Trunk"

Problem: Nothing happened and error message in logs

2019-10-09 10:42:52,806 INFO \[http-nio-8085-exec-23\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/rest/api/latest/plan/favicon/HT-GITTEST123?_=1570640303060> 701997kb  
2019-10-09 10:42:54,797 INFO \[http-nio-8085-exec-5\] \[AccessLogFilter\] vnguyen GET [http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123\&_=1570640303061](http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123&_=1570640303061) 701577kb  
2019-10-09 10:43:00,859 INFO \[http-nio-8085-exec-25\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/rest/api/latest/repository/126582797/scan/status?_=1570642857302> 701444kb  
2019-10-09 10:43:10,804 INFO \[http-nio-8085-exec-23\] \[AccessLogFilter\] vnguyen GET [http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123\&_=1570640303063](http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123&_=1570640303063) 701232kb  
2019-10-09 10:43:13,802 INFO \[http-nio-8085-exec-5\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/rest/api/latest/plan/favicon/HT-GITTEST123?_=1570640303064> 701210kb  
2019-10-09 10:43:26,802 INFO \[http-nio-8085-exec-25\] \[AccessLogFilter\] vnguyen GET [http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123\&_=1570640303065](http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123&_=1570640303065) 700669kb  
2019-10-09 10:43:33,803 INFO \[http-nio-8085-exec-24\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/rest/api/latest/plan/favicon/HT-GITTEST123?_=1570640303066> 698621kb  
2019-10-09 10:43:42,805 INFO \[http-nio-8085-exec-5\] \[AccessLogFilter\] vnguyen GET [http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123\&_=1570640303068](http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123&_=1570640303068) 694502kb  
2019-10-09 10:43:53,805 INFO \[http-nio-8085-exec-25\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/rest/api/latest/plan/favicon/HT-GITTEST123?_=1570640303069> 694370kb  
2019-10-09 10:43:58,808 INFO \[http-nio-8085-exec-2\] \[AccessLogFilter\] vnguyen GET [http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123\&_=1570640303070](http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123&_=1570640303070) 693270kb  
2019-10-09 10:44:00,874 INFO \[http-nio-8085-exec-24\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/rest/api/latest/repository/126582797/scan/status?_=1570642857305> 690410kb  
2019-10-09 10:44:13,704 INFO \[http-nio-8085-exec-25\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/> 690246kb  
2019-10-09 10:44:13,725 INFO \[http-nio-8085-exec-2\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/allPlans.action> 690061kb  
2019-10-09 10:44:13,992 INFO \[http-nio-8085-exec-24\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/rest/menu/latest/appswitcher?_=1570643054054> 672815kb  
2019-10-09 10:44:14,123 INFO \[http-nio-8085-exec-5\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/rest/troubleshooting/1.0/check/vnguyen?_=1570643054056> 672815kb  
2019-10-09 10:44:14,807 INFO \[http-nio-8085-exec-2\] \[AccessLogFilter\] vnguyen GET [http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123\&_=1570640303073](http://192.168.10.86:8085/chain/admin/ajax/getChains.action?planKey=HT-GITTEST123&_=1570640303073) 672803kb  
2019-10-09 10:44:14,807 INFO \[http-nio-8085-exec-25\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/rest/api/latest/plan/favicon/HT-GITTEST123?_=1570640303072> 672803kb  
2019-10-09 10:44:15,378 INFO \[http-nio-8085-exec-24\] \[AccessLogFilter\] vnguyen GET <http://192.168.10.86:8085/chain/viewChain.action?planKey=HT-GITTEST123> 672803kb  
2019-10-09 10:44:15,431 ERROR \[http-nio-8085-exec-24\] \[runtime\] Error executing FreeMarker template  
FreeMarker template error:  
Java method "com.atlassian.bamboo.ww2.FreemarkerContext.getWebPanels(String, Map)" threw an exception when invoked on com.atlassian.bamboo.ww2.FreemarkerContext object "com.atlassian.bamboo.ww2.FreemarkerContext@4e6c60b8"; see cause exception in the Java stack trace.

----  
FTL stack trace ("\~" means nesting-related):  
- Failed at: #list ctx.getWebPanels(location, para... \[in template "freemarker-lib/ui.ftl" in macro "renderWebPanels" at line 772, column 5\]  
- Reached through: @ui.renderWebPanels location="plan.he... \[in template "decorators/planDecorator.ftl" at line 36, column 9\]  
----

Java stack trace (for programmers):  
----  
freemarker.core._TemplateModelException: \[... Exception message was already printed; see it above ...\]  
at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:285)  
at freemarker.ext.beans._MethodUtil.newInvocationTemplateModelException(_MethodUtil.java:261)  
at freemarker.ext.beans.OverloadedMethodsModel.exec(OverloadedMethodsModel.java:67)  
at freemarker.core.MethodCall._eval(MethodCall.java:76)  
at freemarker.core.Expression.eval(Expression.java:81)  
at freemarker.core.IteratorBlock.acceptWithResult(IteratorBlock.java:72)  
at freemarker.core.IteratorBlock.accept(IteratorBlock.java:67)  
at freemarker.core.Environment.visit(Environment.java:362)  
at freemarker.core.Environment.invoke(Environment.java:714)  
at freemarker.core.UnifiedCall.accept(UnifiedCall.java:86)  
at freemarker.core.Environment.visit(Environment.java:362)  
at freemarker.core.Environment.visitAndTransform(Environment.java:460)  
at freemarker.core.BlockAssignment.accept(BlockAssignment.java:55)  
at freemarker.core.Environment.visit(Environment.java:326)  
at freemarker.core.Environment.visit(Environment.java:332)  
at freemarker.core.Environment.visit(Environment.java:332)  
at freemarker.core.Environment.process(Environment.java:305)  
at freemarker.template.Template.process(Template.java:384)  
at com.atlassian.bamboo.ww2.FreemarkerRequestDispatcherPageFilter.applyDecorator(FreemarkerRequestDispatcherPageFilter.java:123)


Answers:
author: Daniel Santos
body: Hi [@Van Nguyen](/t5/user/viewprofilepage/user-id/1001146)

I hope you are doing great, despite this issue.

I would like to ask you a couple of troubleshooting questions to try narrowing down this one a little.

* Are there other git repositories working in your instance with a similar configuration?
* Have you tried configuring this repository again? (removing and creating it again)
* Did you install any plugin recently that provides any type of information in the plan screens?
* Did you see any "caused by" section after the stack track you just shared?

comments: author: Van Nguyen
body: No these will our first git repositories.

I did try to remove then add again.

No did not install any plugin recently

I can check "caused by" again. The stack trace is too long to shared.


author: Daniel Santos
body: Thank you for the answers.  
I'll wait for the **caused by** section if there is one. In case we can't move forward with it we will probably need to open a ticket with our support to work on this specific issue.