youngmon/atlassian-qna huggingface dataset:
[FailoverTransport] Transport (***:443/builds/jmsServlet) failed, attempting to automatically reconnect
Asked by vitalii:

Hi,

I had started to use a Bamboo cloud a couple of days ago, and i set up the process in the first day and it works great.

Agent is installed on my Mac laptop. For starting it, i'm running a sh script with the

*java -jar atlassian-bamboo-agent-installer address and stuff*

However, now i'd switched to another Bamboo server (moved from test server to the real one), so i updated sh with new address and keys, and i had started to get these issues in console:

```
INFO ? | jvm 1? ? | 2016/04/26 11:36:38 | org.apache.activemq.transport.InactivityIOException: Channel was inactive (no connection attempt made) for too (>30000) long: ***:443/builds/jmsServlet
```

```
INFO ? | jvm 1? ? | 2016/04/26 11:36:38 | ?at org.apache.activemq.transport.AbstractInactivityMonitor$1$1.run(AbstractInactivityMonitor.java:91)
```

```
INFO ? | jvm 1? ? | 2016/04/26 11:36:38 | ?at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
```

```
INFO ? | jvm 1? ? | 2016/04/26 11:36:38 | ?at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
```

```
INFO ? | jvm 1? ? | 2016/04/26 11:36:38 | ?at java.lang.Thread.run(Thread.java:745)
```

```
INFO ? | jvm 1? ? | 2016/04/26 11:36:55 | 2016-04-26 11:36:55,038 INFO [ActiveMQ Task-24] [HttpClientTransport] Broker Servlet supports GZip compression.
```

```
INFO ? | jvm 1? ? | 2016/04/26 11:37:23 | 2016-04-26 11:37:23,387 WARN [ActiveMQ InactivityMonitor Worker] [FailoverTransport] Transport (***:443/builds/jmsServlet) failed, attempting to automatically reconnect
```

<br />

<br />

Sometimes it works fine, but from time to time, Agent is not able to start its job after commit was pushed, and Bamboo reports:  
*Build JOB-31 had to be cancelled: it was marked as queued but was not present in the queue for (at least) the past 720 seconds.*  
Google said nothing about this error.


Answers:
author: vitalii
body: Solved in one day, by opening a support ticket at: <https://support.atlassian.com/servicedesk/customer/portal/23>


author: Alexey Chystoprudov
body: we are going to deploy fix to Cloud this week


author: vitalii
body: @Alexey Chystoprudov Hi, thanks. Any estimates/workarounds for now?


author: Alexey Chystoprudov
body: Hello @vitalii,

It's known issue. We're working on it - <https://answers.atlassian.com/questions/38505569>


Tags: cloud
Force command task to return 0
Asked by Eliza_R:

Can I force the command task to return 0? I'm trying to run a program which runs tests which returns a non-zero exit code whenever a test fails. I want to specify an executable with arguments so I can have it configured as a capability. I have been trying to pass arguments to force a 0 exit code but it doesn't seem to work (e.g. "\|\| :") even though it appears to be appended correctly in the build logs.


Answers:
author: Alexey Chystoprudov
body: There is no option to force command task to return 0.

But, you can create script task, which uses command capability to execute your command and have full control over return code

comments: author: Eliza_R
body: As I mentioned previously it's preferred to use executables as capabilities, it's not ideal to use a command task.


author: Alexey Chystoprudov
body: Hello @lintunen,

Usually `exit 1` or `exit 0` work well. Can you provide your script?

comments: author: Eliza_R
body: Sorry my bad, I meant command task. I modified the question text above.


Tags: bamboo-administration
Linked repositories bamboo
Asked by Dima Shuster:

We experience a weird issue.

We see there is a linked repository   
[https://come2play.atlassian.net/builds/chain/admin/config/editChainRepository.action?buildKey=BG-BSB\&repositoryId=10878978](https://come2play.atlassian.net/builds/chain/admin/config/editChainRepository.action?buildKey=BG-BSB&repositoryId=10878978)  
but it is not displayed in "linked repositories" at all.  
Here it is empty: <https://come2play.atlassian.net/builds/admin/configureGlobalRepositories.action>

Where should we look for the issue?

Thank you,

Dima


Answers:
author: Alexey Chystoprudov
body: Hello @Dima Shuster,

Please create support request at support.atlassian.com


Tags: cloud
Bamboo server not work in sometime
Asked by Phuong Nguyen:

Hi, recently, the bamboo server setup on our server have some stranger error:

26-04-2016 10-30-48 AM.pngimage2016-4-26 10:29:17.png

Please help us!

[](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-server-not-work-in-sometime/qaq-p/82003?attachment-id=5844){#link_116746f818a83e}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/2584/1/image2016-4-26%2010%3A29%3A17.png){#display_116746f818a83e_0}  
[](https://community.atlassian.com/t5/Bamboo-questions/Bamboo-server-not-work-in-sometime/qaq-p/82003?attachment-id=5845){#link_116746f818a83e_0}  
[](/tnckb94959/attachments/tnckb94959/bamboo-questions/2584/2/26-04-2016%2010-30-48%20AM.png){#display_116746f818a83e_2}


Answers:
author: Nic Brough -Adaptavist-
body: That error usually means that the git process on the bamboo server was unable to connect to your repository because of a network error. I'm afraid you need to debug your network connections, rather than bamboo
Long queue time with Bamboo Remote Agent
Asked by Caleb Duckwall:

I just recently started seeing issues with our Bamboo Remote Agent and plans being queued for a few minutes before running, even though no other plans are running and the agent is clear to build the queued plan. In the log for the remote agent, the following is printed almost every minute until eventually the agent picks up the plan and runs it like normal.

```
2016-04-25 09:14:10,987 WARN [ActiveMQ InactivityMonitor Worker] [FailoverTransport] Transport (https://xxx.atlassian.net:443/builds/jmsServlet) failed, attempting to automatically reconnectorg.apache.activemq.transport.InactivityIOException: Channel was inactive (no connection attempt made) for too (&gt;30000) long: https://xxx.atlassian.net:443/builds/jmsServletat org.apache.activemq.transport.AbstractInactivityMonitor$1$1.run(AbstractInactivityMonitor.java:91)at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)at java.lang.Thread.run(Unknown Source2016-04-25 09:14:26,624 INFO [ActiveMQ Task-48] [HttpClientTransport] Broker Servlet supports GZip compression.
```

I have tried to completely uninstall/re-install the remote agent, Java, etc. All plans seem to get run from the queue eventually, but they are not instantaneous like they used to be, and all of the plans being queued creates a backlog. Any suggestions are welcome.

<br />

Thanks.


Answers:
author: Przemek Bruski
body: It's a known issue, we are working on fixing it.


author: vitalii
body: Hi, Caleb - thanks for the hint, opening a support ticket was a great idea: they had fixed the problem yesterday, so now everything works fine.


author: Caleb Duckwall
body: Hey vitalii,

Check out the JIRA created to handle this issue here: [![](https://jira.atlassian.com/secure/viewavatar?size=xsmall&avatarId=51493&avatarType=issuetype)BAM-17479](https://jira.atlassian.com/browse/BAM-17479?src=confmacro) - Bamboo Not Executing Queued Builds OPEN

I followed the directions supplied by Russ Gould and entered a support case for having a workaround applied to our environment which seems to have fixed the issue for us.

Hope that helps.

Caleb


author: vitalii
body: Have the same problem here.


author: Bhagwan Basnet (Aakash)
body: Did you check the remote agent status, I mean they are offline or online? also sometimes dedicating the agent to specific plan may help to build the plan in timely fashion.

comments: author: Caleb Duckwall
body: Thanks for your response, Bhagwan. The agent is online and will eventually run the build after the plan has sat in the queue for 1-5 minutes. There are no other builds being run and the agent should be completely clear and capable to run the queued build, so not sure why the plan is being queued in the first place. At this point, since our Bamboo set up only has one available remote agent, dedicating the agent to a specific plan is not possible.


Tags: cloud

remote-agent
Amazon EC2 permission
Asked by David Wong:

What kind of minimum permission I need to set on the Amazon EC2 to allow Elastic Bamboo to run Build?


Answers:
author: Steffen Opel _Utoolity_
body: Unfortunately that's not properly documented yet - please refer to the following issue for details, the various comments resemble a community effort to track the currently required IAM permissions (I recommend to start from the latest comment accordingly):

* <https://jira.atlassian.com/browse/BAM-11932>


Tags: cloud
1 build compatible for Windows and Linux agents
Asked by Charlie Misonne:

I have a build plan that should run on any agent (Linux or Windows)

In the plan I have a *Script Task* which calls a script file on the server. For this I have to provide the filename of my script.

Script file is called *gradlew* for Linux and *gradlew.bat* for Windows. Both files are present in the working directory when checking out the git repo.

* Linux: works fine
* Windows: com.atlassian.utils.process.ProcessNotStartedException: ./gradlew could not be started

After some troubleshooting I replaced "gradlew" by "gradlew.bat" in the script task.  
This worked! But not for linux of course

I thought using an inline script could solve the problem but then I would have to call */bin/sh gradlew* on Linux which won't work on Windows again.

Any ideas how to handle this?  


Answers:
author: Charlie Misonne
body: What might work is adding a capability to each agent. For Windows agents the value would be *.bat* , for Linux agents it will be empty. Let's call it *file.extension*

In the script task we can set *gradlew${bamboo.capabilities.file.extension}}}* as file name


author: jbetz001
body: Linux does not care about extension names, in the sense that they have magic meanings. Rename gradlew to gradlew.bat on linux

comments: author: Charlie Misonne
body: You mean the file itself in the working directory?

Can't really do that as gradlew.bat already exists for Windows. Both files are being checked out of GIT on each OS.


author: Charlie Misonne
body: yes, but then again. The sylmlink has to be created at the beginning of each build because we're starting from a clean directory. The ln command would work on Linux but throw an error on Windows


author: jbetz001
body: <http://stackoverflow.com/questions/17510688/single-script-to-run-in-both-windows-batch-and-linux-bash>

This might help, if the script using this trick is used the appropriate script.


author: jbetz001
body: I removed the symlink comment when I thought the same thing you did. But, perhaps if the symlink was created by a different user (not as part of the build) and bamboo was not given permission to delete (chmod 755) it might work. Sort of depends on how bamboo cleans directory.


author: Charlie Misonne
body: ok thanks for clarifying and your suggestion.

I will ask the developers using the build plan if that stackoverflow idea helps them out. I had another idea myself that might be easier but not ideal. Adding it in a minute


author: jbetz001
body: Bamboo has settings to clean or not clean directories. This may cause problems. If so, adding a task to the script to clean directories instead of bamboo before the loading of the repository data might work.


Tags: bamboo-administration
How to configure multiple agents on a single EC2 instance
Asked by Jensen Somers:

I currently have a single remote agent license which runs on a Windows EC2 instance. I used the stock Atlassian AMI which I configured to my liking.

I would like to upgrade my license to include more remote agents, but I'm unsure how I can configure them on my existing EC2 instance. Is it possible to host additional remote agents on that Windows EC2 instance? I couldn't really find any useful information on the wiki.

Or is it only possible to use this with multiple EC2 instances?


Answers:
author: Przemek Bruski
body: It's certainly possible - I've ran 5000 remote agents across 50 beefy EC2 instances with a 100 remote agents on each instance. You only need to provide them with a separate home directory via the -Dbamboo.home=XXXXX on the command line.

comments: author: Jensen Somers
body: But I'm running in Windows. I have no command line. All I could find are some bat files and a startup task.


author: Przemek Bruski
body: What I've said applies only to remote agents. You can't run multiple elastic agents on a single EC2 instance. You'd have to prepare an image that starts these agents.


author: Jensen Somers
body: So that means that, if I upgrade my Cloud subscription to include more agents, I also need additional virtual machines? (Which makes it quite expensive.)

That's the part that has been unclear to me.


author: Przemek Bruski
body: Well, yes and no. If you want automated instance management, it sets up each agent on a separate EC2 instance. However, since December last year, you can use remote agents with Bamboo Cloud - this option is more flexible and you can have multiple agents per EC2 instance - but Bamboo will no longer automatically manage the instance lifecycle.


Tags: cloud
Transport time out exception on Remote Agent Console
Asked by Tridib Samanta:

*This question is in reference to Atlassian Documentation: [Get help and support](https://confluence.atlassian.com/pages/viewpage.action?pageId=744721659)*

I am using Bamboo Cloud. I configured a Windows Remote Agent. Agent successfully builds jobs. But I am seeing following exception continuously:

2016-04-20 11:19:49,660 WARN \[ActiveMQ InactivityMonitor Worker\] \[FailoverTransport\] Transport ([https://xxx.atlassian.net:443/builds/jmsServlet](https://roundglass.atlassian.net:443/builds/jmsServlet)) failed, attempting to automatically reconnect  
org.apache.activemq.transport.InactivityIOException: Channel was inactive (no connection attempt made) for too (\>30000) long: [https://xxx.atlassian.net:443/builds/jmsServlet](https://roundglass.atlassian.net:443/builds/jmsServlet)  
at org.apache.activemq.transport.AbstractInactivityMonitor$1$1.run(AbstractInactivityMonitor.java:91)  
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)  
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)  
at java.lang.Thread.run(Thread.java:745)

Why is it happening? How do I fix it?


Answers:
author: Przemek Bruski
body: We have identified the root cause behind this problem and we will start rolling out a fix soon.

comments: author: Tridib Samanta
body: Is this fix in?


author: Przemek Bruski
body: Not yet. You can ask for a workaround if you contact support.atlassian.com


Tags: atlassian-support

cloud

documentation
Using Bamboo with PHP/Laravel
Asked by Frederik Frey:

Hey, i am new to Bamboo and currently testing it on my server. I have succeeded with pulling the current version of my laravel project from Bitbucket Cloud. The builds are running and testing on my maschine.

After finishing the build, i found the folder in my bamboo-home directory (xml-data/build-dir/JOBNAME). Now i am automatically copying this files from this place to my website location. When this is finished, some composer things are running and i am ready to go! This is working so far and I like it.

But i thought, that it should be possible to use the Deployment functionallity of Bamboo for this. I am not getting anything into my Artifacts. Maybe I am getting this wrong, but from my site, this artifacts are like a transport vehicle for my code, right?

Maybe somebody can explain this to me in more detail :smile:

Thank you.

Freddy


Answers:
author: Alex Medvedev
body: I would like to know this as well, thanks!


Tags: artefact

laravel

php
Bamboo Startup Will Always Alter Tables of Database 20-30 minutes
Asked by bobby messemer:

Running Bamboo `5.7.0` (I'm aware this is older)

Every time I have to restart the Bamboo instance, I spend anywhere from 20-30 minutes watching the `catalina.out` file show `ALTER TABLE` statements.

Is there a way to prevent this from happening?


Answers:
author: Przemek Bruski
body: Which database are you using?

comments: author: bobby messemer
body: MySQL


Tags: bamboo-administration
Bamboo - Including test files for unit tests
Asked by Vince Weeks:

When we include assets such as images in our projects, those assets are copied to the build instance and all is well. One of our developers recently added an Excel file to one of our unit test projects and that particular file is NOT copied to the build instance. As a result, the unit tests fail and our build won't deploy. How do I tell the build to copy our Unit Test "test file"?


Answers:
author: Vince Weeks
body: So, for anyone else that may have this sort of issue, resources like images, when part of an executable, are copied automatically - resources, when part of a unit test are NOT copied. A separate task to perform the copy is required.


author: Alexey Chystoprudov
body: Hello Vince,

From your description it's not clear what Bamboo task copies your test resources to build instance.


Tags: bamboo-administration
Bamboo/Bitbucket: New access key is required but could not be added to Bitbucket Server.
Asked by Jason Curry:

After upgrading from Stash to Bitbucket and latest version of Bamboo my linked repositories have an alert saying "**Could not access this repository in Bitbucket Server** ". It goes on and says to try saving, I do and I get "New access key is required but could not be added to Bitbucket Server." I've found the link [New access key is required but could not be added to Bitbucket Server](http://New access key is required but could not be added to Bitbucket Server), and I've confirmed this is not the issue, the access keys are being created in Bitbucket, and I've verified SSH access using telnet from the bamboo server.

I've scoured the logs and used the built in analyzers and nothing jumps out.

Bamboo Version: 5.10.3 running on Windows

Bitbucket Version: 4.5.1 on Linux.


Answers:
author: Jason Curry
body: I was able to figure this out. Upgraded the Git client on the Bamboo server to the latest and updated the Server Capabilities to the new path of the git.exe and it started to work!


Tags: bamboo-administration
Not able to find Bamboo Release Management plugin in Marketplace
Asked by jaydeepch:

We have Bamboo and JIRA server running We need to use **[Bamboo Release Management plugin](https://confluence.atlassian.com/display/JIRA/Running+a+Bamboo+Build+when+Releasing+a+Version)**, however I am not able to find this plugin in marketplace.

Please Let me know where Can I find this plugin.


Answers:
author: Alexey Chystoprudov
body: This functionality is part of JIRA Bamboo plugin: <https://marketplace.atlassian.com/plugins/com.atlassian.jira.plugin.ext.bamboo/versions>


Tags: jira-software
Unable to download artifact Shared artifact
Asked by Ilya Golets:

I've set up a build, build passes fine, I see produced artifact and can open a link from build page, all files are there. But when I try to download an artifact from deployment project, I get an error:

```
19-Apr-2016 02:14:52Build Deployment of 'release-1' on 'QA' started building on agent 172.31.2.11819-Apr-2016 02:14:52Remote agent on host ***.***.*.***19-Apr-2016 02:14:52Build working directory is C:\Users\***\bamboo-agent-home\xml-data\build-dir\1048577-114688119-Apr-2016 02:14:52Executing build Deployment of 'release-1' on 'QA'19-Apr-2016 02:14:52Starting task 'Clean working directory task' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:cleanWorkingDirectoryTask'19-Apr-2016 02:14:52Cleaning working directory 'C:\Users\****\bamboo-agent-home\xml-data\build-dir\1048577-1146881'19-Apr-2016 02:14:52Finished task 'Clean working directory task' with result: Success19-Apr-2016 02:14:52Starting task 'Download release contents' of type 'com.atlassian.bamboo.plugins.bamboo-artifact-downloader-plugin:artifactdownloadertask'19-Apr-2016 02:14:52Preparing to download plan result PROJ-DEMO-7 artifact: Shared artifact: [proj], pattern: [Code/proj/obj/Release/Package/PackageTmp/**]19-Apr-2016 02:14:52Unable to download artifact Shared artifact: [proj], pattern: [Code/proj/obj/Release/Package/PackageTmp/**]19-Apr-2016 02:14:52Task configuration:19-Apr-2016 02:14:52artifactId_0 -&gt; [-1]19-Apr-2016 02:14:52sourcePlanKey -&gt; [PROJ-DEMO]19-Apr-2016 02:14:52localPath_0 -&gt; []19-Apr-2016 02:14:52Task runtime configuration:19-Apr-2016 02:14:52securityToken -&gt; [c7c5685158af7e1a80b63556c76d2ea46678bd3d]19-Apr-2016 02:14:52runtimeArtifactIds_0 -&gt; [0]19-Apr-2016 02:14:52artifactName_0 -&gt; [proj]19-Apr-2016 02:14:52artifactId_0 -&gt; [950273]19-Apr-2016 02:14:52resultKey -&gt; [PROJ-DEMO-7]19-Apr-2016 02:14:52artifactLocation_0 -&gt; []19-Apr-2016 02:14:52localPath_0 -&gt; []19-Apr-2016 02:14:52artifactPattern_0 -&gt; [Code/proj/obj/Release/Package/PackageTmp/**]19-Apr-2016 02:14:52Finished task 'Download release contents' with result: Error19-Apr-2016 02:14:52Starting task 'Script' of type 'com.atlassian.bamboo.plugins.scripttask:task.builder.script'
```


Answers:
author: Alexey Chystoprudov
body: Please check that build result you used for Release creation contains these artifacts


Tags: cloud
Deploy without release
Asked by Alexander Azhevsky:

Hi there

I have two deploy environments: test and production. Bamboo requires to make releases before deploying to any of it. But for test environment I do not want to make release. How can I achieve it?

Thanks!


Answers:
author: Jobin Kuruvilla [Adaptavist]
body: As Alexey said, you can go for different release numbers in Test and Prod. But there is another way you can think of it.

Ideally, you do not have to create a separate release for Test and Prod. You create a release for Test, and test it. Once it looks good, you approve the release and promote it to production. In this case, Test and Production are two environments in the same deployment project.

By doing this, you might have release-1, 2 and 3 in test but you might end up promoting only release-3 to Prod.


author: Alexey Chystoprudov
body: You can continue with autoincrement like x.x.x+1 for test releases and as soon you're ready for "real" release - manually create version x.x+1.0


author: Alexander Azhevsky
body: This leads to multiple version autoincrement between "real" releases, and disallows any possibility to plan next "real" release version. Another way is disable version autoincrement when releasing build and set versions manually, but I wish bamboo makes this automatically after "real" release.


author: Alexey Chystoprudov
body: Think about release as a tag for your build result. It's not something cast in stone.


Tags: cloud
Internal Server Error While Creating a Plan
Asked by Raj Thapa:


Answers:
author: Aleks Yenin (Polontech)
body: Here is article that might be useful:  
<https://confluence.atlassian.com/bamkb/internal-server-error-when-creating-the-first-plan-590256627.html>


author: Bhagwan Basnet (Aakash)
body: Hi Raj,

types of error is not clear from your question,

out of question... I hope you are Nepali and I would like to be in touch with you as I am also working with Atlassian tools. get me on FB as Aakash Basnet (Bhagwan).


author: Alexey Chystoprudov
body: Do you have any stack trace from Bamboo logs?


Tags: bamboo-administration