By: Dalibor RaptorOS user 12 Feb 2021 at 3:12 p.m. CST

13 Responses
Dalibor RaptorOS gravatar
We're using the optional Oxd package selected in the Gluu Server installation and the Oxd Node.js library. ## Example code `const config = { https_extension: true, host: 'https://test.gluu.org', port: '80' };` `const oxd = require("oxd-node")(config);` `oxd.register_site({ op_host: 'https://test.gluu.org' }, function (err, response) { console.log('err', err, 'response', response) });` `test.gluu.org` is mapped to a VM IP address in `/etc/hosts` ## Expected behavior (response) no error ## Actual behavior (response) `"<html>\n<title>Error 404 - Not Found</title>\n<body style=\"font-family: Arial, Helvetica, sans-serif\">\n<link rel=\"shortcut icon\" href=\"/oxauth/servlet/favicon\" type=\"image/x-icon\">\n<center>\n<table>\n<tr>\n <td style=\"text-align: left;\">\n...`

By Arnab Dutta staff 15 Feb 2021 at 10:13 p.m. CST

Arnab Dutta gravatar
Hi Dalibor We do not support node.js library for oxd-4.2. Please use oxd swagger spec (link below) to generate javascript client which can be used with node.js application. https://raw.githubusercontent.com/GluuFederation/oxd/version_4.2.2/oxd-server/src/main/resources/swagger.yaml Regards, Arnab

By Dalibor RaptorOS user 17 Feb 2021 at 6:34 p.m. CST

Dalibor RaptorOS gravatar
Hi Arnab, Thank you for taking your time to reply to the ticket. ![](https://i.ibb.co/RNVMpnr/Screen-Shot-2021-02-18-at-12-54-33-AM.png) I tried to utilize your provided swagger docs, used the curl CLI for testing and it seems like the response is exactly the same (404 error) as when using the Oxd library. So the problem seems to be with the Gluu Server rather than the Node.js Oxd library. Please let me know if you got any other ideas to solve this problem. Thank you, Dalibor

By Arnab Dutta staff 18 Feb 2021 at 10:05 a.m. CST

Arnab Dutta gravatar
Hi Dalibor Could you check the following points: 1. oxd by default run on port `8443`. So please check is oxd is running using url : https://test.gluu.org:8443/health-check 2. Set `bind_ip_addresses: ['*']` in oxd configuration if you are accessing oxd from remote location. ref: https://gluu.org/docs/oxd/configuration/oxd-configuration/ 2. Check oxd logs in case there is any error. Regards, Arnab

By Dalibor RaptorOS user 18 Feb 2021 at 4:57 p.m. CST

Dalibor RaptorOS gravatar
I followed your steps and here are the results: ![](https://i.ibb.co/hVnYCSs/Screen-Shot-2021-02-18-at-11-27-34-PM.png) ![](https://i.ibb.co/5jscVXW/Screen-Shot-2021-02-18-at-11-34-04-PM.png) So it seems like when the health check gets called, the connection hangs for a while and then ends. Also, there's no errors in the oxd logs. Could you share your thoughts on that? Thank you, Dalibor

By Arnab Dutta staff 19 Feb 2021 at 1:03 a.m. CST

Arnab Dutta gravatar
Hi Dalibor, Please do the following. 1. Delete oxd log. 2. Restart oxd server. 3. Execute https://test.gluu.org:8443/health-check on the browser. 4. Share complete oxd log and oxd-server.yml Regards, Arnab

By Dalibor RaptorOS user 20 Feb 2021 at 4:14 p.m. CST

Dalibor RaptorOS gravatar
I followed your steps. [Here are the oxd-server.log and oxd-server.yml](https://drive.google.com/drive/folders/1bsP7LRCYriJSPfOrVEFvo0E53ynQLvv7?usp=sharing) Please let me know your thoughts. Thank you

By Dalibor RaptorOS user 23 Feb 2021 at 9:41 a.m. CST

Dalibor RaptorOS gravatar
Hi Arnab I provided information. I still need your assistance Thank you, Dalibor

By Arnab Dutta staff 24 Feb 2021 at 9:36 a.m. CST

Arnab Dutta gravatar
Dalibor, Logs show things are absolutely fine. What output you are getting on browser on executing health-check url? Let me know when you can attend a TeamViewer call if the issue persists. Regards Arnab

By Dalibor RaptorOS user 25 Feb 2021 at 11:08 a.m. CST

Dalibor RaptorOS gravatar
Here's the health check output in the browser: ![](https://i.ibb.co/TWwNCHx/image.png) Server curl output: ![](https://i.ibb.co/CbfLkVb/image.png) It would be best if we could do a call between 5pm-10pm UTC some weekday. Please let me know the exact details if that works for you. Thank you.

By Arnab Dutta staff 26 Feb 2021 at 12:30 a.m. CST

Arnab Dutta gravatar
Let schedule screen sharing session at 5pm UTC if possible.

By Dalibor RaptorOS user 26 Feb 2021 at 6:54 a.m. CST

Dalibor RaptorOS gravatar
Yeah, 5 pm UTC today is good for me Shall we use google meet or zoom? Please let me know Thank you

By Arnab Dutta staff 26 Feb 2021 at 9:18 a.m. CST

Arnab Dutta gravatar
Zoom will be good for screen share. Could you please send invitation. Regards Arnab

By Dalibor RaptorOS user 26 Feb 2021 at 10:19 a.m. CST

Dalibor RaptorOS gravatar
Yeah, please join the link at 5 pm UTC today ( 40 mins later from now) https://us05web.zoom.us/j/9738633173?pwd=UVhLdFhqYjF3U2pDK0VyVHhLVGNCQT09 Please let me know if you have any quesitons Thank you, Dalibor