Stash Upgrade Fails with 'Permission Denied' Error

Troubleshooting Installation

このページの内容

お困りですか?

アトラシアン コミュニティをご利用ください。

コミュニティに質問

症状

Stash upgrade fails with following error reported in the logs:

2012-12-06 01:19:11,743 ERROR [main]  c.a.s.i.s.g.v.PerlBinaryValidation Error validating Perl
com.atlassian.stash.exception.ServerException: An error occurred while 
executing an external process: '/usr/local/git/bin/git commit -m 
Initial' exited with code 1 saying: fatal: cannot exec 
'.git/hooks/pre-commit': Permission denied          
Perl is already installed on the server.

原因

There is a permission mismatch between the user which is running Stash and the user which owns the Stash home directory.  

ソリューション

  1. Ensure that the user which is running Stash owns the home directory (and its contents).
  2. If you are still running into this problem, set the following flag in your stash-config.properties in your Stash home directory. The file will need to be created, if it does not exist already:

    plugin.stash-scm-git.perl.validation.enabled=false
最終更新日: 2016 年 2 月 26 日

この内容はお役に立ちましたか?

はい
いいえ
この記事についてのフィードバックを送信する
Powered by Confluence and Scroll Viewport.