Bitbucket 4.6 needs set-bitbucket-home.sh and set-bitbucket-user.sh#157
Bitbucket 4.6 needs set-bitbucket-home.sh and set-bitbucket-user.sh#157linc01n merged 1 commit intobflad:masterfrom
Conversation
|
This is very similar to my commit 78037c1 |
|
Going to release it tonight. I need to go to work now. |
|
@linc01n Cool, thanks! |
|
@linc01n I've converged a clean instance and it seems my patch isn't enough... |
|
The reason is in this line (start-search.sh): start-search.sh is called from start-bitbucket.sh. start-bitbucket.sh is called by the init script: So PRGDIR is ./. We can workaround by running $BASE/bin/start-bitbucket.sh instead of ./start-bitbucket.sh in the init script. |
The setup scripts in $BITBUCKET_HOME/bin were refactored and now they call set-bitbucket-home.sh to set BITBUCKET_HOME and set-bitbucket-user.sh to set BITBUCKET_USER instead of user.sh.
Without this patch, a Bitbucket instance starts up under root. A bundled Elasticsearch instance can't run as root and fails to start. That's the reason code search doesn't work. You get behaviour like described here: https://jira.atlassian.com/browse/BSERV-8763 (Search is currently unavailable)
We need to have $BITBUCKET_HOME/bin/set-bitbucket-home.sh and $BITBUCKET_HOME/bin/set-bitbucket-user.sh instead of $BITBUCKET_HOME/bin/user.sh for Bitbucket 4.6.0 and higher.
I tested the change with Bitbucket 4.6.2.
Fixes #156
@linc01n @bflad Please have a look