ERROR: There was an error creating the OAuth consumer key
![]()
I am running the Custom Setup for RRC. I cannot get past the In Step 5 "Setup user registry". I get the following error message:
There was an error creating the OAuth consumer key. The list of OAuth domains for the friend defined by "https://rrc_local:9443/rdm/rootservices" could not be retrieved. com.ibm.team.repository.common.TeamRepositoryException com.ibm.team.repository.service.internal.discovery.FriendsAdminRestService.createNewFriend(FriendsAdminRestService.java:132) com.ibm.team.repository.service.internal.discovery.FriendsAdminRestService.postNewFriend(FriendsAdminRestService.java:54) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:618) org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.invoke(ExportProxyServiceRecord.java:370) org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord.access$0(ExportProxyServiceRecord.java:356) org.eclipse.soda.sat.core.internal.record.ExportProxyServiceRecord$ExportedServiceInvocationHandler.invoke(ExportProxyServiceRecord.java:56) $Proxy30.postNewFriend(Unknown Source) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:79) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) java.lang.reflect.Method.invoke(Method.java:618) com.ibm.team.repository.servlet.AbstractTeamServerServlet.doModelledRestService(AbstractTeamServerServlet.java:571) com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest2(AbstractTeamServerServlet.java:1752) com.ibm.team.repository.servlet.AbstractTeamServerServlet.handleRequest(AbstractTeamServerServlet.java:1623) com.ibm.team.repository.servlet.AbstractTeamServerServlet.service(AbstractTeamServerServlet.java:1536) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.eclipse.equinox.http.registry.internal.ServletManager$ServletWrapper.service(ServletManager.java:180) org.eclipse.equinox.http.servlet.internal.ServletRegistration.handleRequest(ServletRegistration.java:90) org.eclipse.equinox.http.servlet.internal.ProxyServlet.processAlias(ProxyServlet.java:111) org.eclipse.equinox.http.servlet.internal.ProxyServlet.service(ProxyServlet.java:75) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.eclipse.equinox.servletbridge.BridgeServlet.service(BridgeServlet.java:121) com.ibm.team.repository.server.servletbridge.JazzServlet.service(JazzServlet.java:54) javax.servlet.http.HttpServlet.service(HttpServlet.java:803) org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269) org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188) org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210) org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174) org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117) org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685) java.lang.Thread.run(Thread.java:811) The consumer keys are being registered. I can see them when I access the com.ibm.team.repository.admin.configureOAuth. And a new one is created everytime I try again, but I keep getting the same error message. I tried to edit the friendsconfig.rdf from the \server\conf\rdm, but I do not have the SECRET phrase to enter in it (I only have the key). Any ideas? Thank you |
11 answers
![]()
I found two pages that seem to be related to this problem, but I don't know exactly what to do:
- https://jazz.net/downloads/jazz-foundation/milestones/1.0.0.1M2?p=news - https://jazz.net/jazz/web/projects/Jazz%20Foundation#action=com.ibm.team.workitem.viewWorkItem&id=86094 The log says it cannot load the OAuth keys from the rootservices, but that files does not contain anything aside the default content. Should it have anything else? When should it have been updated? Still investigating. Any help is appreciated. Thank you |
![]()
I thought that if I started from scratch the problem might be solved. So I started from scratch. I even uninstalled the JVM and upgraded it from v5 to v6. Uninstalled RRC and deleted the RRCS20 folder.
But I still got the same problem. I think I don't understand the problem entirely. Should the wizard register the newly created OAuth key inside the friends.rdf file? Does the problem lie on the fact that the rdf file is not being updated by the wizard? Updating the rdf file manually will solve the problem? Thank you |
![]() I thought that if I started from scratch the problem might be solved. So I started from scratch. I even uninstalled the JVM and upgraded it from v5 to v6. Uninstalled RRC and deleted the RRCS20 folder. I've been having the exact same problem on a fresh install of 2.0.0.2 - tried everything and can't get past the setup step. |
![]()
Too bad. I have found many people who have the same problem, but unfortunately noone has found the fix.
I'll post it here when I find something. There's gotta be a solution. Thanks for you reply |
![]() Too bad. I have found many people who have the same problem, but unfortunately noone has found the fix. I just had this problem. I was accessing the https:// URL from IE8 on 'localhost'. I then tried accessing the https:// address from a different machine using Firefox 3.6 (and added an exception for my Security Certificate error). Worked fine in that environment. |
![]()
Hi.
Thank you for your response. I tried some of that too. I had someone else access my computer using my IP and apparently it worked. The problem was that messed up the rootservices. Instead of having my hostname in the rootservices, it ended up having my IP address. For integration purposes, I need rootservices to have my hostname. The only way that I found to correct the rootservices problem was start the setup again. But that made me fall into the OAuth key problem again. Thank you |
![]()
Did you try changing the Host Name in the Jazz/Admin advance properties to the hostname, as well as the Public URI https://<hostname>:<port>/jazz
I have seen situations where if these are not correctly set there are some OAuth issues. If you are using Tomcat there is also the server.xml file in the conf directory that should be checked as well. |
![]()
Hi.
Thank you for your response. I checked the JazzAdmin page and the correct hostname was already defined. I can't tell why the correct hostname was in there, while the ip address was being shown in the rootservices. After I saw that, I decided to restart the setup from scratch. Now I'm back to the same OAuth key error, even if I try to delete the consumer keys from the Jazz Admin. Not sure this time deleting the consumer key is not making me get past the user setup registry. I'll keep trying. For now, the rootservices is blank. Thank you |
![]() I thought that if I started from scratch the problem might be solved. So I started from scratch. I even uninstalled the JVM and upgraded it from v5 to v6. Uninstalled RRC and deleted the RRCS20 folder. I've been having the exact same problem on a fresh install of 2.0.0.2 - tried everything and can't get past the setup step. I think I've found the problem!! It appears that the rdm server portion of RRC is being affected by a bug in java.net.URI, which causes any server name containing an underscore "_" to be incorrectly parsed. This bug was first discovered in Jazz 1.0 and it looks like they now use a different API call to parse their URIs but rdm must not. Looking at everyone's posts here it appears we all have server names like rrc_server or rrc_local. I just removed the underscore and RRC is now all happy!! |
![]()
That's great, Daffy. You really nailed it.
That underscore was the source of the problems. I edited the hosts file and reconfigured... Everything is working now. Thank you so much for sharing the information. I'm communicating this to Rational. They say they will create a TechNote about this problem. Thank you all to everyone who for interested in the problem, by looking at the post and/or replying. I'm sure this struggle will benefit others. Thank you Eduardo |
Your answer
Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.