Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to connect #77

Closed
lostumbrellas opened this issue May 1, 2017 · 27 comments
Closed

Unable to connect #77

lostumbrellas opened this issue May 1, 2017 · 27 comments

Comments

@lostumbrellas
Copy link

@lostumbrellas lostumbrellas commented May 1, 2017

Unable to connect, and getting these errors in the log:

1/05/2017 2:16:33 PM Try to re-authenticate
1/05/2017 2:16:33 PM Request: https://xxxx.atlassian.net/rest/auth/1/session
1/05/2017 2:16:34 PM Response: Unauthorized - {"errorMessages":["Login failed"],"errors":{}}

Running version 2.0.1

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 1, 2017

Hmmm.... Not to be rude, but it sounds very much like you have entered a wrong username/email or password. Could you try to type both again?

@lostumbrellas
Copy link
Author

@lostumbrellas lostumbrellas commented May 1, 2017

Ha, I agree, sounds like that a lot. But sadly no, have triple checked the username and password.

I was wondering whether it was something to do with the introduction of a single Atlassian Accounts for all their products? https://confluence.atlassian.com/cloud/atlassian-account-for-users-873871199.html

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 1, 2017

I haven't heard or read about any changes in this regard when it comes down to the Jira REST API. On a daily basis, I use Jira from a self-hosted installation though, so I wouldn't be the first to experience hiccups like this. I'll try to create a cloud account and test it through.

@moorereason
Copy link

@moorereason moorereason commented May 3, 2017

I'm seeing similar behavior with JIRA Cloud, but after 30s it connects. Here's the HTTP flow:

> 00s  POST /rest/auth/1/session HTTP/1.1
< 00s  HTTP/1.1 500 Internal Server Error

> 00s  GET /rest/auth/1/session HTTP/1.1
< 00s  HTTP/1.1 401 Unauthorized

> 00s  POST /rest/auth/1/session HTTP/1.1
< 00s  HTTP/1.1 500 Internal Server Error

> 00s  GET /rest/auth/1/session HTTP/1.1
< 00s  HTTP/1.1 401 Unauthorized

> 00s  POST /rest/auth/1/session HTTP/1.1
< 00s  HTTP/1.1 500 Internal Server Error

> 30s  GET /rest/auth/1/session HTTP/1.1
< 30s  HTTP/1.1 200 OK
@cpjolly
Copy link

@cpjolly cpjolly commented May 16, 2017

We are also seeing the same issue from all our accounts for our Jira cloud instance. Have Atlassian perhaps changed the authentication requirements ?

5/16/2017 9:09:05 AM Request: https://our-account.atlassian.net/rest/auth/1/session
5/16/2017 9:09:05 AM Response: Unauthorized - {"errorMessages":["Login failed"],"errors":{}}
5/16/2017 9:09:05 AM Try to re-authenticate
5/16/2017 9:09:05 AM Request: https://our-account.atlassian.net/rest/auth/1/session
5/16/2017 9:09:05 AM Request: https://our-account.atlassian.net/rest/auth/1/session
5/16/2017 9:09:06 AM Response: Unauthorized - {"errorMessages":["Login failed"],"errors":{}}
5/16/2017 9:09:06 AM Request: https://our-account.atlassian.net/rest/auth/1/session
5/16/2017 9:09:06 AM Response: Unauthorized - {"errorMessages":["You are not authenticated. Authentication required to perform this operation."],"
5/16/2017 9:09:06 AM Try to re-authenticate
5/16/2017 9:09:06 AM Request: https://our-account.atlassian.net/rest/auth/1/session
5/16/2017 9:09:06 AM Response: Unauthorized - {"errorMessages":["Login failed"],"errors":{}}
5/16/2017 9:09:08 AM Response: Unauthorized - {"errorMessages":["You are not authenticated. Authentication required to perform this operation."],"
5/16/2017 9:09:08 AM Try to re-authenticate
5/16/2017 9:09:08 AM Request: https://our-account.atlassian.net/rest/auth/1/session
5/16/2017 9:09:08 AM Response: Unauthorized - {"errorMessages":["Login failed"],"errors":{}}

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 16, 2017

Sounds serious. I will look at this as soon as I can. In the meantime: If there are any developers using StopWatch, who has experienced this, please help me look into it, as my time is very limited at the moment. Just fetch the code and do a step-by-step trace through the JiraClient part. In addition run Fiddler at the same time to see the actual communication happening.

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 16, 2017

I have just tried to make a test Jira cloud site at Atlassian. And I can connect without any problems. Could you please try with the same test-site in your installed Jira StopWatch:

Base URL: https://testgehling2.atlassian.net
Username: carsten@gehling.dk
Password: Simple3ACL

Let me know it it works or not.

UPDATE: I've now closed the site above again, since it was only an 8-day trial.

@cpjolly
Copy link

@cpjolly cpjolly commented May 17, 2017

Hi Carsten,

Yes that works !!

My credentials still fail... I will try to create a test account with our Atlassian instance and see if that works.

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 17, 2017

@lostumbrellas @moorereason could you both try the same please?

@moorereason
Copy link

@moorereason moorereason commented May 17, 2017

It's all working fine today (with my own account and the test account above). I'm guessing Atlassian fixed something. ?

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 17, 2017

Yeah - based on your HTTP flow, it seems that they've got some temporal glitches. I'm glad that's all this was. Closing this issue.

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 17, 2017

@cpjolly please let me know about your experience with a new account.

@cpjolly
Copy link

@cpjolly cpjolly commented May 18, 2017

No matter what I tried, it doesn't work with our credentials and our Jira Cloud instance.

I've logged an issue with Atlassian because I think this is due to the problems they have been having with the Atlassian id SSO service and may not be directly related to Stop Watch

@MRowlandsECG
Copy link

@MRowlandsECG MRowlandsECG commented May 18, 2017

Hi Carsten,

Further to my earlier email to you I have tried your test instance and it works, so there is some issue with my Atlassian credentials. Also, others in our organisation can connect with StopWatch so it appears to be something to do with my credentials.

I'll raise an issue with Atlassian.

Thanks
Mark

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 18, 2017

@cpjolly:

I've logged an issue with Atlassian because I think this is due to the problems they have been having with the Atlassian id SSO service and may not be directly related to Stop Watch

I haven't heard about this - do you have any further info about it? A link to something from Atlassian perhaps?

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 18, 2017

@mark: Thank you for your input. As @cpjolly states, the problems probably originates within Atlassian. But I still would like to make sure that Jira StopWatch is lenient in regard to stuff like this. So I'll see if something can be changed in the components that communicate with the Jira API.

@lostumbrellas
Copy link
Author

@lostumbrellas lostumbrellas commented May 18, 2017

@carstengehling I know you've closed your test cloud account, but here's something I think is relevant. If I go to your login page (https://testgehling2.atlassian.net/login) the username/password form appears. If I go to to the equivalent URL for my cloud account (https://myaccount.atlassian.net/login) I'm redirected to https://id.atlassian.com/login. Atlassian has been gradually migrating accounts over to the Atlassian ID, so I'm wondering if there is something different in the authentication process for those accounts?

@lostumbrellas
Copy link
Author

@lostumbrellas lostumbrellas commented May 18, 2017

Looks like there is a problem with the API: https://jira.atlassian.com/browse/JRACLOUD-66793

@cpjolly
Copy link

@cpjolly cpjolly commented May 19, 2017

Yep - that fixed it !!!!!!!!!!!!!

  • Login to Jira
  • go to profile
  • see what your username name is
  • use that rather than email address

This is part of the roll-out of Atlassian id and SSO. The problem is Atlassian don't tell you when they've changed your Jira cloud instance - the first you know is when connections like this fail.

@MRowlandsECG
Copy link

@MRowlandsECG MRowlandsECG commented May 19, 2017

Thank you @lostumbrellas & @cpjolly, that's fixed it for me as well!

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 19, 2017

Well done guys, thank you very much! I will update the documentation to include this.

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 19, 2017

Documentation now updated - again thank you all for discovering this.

http://jirastopwatch.com/doc/

@rdewolfe
Copy link

@rdewolfe rdewolfe commented May 9, 2018

I'm getting a similar error, has anybody gotten this to work using API Tokens?

@MRowlandsECG
Copy link

@MRowlandsECG MRowlandsECG commented May 16, 2018

Hi Carsten,

Just to let you know that I continue to have issues with JiraStopwatch logins which require me to reset my password on a daily basis. As I mentioned in one of my earlier posts other users of the tool in my company do not experience this, so it looks like it is something to do with my login. I believe the issue may be related to my login being the site administrator as this is the only difference I can see between it and the other user logins that are working.

In any event, my question to you is, are you planning on implementing Jira API Tokens for this tool? It seems to me that implementing this may resolve this issue once and for all.

Regards,
Mark

@edgolub
Copy link

@edgolub edgolub commented Jan 1, 2019

I have no idea what my JIRA username is, can't find it in my profile. I know what my Nick Name is, as well as the Full Name set there. But I don't think that is the same thing? Where exactly do I find my JIRA username? Because I am using Atlassian ID for JIRA, and can't seem to login with my email and password.

Note: I resolved it, seems like I had to use https for the base URL and that worked.

@josesampergt
Copy link

@josesampergt josesampergt commented Apr 17, 2019

Hi Carsten, I am having the same issue with not being able to connect, this is reported by several users within the same cloud site, here is the log:

17-Apr-19 7:56:08 AM Request: https://telusglss.atlassian.net/rest/auth/1/session
17-Apr-19 7:56:09 AM Response: Unauthorized - {"errorMessages":["Login failed"],"errors":{}}
17-Apr-19 7:56:09 AM Try to re-authenticate
17-Apr-19 7:56:09 AM Request: https://telusglss.atlassian.net/rest/auth/1/session
17-Apr-19 7:56:09 AM Response: Unauthorized - {"errorMessages":["Login failed"],"errors":{}}
17-Apr-19 7:56:09 AM Request: https://telusglss.atlassian.net/rest/auth/1/session
17-Apr-19 7:56:10 AM Response: Unauthorized - {"errorMessages":["You are not authenticated. Authentication required to perform this operation."],"
17-Apr-19 7:56:10 AM Try to re-authenticate
17-Apr-19 7:56:10 AM Request: https://telusglss.atlassian.net/rest/auth/1/session
17-Apr-19 7:56:10 AM Response: Unauthorized - {"errorMessages":["Login failed"],"errors":{}}
17-Apr-19 7:56:33 AM Request: https://telusglss.atlassian.net/rest/auth/1/session
17-Apr-19 7:56:34 AM Response: Unauthorized - {"errorMessages":["You are not authenticated. Authentication required to perform this operation."],"
17-Apr-19 7:56:34 AM Try to re-authenticate

Did atlassian change something? can you please help us, thank you!

@carstengehling
Copy link
Collaborator

@carstengehling carstengehling commented May 4, 2019

Atlassian deprecated the authentication method, that Jira StopWatch used. I've just released a new version today containing a new way to authenticate, using an API token. Get it here https://github.com/carstengehling/jirastopwatch/releases/latest and try it out.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
8 participants