By: Monika Leung user 26 Oct 2021 at 6:51 a.m. CDT

6 Responses
Monika Leung gravatar
Hi, I tried to install Casa using the `post-setup-add-components.py` script but got the error below. During the initial installation the following components were selected: - SAML - oxAuth RP - Gluu-Radius ``` root@hostname:/install/community-edition-setup# python3 post-setup-add-components.py -addcasa Current Gluu Version 4.2.3 Downloading Community Edition Setup 4.2.3 2021-10-26 15:07:10 URL:https://codeload.github.com/GluuFederation/community-edition-setup/zip/version_4.2.3 [654425] -> "/install/community-edition-setup/version_4.2.3.zip" [1] Extracting package Detected OS debian 10 Detected OS debian 10 Log Files: /install/community-edition-setup/ces_current/post_setup.log /install/community-edition-setup/ces_current/post_setup_error.log Installing Gluu Casa Please enter URL of oxd-server if you have one, for example: https://oxd.mygluu.org:8443 Else leave blank to install oxd server locally. oxd Server URL: Installing Oxd Server Downloading oxd-server-4.2.3.Final-distribution.zip and preparing package Traceback (most recent call last): File "post-setup-add-components.py", line 644, in <module> installPassport() File "post-setup-add-components.py", line 543, in installCasa setupObj.import_ldif_template_opendj(casa_ldif_fp) File "post-setup-add-components.py", line 494, in installOxd oxd_server_sh_url = 'https://raw.githubusercontent.com/GluuFederation/oxd/version_{}/debian/oxd-server'.format(gluu_version) File "/install/community-edition-setup/setup.py", line 5297, in install_oxd oxd_default = self.fomatWithDict(oxd_default_tmp, self.merge_dicts(self.__dict__, self.templateRenderingDict)) File "/install/community-edition-setup/setup.py", line 3483, in fomatWithDict return text % dictionary KeyError: 'oxd_min_mem' ``` Could you please help with this?

By Mobarak Hosen Shakil staff 26 Oct 2021 at 7:48 a.m. CDT

Mobarak Hosen Shakil gravatar
Hi Monika Leung, Let me check please. I will give an update soon. Regards ~ Shakil

By Mobarak Hosen Shakil staff 26 Oct 2021 at 4:28 p.m. CDT

Mobarak Hosen Shakil gravatar
Hi Monika Leung, Please run the following command line again and see what happens. can you please share vm configuration? Regards ~ Shakil

By Devrim Yatar staff 27 Oct 2021 at 5:34 a.m. CDT

Devrim Yatar gravatar
Monika, The right way to fix is, 1) since it tried to install oxd-server it was corrupted, first remove it: ```rm -r -f /opt/oxd-server``` 2) Install oxd-server: ``` python3 post-setup-add-components.py -addoxd ``` 3) Install casa ``` python3 post-setup-add-components.py -addcasa ```

By Monika Leung user 27 Oct 2021 at 8:16 a.m. CDT

Monika Leung gravatar
Hi Mustafa, I removed the oxd-server folder and tried to install oxd-server again, but I get the same error: ``` root@hostname:/install/community-edition-setup# python3 post-setup-add-components.py -addoxd Current Gluu Version 4.2.3 Downloading Community Edition Setup 4.2.3 2021-10-27 08:56:59 URL:https://codeload.github.com/GluuFederation/community-edition-setup/zip/version_4.2.3 [654425] -> "/install/community-edition-setup/version_4.2.3.zip" [1] Extracting package Detected OS debian 10 Detected OS debian 10 Log Files: /install/community-edition-setup/ces_current/post_setup.log /install/community-edition-setup/ces_current/post_setup_error.log Installing Oxd Server Downloading oxd-server-4.2.3.Final-distribution.zip and preparing package Traceback (most recent call last): File "post-setup-add-components.py", line 641, in <module> installSaml() File "post-setup-add-components.py", line 494, in installOxd oxd_server_sh_url = 'https://raw.githubusercontent.com/GluuFederation/oxd/version_{}/debian/oxd-server'.format(gluu_version) File "/install/community-edition-setup/setup.py", line 5297, in install_oxd oxd_default = self.fomatWithDict(oxd_default_tmp, self.merge_dicts(self.__dict__, self.templateRenderingDict)) File "/install/community-edition-setup/setup.py", line 3483, in fomatWithDict return text % dictionary KeyError: 'oxd_min_mem' ``` Content of post_setup_error.log: ``` # cat /install/community-edition-setup/ces_current/post_setup_error.log 08:57:21 10/27/21 2021-10-27 08:57:21 URL:https://ox.gluu.org/maven/org/gluu/oxd-server/4.2.3.Final/oxd-server-4.2.3.Final-distribution.zip [96295895/96295895] -> "/tmp/oxd-server.zip" [1] 08:57:23 10/27/21 2021-10-27 08:57:23 URL:https://raw.githubusercontent.com/GluuFederation/community-edition-package/master/package/systemd/oxd-server.service [270/270] -> "/tmp/oxd-server/oxd-server.service" [1] 08:57:24 10/27/21 2021-10-27 08:57:24 URL:https://raw.githubusercontent.com/GluuFederation/oxd/version_4.2.3/debian/oxd-server [18533/18533] -> "/tmp/oxd-server/bin/oxd-server" [1] ``` Shakil, my VM configuration is: RAM: 8 GB swap: 8 GB CPU: 4 disk: 50 GB

By Mobarak Hosen Shakil staff 03 Nov 2021 at 12:09 p.m. CDT

Mobarak Hosen Shakil gravatar
Hi Monika Leung, I have replicated this issue. This error caused by the `post-setup-add-components.py` script which has been fixed. Please follow these steps: ``` gluu-serverd login ``` ``` cd /install/community-edition-setup ``` ``` wget https://raw.githubusercontent.com/GluuFederation/community-edition-setup/version_4.2.3/post-setup-add-components.py -O post-setup-add-components.py ``` ``` python3 post-setup-add-components.py -addoxd ``` ``` python3 post-setup-add-components.py -addcasa ``` then restart the gluu-server hope this will fix it. Regards ~ Shakil

By Monika Leung user 05 Nov 2021 at 11:13 a.m. CDT

Monika Leung gravatar
Hi Shakil, this fixed the issue, thanks a lot!