infinate redirect loop on stash setup

Currently running Stash 3.7.1.  I'm attempting to validate  Bitbucket Server 4.12  prior to an upgrade.  We have several scripts using the REST API and need to qualify those against 4.12. before we upgrade.

I have installed 4.12. into a new directory, and have created a new (empty) butbucket-home directory for purposes of the evaluation.  I have started 4.12 with the default internal database.  The server is up and running, and listening on a distinct port.

I am now unable to connect to the server to run the final setup due to a redirect loop. I have tried IE, Chrome and Firefox browses and get the same result on all 3.  I have cleared cookies, and all other browser data with no progress.

Will appreciate some guidance on this.

 

Michael

 

GET http://stash:8081/setup
Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8
HTTP/1.1 302 Found Redirect to: http://stash:8081/setup
Server: Apache-Coyote/1.1 X-AREQUESTID: @NSM4YUx1019x7131x0 Location: /setup Content-Length: 0 Date: Mon, 09 Jan 2017 16:59:41 GMT
GET http://stash:8081/setup
Upgrade-Insecure-Requests: 1 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.87 Safari/537.36 Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,*/*;q=0.8 Accept-Encoding: gzip, deflate, sdch Accept-Language: en-US,en;q=0.8
HTTP/1.1 302 Found Redirect to: http://stash:8081/setup
Server: Apache-Coyote/1.1 X-AREQUESTID: @NSM4YUx1019x7132x0 Location: /setup Content-Length: 0 Date: Mon, 09 Jan 2017 16:59:41 GMT

1 answer

1 accepted

Problem solved.  I use a bash script to set environment variables before launching Bitbucket server.  The script was setting CATALINA_HOME incorrectly which prevented the application from running correctly.

Removed the command that sets and exports CATALINA_HOME and the Bitbucket server started correctly and I was able to access the setup page.

 

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,933 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