By: Mohan Venkataramana user 27 Feb 2019 at 1:24 p.m. CST

4 Responses
Mohan Venkataramana gravatar
I accidentally deleted the numerical entry for "id =" in the demosite.cfg file. Since then, I am unable to run the demosite.py program, it is resulting in the error: python demosite.py Traceback (most recent call last): File "demosite.py", line 14, in <module> oxc.register_site() File "/home/vagrant/.local/lib/python2.7/site-packages/oxdpython/client.py", line 110, in register_site raise OxdServerError(response['data']) oxdpython.exceptions.OxdServerError: oxd Server Error: internal_error Unknown internal server error occurs. I replaced that line with id = 1, and the python demosite.py started, but failed the authentication step. How do I fix this problem? Thanks in advance. Mohan.

By Yuriy Zabrovarnyy staff 27 Feb 2019 at 1:48 p.m. CST

Yuriy Zabrovarnyy gravatar
@Mustafa.Baser would you please help?

By Yuriy Zabrovarnyy staff 27 Feb 2019 at 2:03 p.m. CST

Yuriy Zabrovarnyy gravatar
As quick idea you can: 1. try to substitute `oxd_id` from `oxd-server.log` file 2. or otherwise open oxd database and try it one by one (hopefully you don't have many of them there) https://www.gluu.org/docs/oxd/3.1.4/faq/#how-can-i-view-data-inside-oxd-database-manually-without-oxd-server Thanks, Yuriy Z

By Mohan Venkataramana user 28 Feb 2019 at 6:31 p.m. CST

Mohan Venkataramana gravatar
Thanks Yuriy. I tried your suggestions. It did not work. The problem was that when I entered the values in the demosite.cfg, I had incorrectly used https instead of http. I did find out the id values based on your suggestions, but when I used that id value, the program hung based on the original incorrect values stored in the internal database and ignored the updated values in the configuration file altogether. It is quite non intuitive. I also tried editing the values in the database but it was very challenging as the field was a very long string and impossible to edit. Almost giving up, I deleted the entire record and reran the code, thinking may be the system will reset itself, But this time it was giving an error. The error I encountered was: Traceback (most recent call last): File "demosite.py", line 14, in <module> oxc.register_site() File "/usr/lib/python2.7/site-packages/oxdpython/client.py", line 110, in register_site raise OxdServerError(response['data']) oxdpython.exceptions.OxdServerError: oxd Server Error: internal_error Unknown internal server error occurs. I tried to uninstall and reinstall the oxd-server and ensuring that the database was completely removed and restarted, still I am getting the same error. Next, I tried to start from scratch, and set up a complete oxd server from start in a completely different machine, followed the recommendations in the fresh machine, and I am getting the same error. Not sure what the right steps are. It seems like if the user made any mistake setting up the initial configuration file, that error seems to persist and there is no way to recover the system short of removing the entire server and reinstalling from scratch. The database seems to persist the wrong data and ignores any changes made to the configuration file. Perhaps there is a better way I am missing here. Could you let me know what I am doing wrong or is the system badly designed? Thanks for your help. Mohan.

By Mustafa Baser staff 10 Mar 2019 at 2:14 p.m. CDT

Mustafa Baser gravatar
Hi, Sorry, I missed this ticked. oxdpython won't work with Gluu 3.1.5. Please see https://www.gluu.org/docs/oxd/4.0/tutorial/ Please see some other examples on my repo: https://github.com/mbaser/gluu/tree/master/oxd_tutorial