Hello,
when we try to visualize commits in bitbucket we get :
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 !
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Thank you @Nicolas Schmitz
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.