External Hooks add-on and Stash 3.2

I've just updated to Stash 3.2 and the External Hooks add-on seems not be working properly. This seems to be caused by change directory structure in Stash 3.2 (repositories directory was moved, creating symlink in original location might be a hotfix)

2014-08-02 13:53:29,118 ERROR [AtlassianEvent::thread-7] petr.hlavka @13JQQZ1x833x2094x1, "POST /scm/test/repo1.git/git-receive-pack HTTP/1.0"
c.n.s.e.hook.ExternalPreReceiveHook Error running [/home/stash/hook-scripts/test.sh, ] in /home/stash/stash-home/data/repositories/81
java.io.IOException: Cannot run program "/home/stash/hook-scripts/test.sh" (in directory "/home/stash/stash-home/data/repositories/81"): error=2, No such file or directory

The test.sh file exists and it's executable. The /home/stash/stash-home/data/repositories/81 directory doesn't exists. Repo data is now in /home/stash/stash-home/shared/data/repositories/81.

Please, is this an add-on issue or have I something misconfigured?
Thank, Petr Hlavka.

1 answer

1 accepted

Hi Petr,

It sounds like you've run into a known incompatibility: https://github.com/ngsru/atlassian-external-hooks/issues/10

The author has indicated that it was fixed in version 1.3-9, which has been published on the Atlassian Marketplace. I'd try upgrading the add-on and seeing if you can reproduce the issue. If you have further problems I'd raise an issue on the Github repository above, the author seems to be very responsive.



Suggest an answer

Log in or Sign up to answer
Atlassian Community Anniversary

Happy Anniversary, Atlassian Community!

This community is celebrating its one-year anniversary and Atlassian co-founder Mike Cannon-Brookes has all the feels.

Read more
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

1,760 views 1 5
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you