Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Bitbucket Server starts up but no user can login and it will not connect/load from another computer

Lee Goldsmith June 26, 2018

Bitbucket Server starts up but no user can login and it will not connect/load from another computer

  • Atlassian Bitbucket v5.11.1
  • Windows Server 2008 R2
  • Chrome, IE, FireFox, Edge, Safari

 

Nothing has changed (that I am aware of) on my server, and all of a sudden no one can login to Bitbucket. 

When going to http://<domain>:7990 from another computer (which used to work) the browser just hangs and nothing happens - the login page doesn't even load.

Looking at the network tab of the browser, there is a 302 status on the "j_atl_security_check" and "localhost" calls, but the call to the "dashboard" is stuck on pending when the "login button" is pressed.

"j_atl..." post:

Request URL:http://localhost:7990/j_atl_security_check

Request Method:POST

Status Code:302

Remote Address:[::1]:7990

Referrer Policy:no-referrer-when-downgrade

Response Headersview source

Cache-Control:private, max-age=0, no-cache

Content-Length:0

Date:Tue, 26 Jun 2018 15:17:26 GMT

Expires:Thu, 01 Jan 1970 00:00:00 GMT

Location:http://localhost:7990

Set-Cookie:_atl_bitbucket_remember_me=YTAwZjhiNjlhNTMxZWQ1Zjk3NDU5M2I4OWQ2MmExZmRlZTZmNTNmODozNmE0NmMxNzY3OGJhY2EzMmRmNzFhMmM1Yzc0NWM0ZWE0ZDIyMzM4; Max-Age=2592000; Expires=Thu, 26-Jul-2018 15:17:26 GMT; Path=/; HttpOnly

X-AREQUESTID:@1VEN62Ix977x151x4

X-ASEN:SEN-9367972

X-ASESSIONID:xfaz1p

Request Headersview source

Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8

Accept-Encoding:gzip, deflate, br

Accept-Language:en-GB,en-US;q=0.8,en;q=0.6

Cache-Control:max-age=0

Connection:keep-alive

Content-Length:111

Content-Type:application/x-www-form-urlencoded

Cookie:atl.xsrf.token=8; atlassian.bamboo.dashboard.tab.selected=allPlansTab; JSESSIONID=6; BITBUCKETSESSIONID=B

Host:localhost:7990

Origin:http://localhost:7990

Referer:http://localhost:7990/login?nextUrl=%2Fdashboard

Upgrade-Insecure-Requests:1

User-Agent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

Form Dataview sourceview URL encoded

j_username:

j_password:

_atl_remember_me:on

queryString:nextUrl=%2Fdashboard

submit:Log in

"locahost" get:

Request URL:http://localhost:7990/

Request Method:GET

Status Code:302

Remote Address:[::1]:7990

Referrer Policy:no-referrer-when-downgrade

Response Headersview source

Cache-Control:no-cache

Cache-Control:no-store

Content-Language:en-GB

Content-Length:0

Date:Tue, 26 Jun 2018 15:17:26 GMT

Expires:Thu, 01 Jan 1970 00:00:00 GMT

Location:http://localhost:7990/dashboard

Pragma:no-cache

X-AREQUESTID:@1VEN62Ix977x152x4

X-ASEN:SEN-9367972

X-ASESSIONID:xfaz1p

X-AUSERID:1

X-AUSERNAME:

x-content-type-options:nosniff

x-frame-options:SAMEORIGIN

x-xss-protection:1; mode=block

Request Headersview source

Accept:text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8

Accept-Encoding:gzip, deflate, br

Accept-Language:en-GB,en-US;q=0.8,en;q=0.6

Cache-Control:max-age=0

Connection:keep-alive

Cookie:atl.xsrf.token=8; atlassian.bamboo.dashboard.tab.selected=allPlansTab; JSESSIONID=6; BITBUCKETSESSIONID=B; _atl_bitbucket_remember_me=YTAwZjhiNjlhNTMxZWQ1Zjk3NDU5M2I4OWQ2MmExZmRlZTZmNTNmODozNmE0NmMxNzY3OGJhY2EzMmRmNzFhMmM1Yzc0NWM0ZWE0ZDIyMzM4

Host:localhost:7990

Referer:http://localhost:7990/login?nextUrl=%2Fdashboard

Upgrade-Insecure-Requests:1

User-Agent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

"dashboard" pending:

Referer:http://localhost:7990/login?nextUrl=%2Fdashboard

User-Agent:Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36

After starting the service and finishing the initialisation 9/10 times it will not redirect to the login page either.

I am also running Bamboo on this server which is having issues when navigating to the admin pages, but has no issues logging in or creating plans etc.

 **EDIT**
Forgot to add... SourceTree can pull and push with no issues to the server!
**/EDIT**

Thanks in advance for any help!

1 answer

0 votes
Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 27, 2018

Hi @Lee Goldsmith,

It is very likely that this is caused by either a proxy Bitbucket Server configuration issue.

 

Which proxy are you using?

 

Also have a look at the Proxying and securing Bitbucket Server and check the current settings in the $BITBUCKET_HOME/shared/bitbucket.properties file.

 

Cheers,

Caterina - Atlassian

Lee Goldsmith June 27, 2018

Hey @Caterina Curti,

 

The server is sitting behind the proxy, as are all the computers trying to connect to it.

Nothing has changed in terms of proxy in the 18 months I have been running it previous to this happening.

I started on 4.13 then when that stopped working I thought maybe it was a compatibility issue with the latest Chrome or Java or something, so I upgraded to 5.11 from there, but the same issue remains.

 

I didn't actually have a  bitbucket.properties file so I created one just now, and the issues are still occurring:

  • Bitbucket will not redirect once "set up" has finished on the start of the service
  • When I can get to the login page no one can log in
  • No one can connect to server when not on RDP but still behind the proxy
  • Sourcetree is pushing and pull just fine

Any ideas would be amazing!!

thanks,

Lee

Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 27, 2018

Hey Lee,

It still seems to be a proxy issue.

Do you have more details about 4.13 stopping to work? Did anything change in the network when that happened?

 

Can you share the details of the proxy, its configuration and the bitbucket.properties file?

 

Caterina - Atlassian

Lee Goldsmith June 28, 2018

Hey Caterina,

 

Thanks again for your feedback, I have spoken with the network guys and they said this definitely sits behind the proxy.

I am confused as to why you think it might be the network though as the main issue is that I can't log in on localhost even.

As said also, Bamboo is working fine (in terms of logging in and connecting via another computer) but it's admin pages won't load, they just hang - also on localhost of the server.

All calls in the network tab are to localhost.

The properties file looks like this:

server.context-path=/
server.port=7990
server.redirect-port=8443
server.compression.enabled=true
server.compression.mime-types=text/css,text/html,text/javascript,text/json,text/plain,text/xml,text/x-javascript,\application/javascript,application/json,application/x-javascript,application/vnd.git-lfs+json
server.connection-timeout=20000
server.session.cookie.http-only=true

 

This is very confusing!
I really appreciate your time on this one!

Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 29, 2018

Hey @Lee Goldsmith,

Should we try to get back to the default settings used by Bitbucket Server and remove all of the server.* properties above?

 

After doing that, I would try to connect to Bitbucket Server using the default port on:

- http://localhost:7990

 

Can you also check what is shown in the $BITBUCKET_HOME/log/atlassian-bitbucket-access.log and the $BITBUCKET_HOME/log/atlassian-bitbucket.log?

 

The reason why I'm thinking about a proxy issue is because of the redirect from the login to the dashboard page (I see that you already noticed the "302 redirect" status code).

 

Regarding Bamboo, can you ask in the Bamboo section of community and share the link here so that I can follow along?

Are Bitbucket Server and Bamboo on the same server?

 

No worries, let's try to get this fixed.

 

Caterina - Atlassian

Lee Goldsmith July 9, 2018

Hi @Caterina Curti,

 

I have spent the last week talking with my network team and they are telling me that the server is sitting behind the proxy 100% and therefore isn't on it.

 

I emptied the properties file as those server properties were the only ones in the file, and there has been no change.

 

I am able to load the log in screen for BitBucket from Safari, but not from Chrome but can't log in still either way. And I still can't log in when connected to the server via RDC.

 

Yes BitBucket and Bamboo are running on the same server, which is why I am wondering if it is related, as although I can log in to Bamboo I can't go to any of the admin pages.

I can also connect to Bamboo via Chrome on my laptop.

 

The log is showing that there are connections being made to BitBucket via SourceTree on my laptop and my colleagues as well...and if I push something they can pull it with no issue, but none of us can sign in to the web ui.

 

Any further thoughts?

Caterina Curti
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
July 10, 2018

Hey @Lee Goldsmith,

Another thing we can check is if there are any Single Sign On add ons interfering with this.

Are you aware of any SSO add ons being installed? Or maybe the bundled SAML SSO feature (only available for Data Center licenses) is enabled?

 

To check for installed add ons, you can browse to the $BITBUCKET_HOME/shared/plugins/installed-plugins directory.

Feel free to share the list here if you want us to review it for you!

 

Caterina

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events