Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket commits not showing up on Jira

Arturo Alvarado August 20, 2018

Hi,
  I had a hardware server crash which forced me to go back to a backup.  Both Jira and Bitbucket run on the same instance.

  Previously I had linked Jira and Bitbucket and whenever I pushed a commit with the Jira Issue number, the commit would show up on the Development tab.

  After the restore (full disk backup restore, not just database restore) the link is only working one way.

  On bitbucket, if I view a commit, the link properly opens the Jira Issue, but on Jira, the commit does not show up.  Old jira issues that had properly link still show up.

  In the application links administration, they both show as connected.  I even tried to deleting the link and recreating the link, still shows as connected but still commits don't show up on the Development tab of the issue.

  I'm guessing that something is out of sync but dunno where to check.  

  On a note, I took the opportunity to switch Jira from built in database to postgressql.

2 answers

1 accepted

0 votes
Answer accepted
Arturo Alvarado August 23, 2018

I finally figure out the problem.

I was guided to turn on  debug logging  to get more info.  The new information pointed the source of the problem.  The hooks where not being executed.  And was pointed to this  this document here.

The application.xml file indicated that my hooks where not executable.  So searching for the hooks I found that the owner of the files got messed up.

-rwxrwxr-x 1 501 501 452 Apr 15 2015 applypatch-msg.sample
-rwxrwxr-x 1 501 501 896 Apr 15 2015 commit-msg.sample
rwxrw-r- 1 501 501 427 Apr 15 2015 post-receive
drwxrwxr-x 2 atlbitbucket atlbitbucket 4096 Aug 21 16:25 post-receive.d
-rwxrwxr-x 1 501 501 189 Apr 15 2015 post-update.sample
-rwxrwxr-x 1 501 501 398 Apr 15 2015 pre-applypatch.sample
-rwxrwxr-x 1 501 501 1642 Apr 15 2015 pre-commit.sample
-rwxrwxr-x 1 501 501 1239 Apr 15 2015 prepare-commit-msg.sample
-rwxrwxr-x 1 501 501 1348 Apr 15 2015 pre-push.sample
-rwxrwxr-x 1 501 501 4951 Apr 15 2015 pre-rebase.sample
rwxrw-r- 1 501 501 425 Apr 15 2015 pre-receive
drwxrwxr-x 2 atlbitbucket atlbitbucket 4096 Aug 21 16:25 pre-receive.d
-rwxrwxr-x 1 501 501 3611 Apr 15 2015 update.sample

 

Fixing file ownership fixed the hooks which in turn fixed the issue.

0 votes
Arturo Alvarado August 21, 2018

I recently noted that in the Bitbucket System information Support window, when I expand the Application links, it's empty, so I'm wondering if that has anything to do with it.  If I do go to the Application links, it still shows up as connected.

Suggest an answer

Log in or Sign up to answer