Back

Redmine Authentication Failed

Toggle
Redmine Authentication Failed
Answer
12/21/18 4:15 AM
Hi,

I am trying to integrate Klaros to Redmine but got stuck with a failing authentication to Redmine. It shows an 'Authentication failed (unknown name or password)' when I try to validate the url. The user I used to validate has an admin access to both Redmine and Klaros.

Redmine version: 3.4.1 stable
Klaros version: 4.9.7
Mylyn version: 2.8.2 stable

Any help will be highly appreciated.

Thank You,
Bev

Attachments:

0 (0 Votes)

RE: Redmine Authentication Failed
Answer
12/21/18 5:13 PM as a reply to Bev Dellosa.
Hi Bev,

I think that you have configured the wrong URL for your redmine instance (it should be the base URL of your installation):
12
2018-12-20 00:42:39: ERROR, de.verit.klaros.web.handler.GlobalExternalConnectionHandler, http-nio-18080-exec-1 Unable to connect to external server IM00001 at http://192.168.168.222/login
de.verit.klaros.exception.KlarosServiceException: net.sf.redmine_mylyn.core.RedmineStatusException: net.sf.redmine_mylyn.api.exception.RedmineApiHttpStatusException: Unexpected status code - 404 Not Found

Please change http://192.168.168.222/login to http://192.168.168.222 on the issue management configuration page.

Hope this helps, please let me know if this works for you.

Regards,
Torsten
0 (0 Votes)

RE: Redmine Authentication Failed
Answer
12/28/18 3:22 AM as a reply to Torsten Stolpmann.
Hi Torsten,

Thanks for taking the time to check this.
I changed the URL but it still failed to authenticate. Attached is the updated log file.

Regards,
Bev

Attachments:

0 (0 Votes)

RE: Redmine Authentication Failed
Answer
12/28/18 10:39 AM as a reply to Bev Dellosa.
Hi Bev,

this is caused by an error in the Redmine server (hence the 500 return code).

Please attach the redmine logs as well, as there is no further information available at the Klaros side.

Regards,

Torsten
0 (0 Votes)

RE: Redmine Authentication Failed
Answer
12/28/18 11:09 AM as a reply to Bev Dellosa.
Hi Torsten,

Kindly see attached file. Let me know if this is what you're lookiing for.
Btw, Klaros is installed in windows server while Redmine is in linux. Just letting you know in case it has any relevance to the issue.

Thank You,
Bev
0 (0 Votes)

RE: Redmine Authentication Failed
Answer
12/28/18 11:40 AM as a reply to Bev Dellosa.
Hi Bev,

Thanks, this is what I was looking for.

But this log is strange. I see the requests fom Klaros in the log (look for GET "/mylyn/..."), but all of them return 200 OK.

Is there a proxy web server involved here? I suspect that hese 500 Server Error responses do not orginate from Redmine directly.

In case of a proxy misconfiguration: Can you please add a trailing slash to the redmine base URL and see if it makes a difference?

Torsten
0 (0 Votes)

RE: Redmine Authentication Failed
Answer
1/2/19 3:08 AM as a reply to Torsten Stolpmann.
Hi Torsten,

There is no proxy server involved here. I also tried adding a trailing  slash but still got the same issue.

Regards,
Bev
0 (0 Votes)

RE: Redmine Authentication Failed
Answer
1/2/19 2:32 PM as a reply to Bev Dellosa.
Hi Bev,

have you entered a valid Redmine project name on the Klaros IMS configuration page (see attached screnshot)? The entries on this page represent links to single Redmine projects, not just to the redmine server itself.

Another often overlooked setting, which could prevent you from connecting to Redmine, is the remote REST access:

https://www.klaros-testmanagement.com/files/doc/html/User-Manual.Installation.html#User-Manual.Installation.IssueManagement.redmine.Redmine.Config

Regards,
Fabian
0 (0 Votes)

RE: Redmine Authentication Failed
Answer
1/2/19 2:30 PM as a reply to Fabian Klaffke.
Hi Fabian,

The 'REST web services' and 'Authentication required' options are both enabled.

As for the Project ID, I'm not sure if I got this correct because the screenshot on your help file does not match with the Redmine version we're using. I cannot find the 'Identifier' field the help file is pointing out so I used the 'Application Title' instead. See attached file.

Regards,
Bev
0 (0 Votes)

RE: Redmine Authentication Failed
Answer
1/2/19 3:02 PM as a reply to Bev Dellosa.
Hi Bev,

the screenshot you've provided shows the settings screen, but the project names are instead listed on the projects page (Administration/Projects):

http://www.redmine.org/projects/redmine/wiki/RedmineProjects

I've attached another screenshot of our Redmine test server that shows the project list.

Regards,
Fabian
0 (0 Votes)

RE: Redmine Authentication Failed
Answer
1/2/19 3:48 PM as a reply to Fabian Klaffke.
Hi Fabian,

You're right, I was looking at the wrong screen. emoticon
I changed the Project ID and it is working now! emoticon Thanks so much to you and to Torsten for being patient with me.

Best Regards,
Bev
0 (0 Votes)

RE: Redmine Authentication Failed
Answer
1/2/19 4:23 PM as a reply to Bev Dellosa.
Hi Bev,

thanks for the kind words! We're glad that it's working now.

Did you know that we also have a support page which covers frequently asked issues? We will update the section about IMS authentication errors (Support/Usage/I get an authentication error...) to clarify that a project name/id is mandatory for some issue trackers.

Be sure to check out this page if you run into any other issues, though!

Regards,
Fabian
0 (0 Votes)