I am using Bitbucket 4.4.1 with ScriptRunner 4.2.0.6 and I am attempting to use the Built In Script functionality to clone our Bitbucket Cloud repositories to a local Bitbucket server. It seems that ScriptRunner is basically doing nothing, despite having configured the section Mirror Bitbucket Team and checking Configure Mirrored Repositories. In the Mirror Bitbucket Team section, after providing correct details for the cloud instance, I click Preview and I get the unhelpful message "This could take a long time so tail the logs for more information" (Really? What logs? Where?). If I go to Configure Mirrored Repositories section and then attempt to manually sync repositories, I get another unhelpful message saying "Nothing to do". I've tailed all the logs I can think of and can find no information as to what's going wrong.
Can someone please enlighten me on what's going on here? I have a ton of repositories in Bitbucket Cloud that I want synchronized to our local Bitbucket server, but the ScriptRunner doesn't appear capable. Please advise.
I only see the "This could take a long time" message. I checked the log file you noted in /var/atlassian/application-data/bitbucket/log. There are no exceptions or warnings that I can find. Running "tail -f" against the log file and then retrying the whole synchronization process, even with debug level logging, shows no warnings or errors.
The user I am connecting to Bitbucket cloud with has full permissions for all repos. Any user account I try ends up with the same results.
I have tried specifying a single repository and nothing is returned there also. Am I missing a dependency for ScriptRunner? It seems as though the scripts aren't even running at all. SELinux is set to Permissive mode and iptables is turned off on the host.
Do you see anything else after "This could take a long time so tail the logs for more information", or just this message?
Your looking for a file called atlassian-bitbucket.log
I would expect to see an Exception or warning message if things did not work.
It sounds like its connecting to Bitbucket. Could you enter in the "Regex" field the name of just one repository to see if anything is returned.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.