Unable to start Bitbucket Server, with message function: not found
Symptoms
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
Cause
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>
Resolution
- Use the script without
sh
or callbash 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.