Error message when viewing comits

Nicolas Schmitz May 23, 2018

Hello,

when we try to visualize commits in bitbucket we get : 

An error occurred

Something went wrong while trying to serve your request. Try reloading the page.

This error happen only of we visualise it with the base url (https://bitbucket.ens-lyon.fr) and not if accessed via the other url : http://atlassian.ens-lyon.fr:7990

In log, when error happens : 

 


2018-05-23 13:58:28,244 WARN [http-nio-7990-exec-30] appli @1Q4UO3Ix838x555127x0 1o6nn4j 140.77.250.162,140.77.48.183 "POST /rest/tags/latest/projects/ENSCOL/repos/appli/tags HTTP/1.1" c.a.p.r.c.s.j.XsrfResourceFilter Additional XSRF checks failed for request: http://atlassian.ens-lyon.fr:7990/rest/tags/latest/projects/ENSCOL/repos/appli/tags , origin: https://bitbucket.ens-lyon.fr , referrer: https://bitbucket.ens-lyon.fr/projects/ENSCOL/repos/appli/commits , credentials in request: true , allowed via CORS: false

2018-05-23 13:58:28,380 WARN [http-nio-7990-exec-29] appli @1Q4UO3Ix838x555129x0 1o6nn4j 140.77.250.162,140.77.48.183 "POST /rest/build-status/latest/commits/stats HTTP/1.1" c.a.p.r.c.s.j.XsrfResourceFilter Additional XSRF checks failed for request: http://atlassian.ens-lyon.fr:7990/rest/build-status/latest/commits/stats , origin: https://bitbucket.ens-lyon.fr , referrer: https://bitbucket.ens-lyon.fr/projects/ENSCOL/repos/appli/commits , credentials in request: true , allowed via CORS: false
2018-05-23 13:58:28,748 WARN [http-nio-7990-exec-14] appli @1Q4UO3Ix838x555131x0 1o6nn4j 140.77.250.162,140.77.48.183 "POST /rest/analytics/1.0/publish/bulk HTTP/1.1" c.a.p.r.c.s.j.XsrfResourceFilter Additional XSRF checks failed for request: http://atlassian.ens-lyon.fr:7990/rest/analytics/1.0/publish/bulk , origin: https://bitbucket.ens-lyon.fr , referrer: https://bitbucket.ens-lyon.fr/projects/ENSCOL/repos/appli/commits , credentials in request: true , allowed via CORS: false

 

You will find the support.zip attached. 

 

Thank you very much in advance for any advice !

 

 

4 answers

2 accepted

1 vote
Answer accepted
Nicolas Schmitz May 24, 2018

Hi,

Thank you very much for your help. I've added : 

proxyName=bitbucket.ens-lyon.fr
proxyPort=443
scheme=https

To my shared/bitbucket.properties file, but still I have the same error :-(

I must miss something, but what ?

Thx again.

Prasanth
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 24, 2018

Hi Nicolas

Since you are trying to add proxy details to bitbucket.properties, I assume that you are running Bitbucket server version 5.0+. If that's the case, you need to add below to bitbucket.properties. 

server.secure=true
server.scheme=https
server.proxy-port=443
server.proxy-name=bitbucket.ens-lyon.fr

These are corresponding entries for connector configuration in the server.xml of 4.0+ version of Bitbucket.

Regards,

Prasanth - Atlassian

Like rshaltry likes this
Nicolas Schmitz May 25, 2018

Thank you :-) I didn't see the server.secure in documentation, maybe it should be updated ?

Anyway it worked so thank you very much.

Nicolas

1 vote
Answer accepted
Prasanth
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 24, 2018

Hi Nicolas

It looks like the error you have provided from the logs is related the behavior mentioned in the below knowledge base article

If you are running Bitbucket version 4.x , need to make sure you have added the proxy configuration in server.xml and if it is 5.0+ , update <BITBUCKET_HOME>/shared/bitbucket.properties with proxy details as mentioned in above mentioned knowledge base article.

Let us know how it goes.

Regards,

Prasanth - Atlassian

0 votes
Matis Aas September 29, 2020

Thank you @Nicolas Schmitz

@Prasanth 

You saved my life, i wasted like 10 hours~ debugging this. Going through ports, proxy settings, firewall settings etc. Changing and trying basically everything and now i stumbled upon this post. Googled every error i got and it lead to swamp every time. 
This should be highlighted somewhere or added to installation. I haven't had the need to set up another Bitbucket for a long time and was completely clueless.

Matis

0 votes
jeschb February 5, 2020

Hello friends.

@Prasanth ´s answer works fine! 👍

In my case properties is in this path:

/data/atlassian/application-data/bitbucket/shared/bitbucket.properties

And tha entire file is:

#>*******************************************************
#> Migrated to database at jdbc:postgresql://127.0.0.1:5432/bitbucket?targetServerType=master
#> Updated on 2020-01-09T21:33:16.709Z
#>*******************************************************
jdbc.driver=org.postgresql.Driver
jdbc.url=jdbc:postgresql://127.0.0.1:5432/bitbucket?targetServerType=master
jdbc.user=bitbucketuser
jdbc.password=bitbucketdbpassword
#
server.secure=true
server.scheme=https
server.proxy-port=443
server.proxy-name=10.133.2.210

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events