By: Doug Appleyard user 18 Sep 2017 at 10:02 a.m. CDT

5 Responses
Doug Appleyard gravatar
I am getting the following oxd errors when I try to register a client. Is there something wrong with my Gluu server setup? I can register successfully with a Gluu 3.0.2 server and oxd 3.0.1. Also, I can manually create a client with Gluu 3.1.0 and use mod_auth_openidc. Do I need to specify the client ID and secret in my registration request? Thanks 2017-09-18 10:37:10,606 DEBUG [org.xdi.oxd.server.service.SocketService] Start new SocketProcessor... 2017-09-18 10:37:10,607 TRACE [org.xdi.oxd.server.SocketProcessor] Socket processor handling... 2017-09-18 10:37:10,607 TRACE [org.xdi.oxd.common.CoreUtils] commandSize: -1, stringStorage: 2017-09-18 10:37:10,607 TRACE [org.xdi.oxd.common.CoreUtils] Parsed sizeString: 0626, commandSize: 626 2017-09-18 10:37:10,607 TRACE [org.xdi.oxd.common.CoreUtils] Read result: ReadResult{m_command='{"command":"register_site","params":{"authorization_redirect_uri":"https://client.example.com/index.php","op_host":"https://naatlgluu/","post_logout_redirect_uri":"https://client.example.com/logout.html","application_type":"web","response_types":["code"],"grant_types":["authorization_code"],"scope":["openid","uid","email","profile","naa_group"],"acr_values":[""],"client_name":null,"client_jwks_uri":"","client_token_endpoint_auth_method":"","client_request_uris":null,"client_logout_uris":null,"client_sector_identifier_uri":"","contacts":null,"ui_locales":null,"claims_locales":null,"client_id":null,"client_secret":null}}', m_leftString=''} 2017-09-18 10:37:10,607 TRACE [org.xdi.oxd.server.Processor] Command: {"command":"register_site","params":{"authorization_redirect_uri":"https://client.example.com/index.php","op_host":"https://naatlgluu/","post_logout_redirect_uri":"https://client.example.com/logout.html","application_type":"web","response_types":["code"],"grant_types":["authorization_code"],"scope":["openid","uid","email","profile","naa_group"],"acr_values":[""],"client_name":null,"client_jwks_uri":"","client_token_endpoint_auth_method":"","client_request_uris":null,"client_logout_uris":null,"client_sector_identifier_uri":"","contacts":null,"ui_locales":null,"claims_locales":null,"client_id":null,"client_secret":null}} 2017-09-18 10:37:10,608 INFO [org.xdi.oxd.server.op.RegisterSiteOperation] Creating site configuration ... 2017-09-18 10:37:10,608 TRACE [org.xdi.oxd.server.service.HttpService] Created TRUST_ALL client. 2017-09-18 10:37:15,639 ERROR [org.xdi.oxd.server.op.RegisterSiteOperation] ClientId: null, clientSecret: null 2017-09-18 10:37:15,639 ERROR [org.xdi.oxd.server.op.RegisterSiteOperation] Failed to register client for site. Details: java.lang.RuntimeException: Failed to register client for site. Details: at org.xdi.oxd.server.op.RegisterSiteOperation.registerClient(RegisterSiteOperation.java:230) at org.xdi.oxd.server.op.RegisterSiteOperation.persistSiteConfiguration(RegisterSiteOperation.java:184) at org.xdi.oxd.server.op.RegisterSiteOperation.execute(RegisterSiteOperation.java:60) at org.xdi.oxd.server.op.RegisterSiteOperation.execute(RegisterSiteOperation.java:37) at org.xdi.oxd.server.Processor.process(Processor.java:80) at org.xdi.oxd.server.Processor.process(Processor.java:55) at org.xdi.oxd.server.SocketProcessor.run(SocketProcessor.java:60) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) at java.lang.Thread.run(Thread.java:748) 2017-09-18 10:37:15,639 TRACE [org.xdi.oxd.server.Processor] Send back response: {"status":"error","data":{"error":"internal_error","error_description":"Unknown internal server error occurs."}} 2017-09-18 10:37:15,639 ERROR [org.xdi.oxd.server.SocketProcessor] Quit. Enable to process command.

By Michael Schwartz Account Admin 18 Sep 2017 at 10:36 a.m. CDT

Michael Schwartz gravatar
I think there could be an issue with using oxd 3.0 and Gluu Server 3.1. Yuriy can you confirm?

By Yuriy Zabrovarnyy staff 18 Sep 2017 at 11:35 a.m. CDT

Yuriy Zabrovarnyy gravatar
It's hard to say anything from that log. It seems underlying oxd 3.0 client was not able to parse response from Gluu Server 3.1. Would you be so kind to give your full `oxd-server.log` and `oxauth.log` files so I can try to reproduce it? Here is also our development version of oxd 3.1 which is fully compatible with CE 3.1: ``` https://ox.gluu.org/maven/org/xdi/oxd-server/3.1.0.Final/oxd-server-3.1.0.Final-distribution.zip ``` Thanks, Yuriy

By Michael Schwartz Account Admin 18 Sep 2017 at 11:37 a.m. CDT

Michael Schwartz gravatar
They will have to link to it... because community users can't upload files.

By Yuriy Zabrovarnyy staff 19 Sep 2017 at 11:35 a.m. CDT

Yuriy Zabrovarnyy gravatar
`oxauth.log` is not useful because server is running in INFO log level. Please change log level to TRACE and re-run scenario. Thanks in advance, Yuriy Z

By Doug Appleyard user 19 Sep 2017 at 2:58 p.m. CDT

Doug Appleyard gravatar
Hi, I re-installed Gluu 3.1.0 on another server, and I was able to successfully register a client using oxd. So you can close this ticket. Thanks