youngmon/atlassian-qna huggingface dataset:
How to send close alert message for an existing alert in Opsgenie from Amazon SNS
Asked by Jose_Martin:

Hi there,

I have configured both the part of sending alerts by Amazon SNS to opgenie with custom actions and the return from Opsgenie to Amazon SNS when the resolving user clicks on any of the custom actions to run a tasks on my infrastructure.

So, when this task is done satisfactory in my infra I would like to notify opsgenie saying the task has been executed correctly (in a nutshell, send a close action) and therefore opgenie closes the alert automatically. How can I do that? Using alias and deduplicate?

Many thanks,


Answers:
author: Robert
body: Hi [@Jose_Martin](/t5/user/viewprofilepage/user-id/3958536)!

You've definitely got a few options when it comes to both running the action *and*what to do with the alert once the action completes. I'll try and break these down into those two sections:

***Running the action***

The best choice here is ultimately going to depend on where you want to host this custom action. We have a few outbound channels you can use to handle sending the action:

* [Outgoing SNS Integration](https://docs.opsgenie.com/docs/amazon-sns-outgoing-integration):

  * If you are looking to keep it cloud-based, then the outgoing SNS integration or action channel is probably my first choice. This would let you trigger, for example, a Lambda function each time Opsgenie posts to the SNS topic you specify.

* [Opsgenie Edge Connector](https://docs.opsgenie.com/docs/oec-overview):

  * Opsgenie Edge Connector (OEC) is a great option if you have the infrastructure available to run the OEC service. It has a small resource footprint, sits within your own infrastructure, and can run a specific script for a specific custom action.

* [Webhook](https://docs.opsgenie.com/docs/webhook-integration):

  * This is functionally similar to the SNS integration but will send a generic HTTP request to an endpoint instead. This is a good platform-agnostic option for outbound actions.

* [AWS Systems Manager](https://docs.opsgenie.com/docs/aws-systems-manager-channel)

* [Opsgenie Actions](https://docs.opsgenie.com/docs/opsgenie-actions)

***What to do when the action completes***

My own preference is to leave closing the alert to the monitoring tool when possible. For something like SNS, it should be able to "recover" and send the OK state change to Opsgenie to close the alert.

Whether you decide to close the alert as part of your custom action, or just post the results/output as a note, that would be done with an Alert API request as part of your script (<https://docs.opsgenie.com/docs/alert-api>).

comments: author: Jose_Martin
body: Awesome! Thanks [@Robert](/t5/user/viewprofilepage/user-id/2275658)


Tags: amazon
Is there a way to resolve alerts instead of close them via the API?
Asked by Witold Gren:

Current I use OpsGenie with Prometheus and I have a big problem. Alertmanager creates new alert and after a while it closes this alert during this operation opsgenie always creates new alerts, not de-duplicate existing alert. The reason why this happens is because OpsGenie not solving the alarms but closing them. In summary, I have a very large number of the same alerts that should be duplicated.

In web app it it impossible to select a status other than closed.


Answers:
author: Samir
body: Hi [@Witold Gren](/t5/user/viewprofilepage/user-id/3952043) - Opsgenie doesn't have an alert state of "Resolved". Alerts are either open or closed. However, there is the "acknowledge" action you can take on an alert.

What you could do is edit the opsgenie_config in Prometheus and change "send_resolved" to FALSE - so that Prometheus does not send anything to Opsgenie when the alert is resolved, this will stop the alert from being closed in Opsgenie automatically.

There isn't really anything that could be adjusted on the Opsgenie side though, as the Prometheus integration is just sending requests to Opsgenie's alert API, so it's setup to post to the ["Close Alert" endpoint](https://docs.opsgenie.com/docs/alert-api#close-alert) when the alert is resolved if that "send_resolved" is set to True.

Thanks,

Samir

comments: author: Witold Gren
body: Thanks Samir for response, but this information not solve my problem.


Tags: cloud
OEC Docker
Asked by Petr Schov?nek:

Hi, I only inform opsgenie support

doc: <https://docs.opsgenie.com/docs/oec-running>

* Clone the repository with git clone <https://github.com/opsgenie/OEC.git>
* Run docker build . -t OEC

```
1) invalid argument "OEC" for "-t, --tag" flag: invalid reference format: repository name must be lowercase
```

- ok, rename :)

```
2) Step 6/12 : RUN export GIT_COMMIT=$(git rev-list -1 HEAD) && dep ensure -v && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags "-X main.OECCommitVersion=$GIT_COMMIT -X main.OECVersion=1.0.1" -o nocgo -o /oec .
---> Running in 24f211defacd
could not find project Gopkg.toml, use dep init to initiate a manifest
The command '/bin/sh -c export GIT_COMMIT=$(git rev-list -1 HEAD) && dep ensure -v && CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -a -installsuffix cgo -ldflags "-X main.OECCommitVersion=$GIT_COMMIT -X main.OECVersion=1.0.1" -o nocgo -o /oec .' returned a non-zero code: 1
```

I solved it by adding "dep init" to Dockerfile


Answers:
author: Don Pierce
body: Thanks for the info this will help other users...


Tags: feedback-forum
Error during configuring details of the mail server in bamboo.
Asked by Ranjith_R:

**Error :**

The mail settings you entered were not valid. Error thrown was: com.sun.mail.util.MailConnectException: Couldn't connect to host, port: smtp.gmail.com, 25; timeout 10000; nested exception is: java.net.SocketTimeoutException: connect timed out.

I'm using below link provided by atlassian for configuration :

<https://confluence.atlassian.com/bamboo/configuring-bamboo-to-send-smtp-email-289276984.html>


Answers:
author: Nic Brough -Adaptavist-
body: That really does mean what it says - the email server is not contactable by the bamboo system. You'll need to debug the connection between the two servers.

comments: author: sushmita bhandari
body: hi , i'm also facing same issue . do you have idea why that issue is appearing i have followed the document from atlassian


author: Nic Brough -Adaptavist-
body: Because your email server is not reachable from the bamboo system. You will need to debug the network connection.


Tags: smtp
How to perform containerised builds when using bamboo-agent Docker image
Asked by sclarke81:

If I'm running Bamboo server and the agent in Docker containers how should I set up containerised builds?

Should the agent be able to start containers on the host or do Docker in Docker? Any other ideas? Has anyone done this? I'd like to trash the container that actually does the build, so I'd like to avoid adding the build tools to the agent image.


Answers:
author: Boris Van Hardeveld
body: From your description I would say that mounting the host Docker socket as volume in the agent container would be the best option, for reasons [described here](https://jpetazzo.github.io/2015/09/03/do-not-use-docker-in-docker-for-ci/).

Your agent image would then only need to install the Docker client binary, which can be done by extending the [Bamboo agent base image](https://hub.docker.com/r/atlassian/bamboo-agent-base) as described in the readme. Your agent would manage your build container as siblings.

In such a setup, you should be able to use the [Bamboo Docker Runner](https://confluence.atlassian.com/bamboo/docker-runner-946020207.html).

If you happen to run on Kubernetes (which I cannot derive from your description), Docker-in-Docker is most often the best option (security aspects kept in mind), [as described here](https://medium.com/hootsuite-engineering/building-docker-images-inside-kubernetes-42c6af855f25). This configuration is implemented in the plugin [Kubernetes Agents for Bamboo](https://marketplace.atlassian.com/apps/1222674/kubernetes-agents-for-bamboo) (note that I am affiliated with this plugin).

Happy to discuss further if you have any more questions.

comments: author: sclarke81
body: Thanks for your reply. This sounds like exactly what I need to do. I'd wondered about mounting the host's Docker socket, but wasn't sure if that was a sensible solution.

I'm not on Kubernetes so using Docker on the host sounds ideal.


author: Boris Van Hardeveld
body: Keep in mind that going the socket route, you might run into permission issues as the Bamboo agent base image is running as user 'bamboo' (UID 1000), which will in a usual setup have no permissions over this socket. You will need to add this user to the docker group on the host system, change the socket permissions or otherwise extend the base image to run as root.


Tags: agent

docker
Broken link in the installation documentation
Asked by software_compliance:

I've installed Bamboo successfully and now I would like to following the link to start it as a windows service on this page <https://confluence.atlassian.com/bamboo0610/installing-bamboo-on-windows-980468682.html>. Now the link on this page for those instructions is <https://confluence.atlassian.com/bambooserverm/installing-and-upgrading/running-bamboo-as-a-service> and that initially asks for a login which is a bit unusual for documentation and when I supply an account it says the page is forbidden: "Looks like we're off the beaten track". Is there someone who can either correct the link or tell me what the correct link is or make sure the page needs no authentication please?

No comments on this? Been a month now.


Answers:
author: software_compliance
body: Still nobody able to resolve this for me.


author: software_compliance
body: No one have an answer for me on this?


Tags: documentation

link

windows
Bamboo Install Failure
Asked by Malcolm B I_Anson:

Having installed JDK and JRE, once Bamboo installation is complete and starting Bamboo, it is throwing an error when attempting to start the service:

*The service name is invalid.*

*More help is available by typing NET HELPMSG 2185*

*Press any key to continue ...*

No log file is generated.


Answers:
author: Jeyanthan I
body: Hi Malcolm,

I assume you are installing Bamboo 7.0.4. Can you please check if you can start via console \<bamboo-agent-home\>\\bin\\ambooAgent.bat?

If so, then the next step would be to check as which user Bamboo service is configured to run as. You may want to change the service to run as a local user who owns the Bamboo home directory.

This is described in this page: [Running Bamboo as a Windows Service as the Local User](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html)

Let us know how it goes.

Cheers,  
Jey

comments: author: Malcolm B I_Anson
body: Thanks for your help with this but it doesn't get us past the issue because there is no BambooAgent.bat file inside bin folder and also "'**Bamboo build server**'" services is also missing from service list. (As a matter of interest, we have Bamboo running fine on an old server and that also does not have either of these things).


author: Jeyanthan I
body: Hey [@Malcolm B I_Anson](/t5/user/viewprofilepage/user-id/3954101) ,

My bad. I intended to say *\<bamboo-install\>\\bin\\start-bamboo.bat*

Can you find this and see if you can start with this batch file instead?
How do I force a "docker pull" before my build?
Asked by Daniel Martin:

I have a build that is defined with one stage, one job, and that job is configured to use docker. I'm not building a docker image with this job; I'm conducting my entire build inside a docker image.

However, it seems that the build agents have different versions of the docker image I use to build with on them, meaning that I get slightly different results in my build depending on which build agent my build lands on.

I can't add a task to my existing job to execute \`docker pull\` of the appropriate image, because my entire job is set to be run inside a docker container.

I can't add a new job that does the \`docker pull\` command because that will then run on a different build agent.

My workaround at the moment is to always push my docker images with a unique tag based on the date and then modify the bamboo job configuration each time I push the docker image, but this seems highly suboptimal. Ideally, I would never touch the bamboo configuration.


Answers:
author: roman_baeriswyl
body: I think at the bottom there is an optional field for:

```
Extra arguments for the docker run command
```

I have added:

```
--pull=always
```

there and it seems to work.


Tags: docker
Cannot save subversion repository using Chrome version 83
Asked by Ken Wood:

We are on bamboo 6.8.1 build 60805.

We recently started having a problem saving repository information - after clicking 'save' the icon just spins and spins and never completes. We found the problem does NOT happen with FireFox. It seems that the problem is some bad interaction between Bamboo and Chrome 83 (which just came out 2020-05-19).

Is anyone else seeing this? Is Atlassian aware of this?


Answers:
author: Jeyanthan I
body: Hi [@Ken Wood](/t5/user/viewprofilepage/user-id/502107) ,

Thanks for bringing this up. We do see a few customers experiencing the same issue you face. It appears that this is reproducible only on the latest version of Chrome and there is an open bug for this in Chromium community: [https://bugs.chromium.org/p/chromium/issues/detail?id=1084874](https://slack-redir.net/link?url=https%3A%2F%2Fbugs.chromium.org%2Fp%2Fchromium%2Fissues%2Fdetail%3Fid%3D1084874)

The workaround until this is fixed would be to use a different browser or downgrade your browser to an older version. The bug is fixed in *Chrome stable 83.0.4103.97*

We will likely come up with a KB article soon and share the link here for others to reference.

Hope that helps.

Cheers,  
Jey

comments: author: Ken Wood
body: My browser just updated to 83.0.4103.97 and I tested - the problem is resolved!


author: Jeyanthan I
body: That's wonderful to hear! Thanks for sharing the outcome.

As promised, I just wrote an article regarding this issue: [Cannot save a repository using Chrome v83](https://community.atlassian.com/t5/Bamboo-articles/Cannot-save-a-repository-using-Chrome-v83/ba-p/1396660)

Cheers,  
Jey
When using Bamboo Specs, can you encrypt your .credentials file?
Asked by Jason Templeman:

We have converted over to using Bamboo Specs and have some users complaining that the .credentials file which is needed to run the Java files is in plain text (even though it is only local).  

Is there a way to use a more secure method other than a plain text file?


Answers:
author: Maik
body: Hi Jason,

You could try the UserPasswordCredentials interface:

    String bambooUrl = args[0];UserPasswordCredentials adminUser = new SimpleUserPasswordCredentials(args[1], args[2]);BambooServer server = new BambooServer(bambooUrl, adminUser);server.publish(createPlan());;

Just instead of geting the credentials from the args or the .credentials file you could store the credentials in other file or variable (encrypted) and then decrypt the values in java.

[Link: https://docs.atlassian.com/bamboo-specs-docs/7.0.4/specs.html?java#java-specs-utilities](https://docs.atlassian.com/bamboo-specs-docs/7.0.4/specs.html?java#java-specs-utilities)

Hope it helps :)

comments: author: Jason Templeman
body: Thanks for the response. It gives me hope that there might be a solution but there are some things I probably should have added but was in a hurry for a response.  

I am not a Java developer  
Our Java files are direct cut-n-paste from Bamboo (with minor class name edits)  
We are currently using version 6.6.3 (in process of upgrading to 7.0.3 on July 10th)  
We have hundreds of plans that we run from within IntelliJ (not CLI) so preferable minimal changes to file or ease of passing within the IDE.   
Need something as simple as possible ;)
How to configure SonarQube with Bamboo Spec (yaml)
Asked by Alexander Lisachenko:

I want to configure a build plan as a Bamboo Spec in repo. Unfortunately, I can't find any documentation about how I can configure SonarQube task with Bamboo Spec.

Could someone provide a snapshot of this task configured as spec in yaml?


Answers:
author: Michael R?egg _Mibex Software_
body: Hi,

The Sonar for Bamboo app currently only supports Java Specs via the *AnyTask* provided by Bamboo. You can generate it by the Bamboo export plan to Spec feature.

This is currently not possible for YAML, as there is no export feature and also because there is no support for tasks built into the YAML support. You might want to vote for <https://jira.atlassian.com/browse/BAM-20803> which covers this.

Best regards,  
Michael (app vendor)


author: Jeyanthan I
body: Hi Alexander,

External plugins can be configured using the generic Anytask class that you can find below:

* <https://docs.atlassian.com/bamboo-specs-docs/latest/specs.html?java#miscellaneous-plugins>

Cheers,  
Jey

comments: author: Alexander Lisachenko
body: Unfortunately, this doesn't work for Yaml format definition.


author: Jeyanthan I
body: That's true. AnyTask is not available for YAML Specs yet as of Bamboo 7.0.4. As Alex pointed out earlier, please cast your vote on [BAM-20803](https://jira.atlassian.com/browse/BAM-20803) and stay tuned for updates.

Thanks for your patience.

Cheers,  
Jey
Windows Set up - Post Installation - Error 1067
Asked by Jason Smith:

Hi I've tried everything here (<https://confluence.atlassian.com/bamkb/windows-service-fails-to-start-the-process-terminated-unexpectedly-376833593.html>) - with except on the wrapper.conf--how do I recreate this??

Bottom line I continue to get the 1067 when trying to start as a service. Appreciate the feedback.


Answers:
author: Jeyanthan I
body: Hi [@Jason_Smith](/t5/user/viewprofilepage/user-id/3945977) ,

If you have recently upgraded Bamboo to 7.0.2+ **and** you have [installed the service](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-289277308.html) that comes with the installer **and** you do not see any entry in *atlassian-bamboo.log* when the service is started, please be informed that the default Windows service is run as *Local Service* instead of *Local System*. As a result, the service user will not have permission to write to your server logs. This is due to changes in recent versions of Tomcat and the Commons Daemon.

To work around the restrictions of the Local Service user, our recommendation is to run the service as a local user as described in this KB article - [Running Bamboo as a Windows service as the local user](https://confluence.atlassian.com/bamboo/running-bamboo-as-a-windows-service-as-the-local-user-416580754.html)

Hope that helps.

Cheers,  
Jey


author: Moses Thomas
body: [@Jason_Smith](/t5/user/viewprofilepage/user-id/3945977) Sorry that you are experiencing such issue, please could you provide logs in the \<bamboo-installation-dir\>/logs ?

Kind regards,

Mo
I want to migrate jenkins project to Bamboo.
Asked by Tarun M:

I have written Jenkinsfile in jenkin which specifies what needs to be done at each stage when code is committed to BitBucket repo, from that jenkins does it automatically.  
I wanted to know how can I achieve that in Bamboo as we are trying to migrate it to bamboo ?  

Like Jenkins file is there are any alternative in Bamboo ?


Answers:
author: Boris Van Hardeveld
body: Bamboo allows you to define your build plans in Java and in YAML. Please have a look at the following documentation: [https://confluence.atlassian.com/bamboo/bamboo-specs-894743906.html.](https://confluence.atlassian.com/bamboo/bamboo-specs-894743906.html)

If you have any questions about Bamboo Specs, you can ask them here.

Good luck.

comments: author: Tarun M
body: Sure and Thank you
Site Maintenance
Asked by Heidi Espinosa:

Your Atlassian Cloud site is unavailable due to scheduled maintenance.  

Please refer to our page describing [Maintenance Windows](https://confluence.atlassian.com/cloud/maintenance-windows-744721660.html) for more information.  

Please check [Atlassian Status](https://status.atlassian.com/) for any known issues.  
If you have any further questions, please contact our support team.

Hello! today I tried to log in to my site but I got this message, do you know what steps I should follow to solve it?


Answers:
author: Trudy Claspill
body: Hello [@Heidi Espinosa](/t5/user/viewprofilepage/user-id/5536547)

Welcome to the Atlassian community.

Did you refer to the Maintenance Windows page provided to get more information?

Are you still getting that same message? It is now 7 hours since you posted, and the referenced page indicates a maintenance window should not last more than 2 hours.

comments: author: Heidi Espinosa
body: Hi [@Trudy Claspill](/t5/user/viewprofilepage/user-id/3569011) thank you for your reply and yes I keep getting the same message and I have already checked my maintenance schedules but I am logging in at different times. can you help me figure out what to fix?


author: Trudy Claspill
body: I advise you to have your Jira Administrators contact Atlassian Support directly about this:

<https://support.atlassian.com/contact/#/>


Tags: jira-service-desk-cloud

jira-service-management

jira-service-management-cloud
What is the best way to allow deletion only for Subtasks in the project?
Asked by Alex Sander:

I need to prevent deletion of issues im my project, allowing only Subtasks to be deleted. How can I do that?


Answers:
author: Nicolas Grossi
body: [@Alex Sander](/t5/user/viewprofilepage/user-id/5165257) Welcome! It is not possible currently, see: <https://community.atlassian.com/t5/Jira-questions/Authorization-to-only-delete-the-sub-tasks/qaq-p/1039296>

HTH

Nicolas

comments: author: Alex Sander
body: Hi Nicolas, thanks.  

Meanwhile, I'm trying one solution, hiding the Menu exclusion option in issues by ScriptRunner Fragment.  

In the script condition I'm using the a simple code line:  

return issue.getProjectObject().getKey() == 'MyProjectKey' \&\& issue.isSubTask()  

I don't know if it is the best solution., but aparently, it works fine.  
The delete appaears only in the subtasks options.  


Tags: jira-service-desk-data-center

jira-service-management-data-center

jira-software
How to handle automation with matrix data in 2d,3d or more
Asked by T?rence LECROIX:

Hello,

What we are trying to achieve :

* We have a data matrix
* The user in back office can chose a data from a drop down menu
* Depending on its choice, the automation must fill in several others fields
  * For example, if they choose the supplier B
    * The automation is able to parse the matrix, find the supplier B and fill in several information about the supplier in several fields

I'm thinking about an automation that call aws lambda but I'd like to know if some of you are dealing with that kind of case and how.

<br />

Thanks in advance


Answers:
author: Lisa Forstberg
body: Hi [@T?rence LECROIX](/t5/user/viewprofilepage/user-id/3728276)

It seems like you are on Jira Service management Premium.

This means you have the [asset](https://www.atlassian.com/software/jira/service-management/features/asset-and-configuration-management) functionality available. Your use case above can definitely be achieved by building up your matrix with objects relating to each other stored in asset managemen. You will then create object custom fields plus an automation that will set of the next fields based on the relations to what has been chosen in the first field.

br

Lisa

comments: author: T?rence LECROIX
body: Hello Lisa, Thanks for your answer, I'll give it a try !


Tags: cloud

jira-service-management

jira-service-management-cloud