Unable to start Bitbucket Server, with message function: not found

お困りですか?

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

コミュニティに質問

症状

The following appears in the command line:

#sh start-bitbucket.sh

start-bitbucket.sh: 3: start-bitbucket.sh: function: not found
start-bitbucket.sh: 4: [: unexpected operator
start-bitbucket.sh: 7: start-bitbucket.sh: Syntax error: "}" unexpected

原因

When you type sh start-bitbucket.sh you are probably using dash or some other shell script that does not recognize the command function.

This could be checked by issuing:

$ which sh

$ ls -ltra <path/to/sh/returned/above> 

ソリューション

  • Use the script without sh or call bash start-bitbucket.sh instead, you should get it working as it will use bash in your environment.

Last modified on Mar 30, 2016

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

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