Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Unable to log-in to my JIRA test environment

deirdrerodgers August 21, 2019

I created a test JIRA environment doing the below

 

1. Took a snapshot of my database server and launched it

2. Took a snapshot of my existing production JIRA server and launched it

3. Replicated my environment network/secgroups etc.

 

I am able reach my test environment on browser but when I try and log-in I am caught in a loop

 

I checked the atlassian-jira-security.log and the log-in authentication shows as successful

2019-08-21 12:10:20,645 http-nio-8080-exec-9 user1 730x67x1 - x.x.x.x /rest/gadget/1.0/login The user 'user1' has PASSED authentication.

 

The atlassian-jira.log however is showing the below error

 

2019-08-21 12:13:31,544 http-nio-8080-exec-23 WARN anonymous 733x85x1 - x.x.x.x /rest/analytics/1.0/publish/bulk [c.a.p.r.c.security.jersey.XsrfResourceFilter] Additional XSRF checks failed for request: https://jira.productionserver.blabla.com , origin: null , referrer: http://jiratestserver:8080/secure/Dashboard.jspa , credentials in request: false , allowed via CORS: false

 

 

Looks like the test server is referring the login to the prod server? and its failing with this CORS setting? anyone know what I should do?

1 answer

1 accepted

1 vote
Answer accepted
DPKJ
Community Champion
August 21, 2019

Two things,

  1. Have your changed settings for proxy etc in your <installation>/conf/server.xml file
    • Look for '<Connecter>' tag in this file and check for proxyPass, proxyName, scheme like values in it.
  2. Have you also cloned you HOME folder.
deirdrerodgers August 21, 2019

Hi DPK,

 

Thanks for the reply.

 

Yes to both questions but its still failing unfortunately

 

Thanks,

 

Deirdre

DPKJ
Community Champion
August 21, 2019

Look at this and validate again - https://confluence.atlassian.com/confkb/after-upgrading-confluence-you-are-unable-to-create-new-pages-or-spaces-785457379.html

 

Also don't forget to restart confluence after changing your `server.xml`.

deirdrerodgers August 21, 2019

Okay so my server.xml file on my test server shows

 


<Connector port="8080" maxThreads="150" minSpareThreads="25" connectionTimeout="20000" enableLookups="false"
maxHttpHeaderSize="8192" protocol="HTTP/1.1" useBodyEncodingForURI="true" redirectPort="8443"
acceptCount="100" disableUploadTimeout="true" bindOnInit="false" secure="true" scheme="https"
proxyName="jira.productionenvironment.com" proxyPort="443"/>


DPKJ
Community Champion
August 21, 2019

You need to remove

scheme="https" proxyName="jira.productionenvironment.com" proxyPort="443"

This tell Jira that your site url is "https://jira.productionenvironment.com", which is not correct for test instance.

deirdrerodgers August 21, 2019

I edited it to my new test server name for the ProxyName and I changed the port and it still doesnt work after a restart

DPKJ
Community Champion
August 21, 2019

Can you share settings?

deirdrerodgers August 21, 2019

fixed it! thank you very much for your help

DPKJ
Community Champion
August 21, 2019

oh! great.

Curzon Dax July 6, 2020

Would have been great if you'd shared your solution ...

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events