Forums

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

Cant login to JIRA - Jira Self Hosted server

Incertint November 4, 2018

Hi, 

I have confluence and jira self hosted server (on the same server) .

I am only using confluence on a daily basis. Jira is only configured as a user dictionary. 

I've modified my confluence to https scheme with a certificate and everything is working well (changed ports etc).

After a few days of work on confluence when one of my users recevied an exception about permission after clicking the password recovery link he received in his email. 

From checking the confluence logs i saw there is a permission problem with Jira, when i tried to login to Jira i noticed i cant login as well.

Jira atlassian-jira-security.log shows the following:

2018-11-04 18:33:21,206 http-nio-8080-exec-4 anonymous 1113x141x1 - 192.168.1.60 /rest/gadget/1.0/login HttpSession created [1hqwhcl]
2018-11-04 18:33:21,219 http-nio-8080-exec-4 adminuser 1113x141x1 - 192.168.1.60 /rest/gadget/1.0/login The user 'adminuser' has PASSED authentication.
2018-11-04 18:33:21,305 http-nio-8080-exec-13 anonymous 1113x142x1 - 192.168.1.60 /secure/Dashboard.jspa HttpSession created [14r4rvx]
2018-11-04 18:34:39,259 ContainerBackgroundProcessor[StandardEngine[Catalina]] HttpSession [14r4rvx] destroyed for 'anonymous'
2018-11-04 18:34:39,260 ContainerBackgroundProcessor[StandardEngine[Catalina]] HttpSession [1hqwhcl] destroyed for 'adminuser'
2018-11-04 18:34:39,260 ContainerBackgroundProcessor[StandardEngine[Catalina]] HttpSession [v7y6vs] destroyed for 'anonymous'

 

UPDATE: It seems there is an issue with the cookies / sessions in JIRA and confluence. 

testing from EDGE browser seemed to work only if you mark the "remember me" option.

I can now login to the system but I encountered another issue with the Crowd connectivity between the confluence and the jira (user directory) 

Not sure how to solve that one yet. 

 

 

1 answer

0 votes
Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 5, 2018

What version of Jira are you using here?  And confluence?

It might also help to walk through this KB: Unable to login to JIRA applications

It explains some debug logging settings you can enable to see some more verbose log information about user logins in Jira.   By default the logging is not usually sensitive enough to provide you details about why a login failed in Jira.  But these debug packages could be helpful so that you can understand if it is an authorization or authentication failure and the KB can help you troubleshoot these kinds of login problems with Jira.

If you can't find any admin accounts that can login to Jira, then I would also suggest starting with the Retrieving the JIRA Administrator.

Incertint November 5, 2018

Hi, 

Since my confluence and jira are configured on the same server, Cookies are overwritten i think thats the main cause that it throws me back to the login screen unless i check the "remember me" option.

 

About the main problem: login failed to all my non-local users, the reason is that the confluence User Directory that is managed by Jira User Server was disconnected and had to be reconfigured. 

One of the problems is that atlassian (Jira) removed the Jira User Server page link and I cannot access it :(

the workaround is to type it in directly via url link: "http://<jira>:<port>/secure/admin/ConfigureCrowdServer.jspa"

and a Login screen pops again asking for jira adminstrator account, when i type my creds it pops another screen saying i need to have jira system adminstrator permissions to login. 

* I dont have another local administrator user in my jira server 

I am using a self hosted jira server version 7.2.13 and im stuck :(

 

Any suggestions ?

Andy Heinzer
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
November 6, 2018

First, I'd follow the Retrieving the JIRA Administrator.  It has steps for how you can create an user in Jira in the Internal Jira directory, and then give that account system admin rights (if you don't actually already have one).  I would recommend creating a username that does not exist in any other user directories in Jira to help make sure this is unique.

Once you do that, you can then login to Jira as an admin, and reconfigure this Jira user server settings.   When you setup Jira to be a user server, you have to specify the specific address/IP/range that the other application (in this case confluence) is going to be connecting to Jira from.   If you set this up to use a domain name like jira.example.com and the Jira site is not reachable at that address from Confluence, it could explain the login problems here.

You will probably also need to login again to Confluence as an admin in order to then change these settings.  If using the IP:port works, then that setting change is probably going to need to happen within both applications.

 

On a side note, if you find users are getting logged out of one application or the other just by visiting the other site, please check out this KB: User is constantly logged out of JIRA.  I suspect your applications are hitting this problem because of the way they are configured to use the same host.   This KB explains steps you can take to avoid this problem for both applications.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events