By: Astrum Neun user 10 Jun 2016 at 11:56 a.m. CDT

8 Responses
Astrum Neun gravatar
Hello, I am trying to configure and launch the oxd server for our Wordpress website using the GLUU SSO plugin [2.4.3] but I am getting the following error while starting OXD: CONF=./../conf/oxd-conf.json 2016-06-10 08:57:08,838 INFO [org.xdi.oxd.server.ServerLauncher] Starting... 2016-06-10 08:57:09,928 TRACE [org.xdi.oxd.server.service.ConfigurationService] Try to load configuration from system property: oxd.server.config, value: ./../conf/oxd-conf.json 2016-06-10 08:57:10,399 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration loaded successfully from system property: oxd.server.config. 2016-06-10 08:57:10,399 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration: Configuration{port=8099, timeOutInSeconds=0, opHost=https://auth.boldgroup.int/, localhostOnly=true, licenseServerEndpoint=, licenseId=} 2016-06-10 08:57:10,590 INFO [org.xdi.oxd.server.service.ConfigurationService] Configuration directory: ./../conf 2016-06-10 08:57:10,625 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: oxd-default-site-config.json 2016-06-10 08:57:10,845 ERROR [org.xdi.oxd.server.license.LicenseUpdateService] Failed to start LicenseUpdateService. Configuration licenseId or licenseServerEndpoint is empty. 2016-06-10 08:57:10,850 DEBUG [org.xdi.oxd.server.license.LicenseService] licenseChanged: false 2016-06-10 08:57:10,850 DEBUG [org.xdi.oxd.server.license.LicenseService] License file location: /home/dev/boldgroup.com/public_html/oxd-server-2.4.3-SNAPSHOT-distribution/bin/.oxd-license 2016-06-10 08:57:10,851 ERROR [org.xdi.oxd.server.license.LicenseFile] No content to map to Object due to end of input java.io.EOFException: No content to map to Object due to end of input at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2775) at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2718) at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1909) at org.xdi.oxd.server.license.LicenseFile.create(LicenseFile.java:46) at org.xdi.oxd.server.license.LicenseService.loadLicenseFile(LicenseService.java:132) at org.xdi.oxd.server.license.LicenseService.validate(LicenseService.java:73) at org.xdi.oxd.server.license.LicenseService.<init>(LicenseService.java:56) at org.xdi.oxd.server.service.SocketService.listenSocket(SocketService.java:58) at org.xdi.oxd.server.ServerLauncher.startOxd(ServerLauncher.java:66) at org.xdi.oxd.server.ServerLauncher.start(ServerLauncher.java:58) at org.xdi.oxd.server.ServerLauncher.main(ServerLauncher.java:48) 2016-06-10 08:57:10,953 ERROR [org.xdi.oxd.server.service.SocketService] Could not listen on port: 8099. 2016-06-10 08:57:10,954 ERROR [org.xdi.oxd.server.ServerLauncher] Failed to start oxd server. java.net.BindException: Address already in use at java.net.PlainSocketImpl.socketBind(Native Method) at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387) at java.net.ServerSocket.bind(ServerSocket.java:375) at java.net.ServerSocket.<init>(ServerSocket.java:237) at org.xdi.oxd.server.service.SocketService.listenSocket(SocketService.java:65) at org.xdi.oxd.server.ServerLauncher.startOxd(ServerLauncher.java:66) at org.xdi.oxd.server.ServerLauncher.start(ServerLauncher.java:58) at org.xdi.oxd.server.ServerLauncher.main(ServerLauncher.java:48) Can someone point me in the right direction with this issue?

By William Lowe user 10 Jun 2016 at 12:02 p.m. CDT

William Lowe gravatar
Hi Astrum, The main oxd developer is on holiday until next week. We'll get back to you then. Thanks for your patience. Will

By Yuriy Zabrovarnyy staff 10 Jun 2016 at 12:33 p.m. CDT

Yuriy Zabrovarnyy gravatar
Hi Astrum, Logs pretty clearly says: ``` Failed to start oxd server. java.net.BindException: Address already in use at 8099 ``` 8099 port is in use on PC where you starting oxd server. Please release it or otherwise provide another port which is not in use. Thanks, Yuriy

By Astrum Neun user 13 Jun 2016 at 11:07 a.m. CDT

Astrum Neun gravatar
Hi Yuriy, Changed the port and now I am getting this error: 2016-06-13 09:58:56,378 TRACE [org.xdi.oxd.server.service.ConfigurationService] Try to load configuration from system property: oxd.server.config, value: ./../conf/oxd-conf.json 2016-06-13 09:58:56,572 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration loaded successfully from system property: oxd.server.config. 2016-06-13 09:58:56,573 TRACE [org.xdi.oxd.server.service.ConfigurationService] Configuration: Configuration{port=7000, timeOutInSeconds=0, opHost=https://auth.boldgroup.int/, localhostOnly=true, licenseServerEndpoint=, licenseId=} 2016-06-13 09:58:56,590 INFO [org.xdi.oxd.server.service.ConfigurationService] Configuration directory: ./../conf 2016-06-13 09:58:56,593 TRACE [org.xdi.oxd.server.service.SiteConfigurationService] Loading site file name: oxd-default-site-config.json 2016-06-13 09:58:56,676 ERROR [org.xdi.oxd.server.license.LicenseUpdateService] Failed to start LicenseUpdateService. Configuration licenseId or licenseServerEndpoint is empty. 2016-06-13 09:58:56,678 DEBUG [org.xdi.oxd.server.license.LicenseService] licenseChanged: false 2016-06-13 09:58:56,678 DEBUG [org.xdi.oxd.server.license.LicenseService] License file location: /home/dev/boldgroup.com/public_html/oxd-server-2.4.3-SNAPSHOT-distribution/bin/.oxd-license 2016-06-13 09:58:56,679 ERROR [org.xdi.oxd.server.license.LicenseFile] No content to map to Object due to end of input java.io.EOFException: No content to map to Object due to end of input at org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2775) at org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2718) at org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1909) at org.xdi.oxd.server.license.LicenseFile.create(LicenseFile.java:46) at org.xdi.oxd.server.license.LicenseService.loadLicenseFile(LicenseService.java:132) at org.xdi.oxd.server.license.LicenseService.validate(LicenseService.java:73) at org.xdi.oxd.server.license.LicenseService.<init>(LicenseService.java:56) at org.xdi.oxd.server.service.SocketService.listenSocket(SocketService.java:58) at org.xdi.oxd.server.ServerLauncher.startOxd(ServerLauncher.java:66) at org.xdi.oxd.server.ServerLauncher.start(ServerLauncher.java:58) at org.xdi.oxd.server.ServerLauncher.main(ServerLauncher.java:48) 2016-06-13 09:58:56,697 INFO [org.xdi.oxd.server.service.SocketService] Server socket is bound to port: 7000, with timeout: 0 seconds. Start listening for notifications

By Yuriy Zabrovarnyy staff 13 Jun 2016 at 4:16 p.m. CDT

Yuriy Zabrovarnyy gravatar
Astrum, From logs I can see that oxd is started successfully ``` Server socket is bound to port: 7000, with timeout: 0 seconds. Start listening for notifications ``` There is something with your license at location ``` /home/dev/boldgroup.com/public_html/oxd-server-2.4.3-SNAPSHOT-distribution/bin/.oxd-license ``` Did you buy valid license ? It seems content of that file is not license. It makes oxd Server to fallback to free mode (delaying response on 0.5 seconds for each command). Otherwise server is fully operational.

By Astrum Neun user 13 Jun 2016 at 4:20 p.m. CDT

Astrum Neun gravatar
Do I need to buy a license, where can I buy one? I looked at all of the docs and there is no mention of that. Here are the instruction from the Gluu SSO 2.4.3: Instructions to Install oxd server NOTE: The oxd server should be installed on the same server as your Wordpress site. It is recommended that the oxd server listen only on the localhost interface, so only your local applications can reach its API's. Extract and copy in your DMZ Server. Download the latest oxd-server package for Centos or Ubuntu. See oxd docs for more info. If you are installing an .rpm or .deb, make sure you have Java in your server. Edit oxd-conf.json in the conf directory to specify the port on which it will run, and specify the hostname of the OpenID Connect provider. Open the command line and navigate to the extracted folder in the bin directory. For Linux environment, run sh oxd-start.sh & For Windows environment, run oxd-start.bat After the server starts, set the port number and your email in this page and click Next.

By William Lowe user 13 Jun 2016 at 4:25 p.m. CDT

William Lowe gravatar
We haven't started selling licenses yet Astrum, but the free version should work for you. It simply has a delay of 0.5 seconds on transactions.

By Astrum Neun user 22 Jun 2016 at 4:37 p.m. CDT

Astrum Neun gravatar
Thank you, it works!

By William Lowe user 22 Jun 2016 at 4:43 p.m. CDT

William Lowe gravatar
Yay! Great to hear. If you're interested in a license to remove the transaction or thread limitations, feel free to [schedule a call with us](http://gluu.org/booking). Let us know if we can be of additional help.