youngmon/atlassian-qna huggingface dataset:
Why does System hold onto the .lock files in BitBucketHome when the service is restarted?
Asked by Christopher Widak:

This BitBucket Server installation is on Windows Server 2016 and is running version 7.4.1 (previously 6.6.1 with the same issue). The problem is that the System process is holding onto the .lock files in BitBucketHome and BitBucketHome\\shared and the lock is not released when the BitBucket service is restarted from the Services window. This causes BitBucket Server to encounter a fatal error upon starting since it cannot create those .lock files and obtain an exclusive lock on those directories. This causes BitBucket Server to think that another instance of BitBucket is running and maintaining that lock.

The worst part is that nothing I do will release the lock on these files and allow me to delete them so that BitBucket Server could start successfully. The only solution is to reboot which is not ideal since this is running on a server with multiple other applications on it.

To delete these files I've tried using LockHunter to unlock and delete to no avail. However it does allow me to queue the files for deletion on the next reboot which may be a necessary step.

I've used Process Explorer to try and delete the file handle that System is holding onto but each file says invalid handle when attempting to delete. I get the same error using the CLI commands with handle.exe from MS Sysinternals.

Has anyone encountered this issue and been able to resolve it? Is there a graceful way to stop the BitBucket server that will successfully remove the .lock files and prevent this from happening?


Answers:
author: Ilkka Maasola
body: Same problem here, v 7.5.0

comments: author: Christopher Widak
body: Also had this issue on the version we were on before 6.6.1 but I can't recall which version that was.


Tags: bitbucket-server

lock

server
I am Not receiving bitbucket account verification email although I double checked my email address
Asked by Jeff Zhu:

The school has projects required bitbucket with our uni email. I am Not receiving bitbucket account verification email although I double-checked my email address its correct.


Answers:
author: Daniel Eads
body: Hi Jeff, welcome to the Community!

I see you've also opened a support case and one of our customer advocates has started troubleshooting privately. Our email system will stop trying to send notifications to addresses if the receiving mail server reports errors (in order to not overwhelm the receiving mail server with potentially undeliverable requests), which can cause some problems with email verification. Providing the email address is necessary to help track down why these emails aren't being delivered, and I see you've done that on the support request. We'll work on the issue and do further communications there.

Cheers,  
Daniel


Tags: account

bitbucket-cloud

cloud

email

verify
SVN to Git migration: cannot create a disk image
Asked by Evelyn Martin:

I am following the tutorial SVN to Git migration on Windows 10 Enterprise and need to mount a case-sensitive disk image.

The command svn-migration-scripts.jar create-disk-image 5 GitMigration returns the following error:

Unrecognised or missing command  
Available commands:  
- authors  
- bitbucket-push  
- clean-git  
- sync-rebase  
- verify


Answers:
author: Evelyn Martin
body: I found the answer. create-disk-image is for OS X, not for Windows.


author: Evelyn Martin
body: Comment:

The command svn-migration-scripts.jar verify returned

svn-migration-ssvn-migration-scripts: using version 0.1.56bbc7f

Git: using version 2.28.0.windows.1

Subversion: using version 1.9.4

git-svn: using version 2.28.0.windows.1

You appear to be running on a case-insensitive file-system. This is unsupported, and can result in data loss.

Cannot connect directly to internet. This may interfere with your ability to clone Subversion repositories and push Git repositories.ripts.jar


Tags: git

windows
How to connect if it is shared hosting?
Asked by cheralathann:

I am using [FTP Deploy](https://bitbucket.org/atlassian/ftp-deploy) . Pipeline reject and failed to connect. While I am using shared hosting. Though I don't have separate IP address for my website. is there any possibility to fix this problem?  

```
script:  - pipe: atlassian/ftp-deploy:0.3.3    variables:      USER: 'username'      PASSWORD: '********'      SERVER: 'ftp.example.com'      REMOTE_PATH: 'public_ci_cd/'
```


Answers:
author: Oleksandr Kyrdan
body: Hi [@cheralathann](/t5/user/viewprofilepage/user-id/700598) ,

it depends on usage conditions of your hosting.

Are they provide such option for you?

Have you tried to connect to the hosting manually?

comments: author: cheralathann
body: Yes I tried manually. It working fine. But couldn't able to connect through pipeline. Throwing authentication failed error.


author: ktomk
body: [@cheralathann](/t5/user/viewprofilepage/user-id/700598) If the authentication failed, it is a sign that network connection was already successful in the pipeline.

Verify you're using the correct credentials though.

For trouble-shooting turn on DEBUG (\`DEBUG: true\`).


author: cheralathann
body: Thank you so much [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705) [@ktomk](/t5/user/viewprofilepage/user-id/3678912) Finally done :)


author: cheralathann
body: Actually its is removing and uploading all the files again instead of uploading only changed files.

How to deploy only changed files?


author: ktomk
body: [@cheralathann](/t5/user/viewprofilepage/user-id/700598) I'd assume the devil is in the details as so often. Please consult the manual of the lftp utility, it might already do that but your understanding what a changed file is might be different to the utility or what the utility can technically do on the level of FTP and the underlying systems, e.g. the file-system inside the container or on the remote shared host.

Therefore it's important you read that up first as otherwise such questions tend to become too broad and too easy to misunderstand/too hard to answer. Yeah, and trouble-shooting.


author: ktomk
body: [@cheralathann](/t5/user/viewprofilepage/user-id/700598) Just seeing with the FTP-Deploy Pipe the optional

```
DELETE_FLAG
```

variable. Maybe if you set it to \`false\` you already have the behavior you're looking for?

For anything else the ftp-depoy pipe is using the \`lftp\` utility with the \`mirror\` command (in reverse, so uploading to the FTP server to mirror) and you can tweak this by the

```
EXTRA_ARGS
```

variable as outlined in the [ftp-deploy project](https://bitbucket.org/atlassian/ftp-deploy/).


Tags: bitbucket-pipelines

ftp
- pipe: atlassian/bitbucket-upload-file:0.3.0 not uploading files
Asked by Pra Learn:

Status: Downloaded newer image for bitbucketpipelines/bitbucket-upload-file:0.3.0? Found 10 files to upload. Supported max number of files to upload 10.INFO: Executing the pipe...


Answers:
author: Oleksandr Kyrdan
body: Hi [@Pra Learn](/t5/user/viewprofilepage/user-id/4068304) ,

yep, we'll fix this and notify you!

Thank you for your feedback!

comments: author: Oleksandr Kyrdan
body: Hi [@Pra Learn](/t5/user/viewprofilepage/user-id/4068304) ,

we have released fixed version of the [bitbucket-upload-file:0.3.1](https://bitbucket.org/atlassian/bitbucket-upload-file) pipe.  


author: Pra Learn
body: Thx for the update. [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705)

Now new error

Status: Downloaded newer image for bitbucketpipelines/bitbucket-upload-file:0.3.1INFO: Executing the pipe...? File dist/ doesn't exist.


author: Pra Learn
body: Error changed. [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705)

Status: Downloaded newer image for bitbucketpipelines/bitbucket-upload-file:0.3.1INFO: Executing the pipe...? File dist/++**hello-world**++ doesn't exist.


author: Pra Learn
body: [@Oleksandr Kyrdan](/t5/user/viewprofilepage/user-id/2885705) : please ignore above error/comment. File upload is working in [0.3.1](https://bitbucket.org/atlassian/bitbucket-upload-file)

Thank you


Tags: bitbucket-pipelines

download

file
NGINX Reverse Proxy keeps giving 504 error
Asked by Luna:

I tried to set up Bitbucket Server, and I successfully did. However, when I tried to put it behind an Nginx reverse proxy, I kept getting a 504 Gateway Time-out error.

My bitbucket.properties file:

```
server.port=7990
server.secure=true
server.scheme=https
server.proxy-name=code.example.com
server.context-path=/
server.proxy-port=443
```

My Nginx conf file:

```
server {
    server_name code.example.com
    listen 80;

    location / {
        proxy_pass          http://localhost:7990;
        proxy_set_header    X-Forwarded-Host $host;
        proxy_set_header    X-Forwarded-Server $host;
        proxy_set_header    X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header    X-Real-IP $remote_addr;
        proxy_redirect      off;
    }
}
```

Would anyone have any idea on how to fix this?


Answers:
author: Christian Glockner
body: Hi Luna,

My hunch is that nginx is being redirected by Bitbucket Server and thus fails.

Try changing the bitbucket.properties file as follows:

**server.secure=false**

**server.scheme=http**

**server.proxy-port:80**

This is based on the fact that there seems to be no SSL configuration in your nginx config and thus it won't listen on port 443.

Restart Bitbucket Server and see if that helps.

Cheers,

Christian

Premier Support Engineer

Atlassian


Tags: bitbucket-server

nginx

reverse-proxy

server
Where To Find my Bitbucket password
Asked by Holger Schr?der:

Hello,

I tried to get access to my bitbucket account from VSCode and JIRA Plugin. You need a git password for this. In the simplest case this would be my JIRA password. But unfortunately I don't have one, because my Jira account is based on OAuth2 with google. Where on bitbucket I can now see the password I need.

Thanks for the support


Answers:
author: Tyler T
body: Hi [@Holger Schr?der](/t5/user/viewprofilepage/user-id/4068165) and welcome to the Community!

Since you are using Google to login into your Atlassian account (Jira, Bitbucket, etc.) you will need to create an app password to perform git operations or other actions with specific permissions.

Here is the documentation: <https://support.atlassian.com/bitbucket-cloud/docs/app-passwords/>


author: Osomhe Aleogho
body: How do I get that password [@Nic Brough -Adaptavist-](/t5/user/viewprofilepage/user-id/781454)

comments: author: Nic Brough -Adaptavist-
body: You will need to use the password you set up when the account was created, or whatever you have changed it to.

If you do not know the password, you will need to use "reset password" in whatever you are using for the user directory for it.


author: Nic Brough -Adaptavist-
body: It needs your password for the git repository you are trying to connect to, not Jira.


Tags: atl-gruland

bitbucket-cloud

cloud
How to capture pull request creation event in bitbucket using python script
Asked by Jayadev Pentapati:

''''  
Need to know if there is any possible way to capture the event of pull request creation in bitbucket to write a custom script using this event.

Dont want PR to trigger any automatic build instead just need capture the pr creation event to write a custom python script to trigger certain activities through script run.

One option is to read/continuous poll the bit bucket PR creation page to identify the activity/event but it sounds to be a bad scripting standard and not a good practice.

Is there any git command to identify PR creation at feature branch and to merge into parent(say its DEV) and also git command to capture PR default reviewer names???

So that, these git commandS can be used in script To track if any PR is raised?

Verified many websites and read many articals and unfortunately no where found the possibility to capture the PR creation event in but bucket?

Great if anyone can post the possibility to capture the event to write our own custom logic with the PR event capture  
''''


Answers:
author: Daniel Eads
body: Hello Jayadev, welcome to the Community!

Sounds like you're trying to trigger action in an external system (possibly a python script of your own making) when a pull request is created in Bitbucket, yes?

Fortunately there's a mechanism for triggering API calls on PR creation and many other events: **webhooks**.
> Without webhooks, if you want to detect when events occur in Bitbucket Cloud, you need to poll the API. However, polling the API is inconvenient, inefficient, and error-prone. Consider how SMS messages work on mobile phones. You don't have to check your messages every 5 minutes to see if you have a text because your phone sends you a notification. In the same way, webhooks work like the notification so that the API does not have to check for the same activity every minute.

In Bitbucket's repository settings, you create the webhook and its trigger events. You'll need to provide the URL of a service listening for events; this can be a bit tricky if you're considering a python script. There are a few routes you could go down:

1. Use a python library that creates a listening server. With Javascript, this would be something like node.js. In python, you have options like [**socket**](https://realpython.com/python-sockets/) from the standard library
2. You could put your script into a serverless service like AWS Lambda that runs a small docker container and executes your script when it receives a trigger
3. Depending on complexity, you could use a service like Zapier or IFTTT to receive the webhook from Bitbucket and trigger additional API calls in your destination applications.

More information about configuring webhooks and what triggers you can use are available in our documentation: [Manage webhooks in Bitbucket](https://support.atlassian.com/bitbucket-cloud/docs/manage-webhooks/)

I hope this helps and happy to clarify any points you're unsure about!

Cheers,  
Daniel


Tags: cloud

bitbucket-server
Is there a FREE version of the Tabs or Cards macro?
Asked by Luisa Schlicher:

Does anyone know of a FREE version of the Tabs or Cards macro for Confluence? I've searched but all I can find is paid version for enterprise use. If someone can provide links to free version that would be awesome! Thanks in advance!


Answers:
author: Mikael Sandberg
body: Hi [@Luisa Schlicher](/t5/user/viewprofilepage/user-id/5112789),

Welcome to Atlassian Community!

Did you check the [Marketplace](https://marketplace.atlassian.com)? I did a quick search on tabs and found these two free apps, [AI Tabs+ for Confluence](https://marketplace.atlassian.com/apps/1227551/ai-tabs-for-confluence?hosting=cloud&tab=overview) and [Tabs+ Lite for Confluence](https://marketplace.atlassian.com/apps/1225471/tabs-lite-for-confluence-free?hosting=cloud&tab=overview)

comments: author: Luisa Schlicher
body: [@Mikael Sandberg](/t5/user/viewprofilepage/user-id/853579) I didn't even know there's an Atlassian Marketplace. I just googled it and all the ones that comes up are paid version. Thanks for pointing me to the 2 free tabs macro and educating me about the marketplace! Appreciate it!


Tags: cloud

confluence-cloud
Is it possible to have the HTML macro added to our confluence
Asked by Haroon Habibi:

Is it possible to have the HTML macro added to our confluence project? <https://confluence.atlassian.com/doc/html-macro-38273085.html>My intended use case is to embed JIRA issue collectors into confluence pages as described by this document: <https://confluence.atlassian.com/adminjiraserver0817/advanced-use-of-the-jira-issue-collector-1071816234.html>  
(I'm also open to alternative solutions if something better/more secure exists)


Answers:
author: Rilwan Ahmed
body: Hi [@Haroon Habibi](/t5/user/viewprofilepage/user-id/4970697) ,

This will work only if your and Jira and confluence are linked using application link ( <https://confluence.atlassian.com/adminjiraserver/link-to-other-applications-938846918.html> )

1. If there is application link, then create a filter in your jira and save it.
2. Now go to your confluence page, edit page and add [**Jira** macro](https://confluence.atlassian.com/doc/jira-issues-macro-139380.html).
3. In the pop-up window which open, give filter details. See screenshot
4. Click Insert and then Save the page. Each time you open the page, it will display the results from jira filter.  

   ![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/232949iE4720FE63D520C23/image-dimensions/73x51?v=v2 "image.png")

**Please note:** List of tickets will be shown to users if they have access to tickets in Jira server. Jira permissions will be applied here.


author: Haroon Habibi
body: If you are trying to get ticket details rom Jira into confluence, then you can make use of **Jira** macro in the confluence page. In search section, you can mention your jira filter name so that confluence gets the data.

can you please write me the steps for the above comments you made?


author: Rilwan Ahmed
body: Hi [@Haroon Habibi](/t5/user/viewprofilepage/user-id/4970697) ,

Your confluence admin should enable the plugin first.

1. Go to ![](https://confluence.atlassian.com/doc/files/747833194/747833195/2/1517274813281/cog.png) \> **Manage apps**.

2. Select **System** from the drop down and search for the **Confluence HTML Macros**system app.
3. Enable **Confluence HTML Macros**
4. Expand the listing and enable the **html (html-xhtml)** module as well.

Direct link for add-ons page is https://\<baseURL\>/plugins/servlet/upm/manage/system

If you are trying to get ticket details rom Jira into confluence, then you can make use of **Jira** macro in the confluence page. In search section, you can mention your jira filter name so that confluence gets the data.


Tags: confluence-server

server
Using Jira Issues/Filter in Confluence to display all issues that are part of specific Epics.
Asked by Mark Hinnen:

Hello,

I would like to use the Insert Jira Issues/Filter command in Confluence to be able to display a list of issues there are part of an Epic.

I have tried multiple different queries but am only able to get the Epic to display in the list and not the list of issues within the Epic.

Thanks in advance!

![Screen Shot 2023-01-03 at 3.24.23 PM.png](https://community.atlassian.com/t5/image/serverpage/image-id/232910i7B576429A44AA993/image-size/large?v=v2&px=999 "Screen Shot 2023-01-03 at 3.24.23 PM.png")


Answers:
author: Trudy Claspill
body: Hello [@Mark Hinnen](/t5/user/viewprofilepage/user-id/5112748)

Welcome to the Atlassian community!

Are the Jira issues in a Team Managed project or a Company Managed project? When in Jira and looking at the project, look in the bottom left corner of the navigation pane. That is where it will say "team-managed" or "company-managed".

If it is a Company Managed project, then the query you need is

```
"Epic Link"=RTL-1
```

If it is a Team Managed project then the query you need is

```
"Parent"=RTL-1
```

"Epic Link" and "Parent" are the fields used in the issues to record the ID of their parent Epic.

When you use "key=", you are asking you to give you the issue that has that specific ID.

comments: author: Mark Hinnen
body: This was very helpful, thank you!!


Tags: cloud

confluence-cloud
How to migrate Teams Calendar from server to Cloud?
Asked by Sofia Grunspan:

I need to migrate Confluence server to Cloud and I need migrate Teams calendars too.

Since Teams Calendars is now part of Confluence Cloud Premium, can I migrate using Confluence Cloud Migration Assistant?

Which steps I must follow?

Thanks


Answers:
author: Trudy Claspill
body: [@Sofia Grunspan](/t5/user/viewprofilepage/user-id/5075258)

Migration of Confluence Team Calendars information is not included in the Confluence Cloud Migration Assistant currently.

In addition to the methods listed by [@G subramanyam](/t5/user/viewprofilepage/user-id/3929184) Atlassian Labs has developed a python script that can be used to migrate Team Calendars data. The information can be found here:

<https://bitbucket.org/atlassianlabs/team-calendars/src/master/>

This is technically unsupported by Atlassian. However, I executed a migration recently and engaged Atlassian through a migration support ticket for the effort. As part of that I was able to get assistance with how to use the script, identifying gaps in the script, and identifying bugs in the script.

There are pros and cons to using the ICS export/import method vs. the python script method.

The ICS method will not properly repopulate the Who field in migrated events.

The python script can encounter problem if custom emojis are included in event titles or descriptions.

The python script doesn't migrate Jira events.

With the python script there are queries you need to run against the server database to extract data, some of which has to be provided to Atlassian so they can run queries against the cloud instance database to correct data after migration.

Calendar Watches and Subscriptions that have been set up by users are not migrated.

Be aware that for both methods, if you have Team Calendar Macros that reference the calendars, those macros will be broken. I had to get Atlassian Support to fix those for me, as it required a query to be run against the database for the cloud instance.


author: G subramanyam
body: Hi [@Sofia Grunspan](/t5/user/viewprofilepage/user-id/5075258) welcome to the Atlassian community.

At this moment, I would request you to follow these:

1. [Migration steps/ topics](https://support.atlassian.com/migration/docs/confluence-cloud-migration-assistant-to-migrate/)

**2.** [Cloud roadmap](https://www.atlassian.com/roadmap/cloud)

3. Migrate team calendar from [server to Cloud](https://confluence.atlassian.com/confkb/how-to-migrate-team-calendars-data-from-server-to-cloud-1079350571.html).


Tags: confluence-server

migration-customer-care

server
Mark the Blog Posts as Expired
Asked by Sravan Duddella:

Hello Team,

Is there a way to mark the unused (old) blog posts as Expired and Archive them instead of deleting?

Thanks in advance!


Answers:
author: Levente Szabo _Midori_
body: [@Sravan Duddella](/t5/user/viewprofilepage/user-id/4579918)

[Better Content Archiving for Confluence](https://marketplace.atlassian.com/apps/123/better-content-archiving-for-confluence?hosting=cloud&tab=overview&utm_source=cac&utm_medium=cac-comment-2229535&utm_campaign=gh) is the go-to app for requirements like this and generally for [content lifecycle management for Confluence.](https://www.midori-global.com/blog/2023/01/18/confluence-content-lifecycle-management?utm_source=cac&utm_medium=cac-comment-2229535&utm_campaign=gh)

**UPDATE:**

The good news is that [Better Content Archiving for Confluence Cloud](https://marketplace.atlassian.com/apps/123/better-content-archiving-for-confluence?hosting=cloud&tab=overview&utm_source=cac&utm_medium=cac-comment-2229535&utm_campaign=gh) is now available on the Marketplace!

[**Start a free trial now \>\>**](https://marketplace.atlassian.com/apps/123/better-content-archiving-for-confluence?hosting=cloud&tab=overview&utm_source=cac&utm_medium=cac-comment-2229535&utm_campaign=gh)

*** ** * ** ***

The server/data center version will have the ability to mark blogs as expired and archive them very soon (this is one of the top requested features.)

The reason it comes later is that the development of the cloud version is prioritized currently.

*(Please note that Better Content Archiving for Confluence is a paid and supported app and I'm part of the team developing it.)*


author: G subramanyam
body: Hi [@Sravan Duddella](/t5/user/viewprofilepage/user-id/4579918) welcome to the Atlassian community.

You may create a space with name Archived and outdated and move respective pages. You may ask your Confluence admin to set access permissions or restrictions to that archived space.

comments: author: Sravan Duddella
body: Well, I'm looking to archive Blog Posts, not pages/ spaces.


author: Patrick Vanhoof
body: Blog posts are a special type of pages :)

You can move them to a space with restricted access, or, if they still need to be available, move them to an archived space.


Tags: confluence-server

server