By: Roney Dsilva user 23 Feb 2023 at 2:09 a.m. CST

25 Responses
Roney Dsilva gravatar
Am getting below error when i try. This scirpt is under development. Not for use. By when can i Expect the Upgrade to be ready to deploy? Upgrade script lint: https://raw.githubusercontent.com/GluuFederation/community-edition-package/master/update/4.5.0/upg4xto450.py

By Mohib Zico staff 23 Feb 2023 at 3 a.m. CST

Mohib Zico gravatar
Hi Roney, Let me touch base and I'll get back to you.

By Mohib Zico staff 24 Feb 2023 at 6:41 a.m. CST

Mohib Zico gravatar
Roney, Upgrade script is ready for you to use now. Thanks!

By Roney Dsilva user 24 Feb 2023 at 7:57 a.m. CST

Roney Dsilva gravatar
Got below error when attempting to upgrade ``` Extracting CES package Extracting sqlalchemy The following packages are required for Gluu Server python3-psycopg2 Do you want to install these now? [Y/n] Y Installing packages python3-psycopg2 Please wait while collecting properties... Traceback (most recent call last): File "./upg4xto450.py", line 1826, in <module> updaterObj.prepare_ces() File "./upg4xto450.py", line 460, in prepare_ces collectProperties.collect() File "/install/community_edition_setup_4.5.0/setup_app/utils/collect_properties.py", line 208, in collect Config.scim_rp_client_jks_pass = self.unobscure(Config.scim_rs_client_jks_pass_encoded) File "/install/community_edition_setup_4.5.0/setup_app/utils/crypto64.py", line 42, in unobscure return decrypted.decode('utf-8') AttributeError: 'str' object has no attribute 'decode' ```

By Mohib Zico staff 24 Feb 2023 at 9:50 a.m. CST

Mohib Zico gravatar
@Mohit.Mali: can you please confirm?

By Mohit Mali staff 24 Feb 2023 at 10:23 a.m. CST

Mohit Mali gravatar
hello @Mohib.Zico and Roney Dsilva, let me check the issue and get back to you. Regards Mohit Mali.

By Mohit Mali staff 27 Feb 2023 at 4:16 a.m. CST

Mohit Mali gravatar
hello @ Roney Dsilva, the issue has been fixed, please retry to upgrade with updated script https://raw.githubusercontent.com/GluuFederation/community-edition-package/master/update/4.5.0/upg4xto450.py and let us know if it works for you . Regards Mohit Mali.

By Roney Dsilva user 27 Feb 2023 at 8:43 a.m. CST

Roney Dsilva gravatar
Am getting this error now: Traceback (most recent call last): File "./upg4xto450.py", line 1845, in <module> updaterObj.update_persistence_data() File "./upg4xto450.py", line 669, in update_persistence_data self.update_ldap() File "./upg4xto450.py", line 951, in update_ldap self.gluuInstaller.dbUtils.ldap_conn.bind() o 111] Connection refused'), ('::1', 1636, 0, 0)), (datetime.datetime(2023, 2, 27, 14, 42, 2, 299829), <class 'ldap3.core.exceptions.LDAPSocketOpenError'>, LDAPSocketOpenError('socket connection error while opening: [Errno 111] Connection refused'), ('127.0.0.1', 1636 root@a:~# netstat -antlp | grep LISTEN tcp 0 0 127.0.0.1:60022 0.0.0.0:* LISTEN 153/sshd: /usr/sbin tcp 0 0 127.0.0.53:53 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN - tcp6 0 0 :::443 :::* LISTEN 532/apache2 tcp6 0 0 127.0.0.1:1636 :::* LISTEN 13867/java tcp6 0 0 :::80 :::* LISTEN 532/apache2 tcp6 0 0 :::22 :::* LISTEN - tcp6 0 0 127.0.0.1:4444 :::* LISTEN 13867/java

By Roney Dsilva user 27 Feb 2023 at 8:45 a.m. CST

Roney Dsilva gravatar
Service is running, port is open, can telnet aswell, I accidentally closed this ticket please reopen it

By Roney Dsilva user 27 Feb 2023 at 2:31 p.m. CST

Roney Dsilva gravatar
[27/Feb/2023:20:29:07 +0000] category=CORE severity=NOTICE msgID=139 msg=The Directory Server has sent an alert notification generated by class org.opends.server.core.DirectoryServer (alert type org.opends.server.DirectoryServerShutdown, alert ID org.opends.messages.core-141): The Directory Server has started the shutdown process. The shutdown was initiated by an instance of class org.opends.server.core.DirectoryServerShutdownHook and the reason provided for the shutdown was The Directory Server shutdown hook detected that the JVM is shutting down. This generally indicates that JVM received an external request to stop (e.g., through a kill signal) More logs

By Mohit Mali staff 27 Feb 2023 at 11:33 p.m. CST

Mohit Mali gravatar
hello Roney Dsilva, > The Directory Server has started the shutdown process. The shutdown was initiated by an instance of class > seems like opendj service is stopped. Can you please check the opendj is running ``` systemctl status opendj. ? Regards Mohit Mali.

By Roney Dsilva user 28 Feb 2023 at 12:02 a.m. CST

Roney Dsilva gravatar
opendj service is running, but from the log entires it looks like it stops momentary and starts back again during the upgrade process

By Mohit Mali staff 28 Feb 2023 at 3:31 a.m. CST

Mohit Mali gravatar
please try to restart the gluu-server and then retry upgrade. let me know if it works . Regards Mohit Mali.

By Roney Dsilva user 28 Feb 2023 at 3:32 a.m. CST

Roney Dsilva gravatar
Hi, I tried that, Restarted the whole server aswell. same issue

By Roney Dsilva user 28 Feb 2023 at 3:33 a.m. CST

Roney Dsilva gravatar
Restored older snapshot and tried, same issue. Its like the CPU utilization hits max during the upgrade and opendj service shutsdown. I tried even Resizing the Server to 8vCPU and 16GB RAM, but observed same issue

By Roney Dsilva user 28 Feb 2023 at 11:55 p.m. CST

Roney Dsilva gravatar
Hi Team, Any update on this? Can you'll test it out on your side or somthing?

By Mohit Mali staff 01 Mar 2023 at 12:56 a.m. CST

Mohit Mali gravatar
hello Roney Dsilva, I've discussed with the developer, upgrade script doesn't use much resource to run. please check if you have any custom schema in ldap which is causing to stop opendj. Regards Mohit Mali.

By Daniel Steiner user 06 Mar 2023 at 12:58 a.m. CST

Daniel Steiner gravatar
Hi, I have pretty much the same issue during upgrade to 4.5.0 version: ``` ... Updating oxTrustConfApplication Traceback (most recent call last): File "upg4xto450.py", line 1845, in <module> updaterObj.update_persistence_data() File "upg4xto450.py", line 706, in update_persistence_data self.apply_persist_changes(js_conf, self.persist_changes[(config_element, config_dn, object_class)]) File "upg4xto450.py", line 902, in apply_persist_changes js_conf[key][value[0]] = value[1] TypeError: 'NoneType' object does not support item assignment ``` I have downlaoded the latest version of `upg4xto450.py` script. All logs in `install/community_edition_setup_4.5.0/logs` folder do not show any error. Regards

By Mohib Zico staff 06 Mar 2023 at 11:07 p.m. CST

Mohib Zico gravatar
Roney, I am reopening this case as I heard, it's not working yet. Can you please share your 4.4.2 infrastructure again? - What type of OS? Answer: Ubuntu 20. - How much memory you have? - How much CPU you have? - Is there any customization in your oxTrust?

By Roney Dsilva user 06 Mar 2023 at 11:49 p.m. CST

Roney Dsilva gravatar
Hi, below are the specs: Ubuntu 22 LTS for the Host system, am using chroot environment having Ubuntu 20. 8GB RAM, 4vCPU No customizations done to oxTrust

By Mohib Zico staff 07 Mar 2023 at 1:06 a.m. CST

Mohib Zico gravatar
Thanks! >> Ubuntu 22 LTS for the Host system, am using chroot environment having Ubuntu 20. Please align Host and Container version same. I don't think we would suggest to use different container version than host system.

By Roney Dsilva user 07 Mar 2023 at 1:38 a.m. CST

Roney Dsilva gravatar
tried, same issue

By Roney Dsilva user 16 Mar 2023 at 3:08 p.m. CDT

Roney Dsilva gravatar
any update on this?

By Mohib Zico staff 16 Mar 2023 at 11:19 p.m. CDT

Mohib Zico gravatar
Sorry, I should have an update by Monday.

By Mohib Zico staff 21 Mar 2023 at 12:28 a.m. CDT

Mohib Zico gravatar
Hi! I just tried it and unfortunately couldn't reproduce the issue. Here is the whole recorded screencast: https://youtu.be/XIvcFVZKTVo

By Roney Dsilva user 04 May 2023 at 7:29 a.m. CDT

Roney Dsilva gravatar
Hi @Mohib.Zico, Apologies for the delayed response, was busy with other projects The fix for this was to add more delay after self.openDjInstaller.prepare_opendj_schema() I added 15s, orginially was 5, time.sleep(15)