Redmine Authentication Failed

Bev Dellosa, geändert vor 5 Jahren.

Redmine Authentication Failed

Youngling Beiträge: 7 Beitrittsdatum: 21.12.18 Neueste Beiträge
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
thumbnail
Torsten Stolpmann, geändert vor 5 Jahren.

RE: Redmine Authentication Failed

Jedi Council Member Beiträge: 755 Beitrittsdatum: 12.02.09 Neueste Beiträge
Hi Bev,

I think that you have configured the wrong URL for your redmine instance (it should be the base URL of your installation):
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
Bev Dellosa, geändert vor 5 Jahren.

RE: Redmine Authentication Failed

Youngling Beiträge: 7 Beitrittsdatum: 21.12.18 Neueste Beiträge
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
thumbnail
Torsten Stolpmann, geändert vor 5 Jahren.

RE: Redmine Authentication Failed

Jedi Council Member Beiträge: 755 Beitrittsdatum: 12.02.09 Neueste Beiträge
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
Bev Dellosa, geändert vor 5 Jahren.

RE: Redmine Authentication Failed

Youngling Beiträge: 7 Beitrittsdatum: 21.12.18 Neueste Beiträge
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
thumbnail
Torsten Stolpmann, geändert vor 5 Jahren.

RE: Redmine Authentication Failed

Jedi Council Member Beiträge: 755 Beitrittsdatum: 12.02.09 Neueste Beiträge
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
Bev Dellosa, geändert vor 5 Jahren.

RE: Redmine Authentication Failed

Youngling Beiträge: 7 Beitrittsdatum: 21.12.18 Neueste Beiträge
Hi Torsten,

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

Regards,
Bev
thumbnail
Fabian Klaffke, geändert vor 5 Jahren.

RE: Redmine Authentication Failed (Antwort)

Padawan Beiträge: 92 Beitrittsdatum: 01.09.12 Neueste Beiträge
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
Bev Dellosa, geändert vor 5 Jahren.

RE: Redmine Authentication Failed

Youngling Beiträge: 7 Beitrittsdatum: 21.12.18 Neueste Beiträge
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
thumbnail
Fabian Klaffke, geändert vor 5 Jahren.

RE: Redmine Authentication Failed (Antwort)

Padawan Beiträge: 92 Beitrittsdatum: 01.09.12 Neueste Beiträge
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
Bev Dellosa, geändert vor 5 Jahren.

RE: Redmine Authentication Failed

Youngling Beiträge: 7 Beitrittsdatum: 21.12.18 Neueste Beiträge
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
thumbnail
Fabian Klaffke, geändert vor 5 Jahren.

RE: Redmine Authentication Failed

Padawan Beiträge: 92 Beitrittsdatum: 01.09.12 Neueste Beiträge
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