By: Andrew Mauer user 06 Oct 2022 at 7:58 a.m. CDT

15 Responses
Andrew Mauer gravatar
I am trying to run the update.py script to upgrade our gluu version from 3.1.2 to 4.0 I get this error: ``` Ready to upgrade Gluu Server. Start now (y|N) y This upgrade replaces all the default Gluu Server scripts WITH SCRIPTS FROM 4.0 and removes other custom scripts. (This will replace any customization you may have made to these default script entries) Do you want to continue? (Y|n) Y Keep users' inum as it is? (y|N) N Detected OS centos 7 Traceback (most recent call last): File "update.py", line 1999, in <module> from setup.pylib.generate_properties import generate_properties File "/root/setup/pylib/generate_properties.py", line 153, in <module> salt = salt_prop['encodeSalt'] KeyError: 'encodeSalt' ```

By Michael Schwartz Account Admin 06 Oct 2022 at 11:31 a.m. CDT

Michael Schwartz gravatar
Maybe try ``` Keep users' inum as it is? (y|N) y ``` Let us know if that's any better.

By Andrew Mauer user 06 Oct 2022 at 12:15 p.m. CDT

Andrew Mauer gravatar
Tried using y and got the same error Ready to upgrade Gluu Server. Start now (y|N) y This upgrade replaces all the default Gluu Server scripts WITH SCRIPTS FROM 4.0 and removes other custom scripts. (This will replace any customization you may have made to these default script entries) Do you want to continue? (Y|n) Y Keep users' inum as it is? (y|N) y Detected OS centos 7 Traceback (most recent call last): File "update.py", line 1999, in module> from setup.pylib.generate_properties import generate_properties File "/root/setup/pylib/generate_properties.py", line 153, in module> salt = salt_prop['encodeSalt'] KeyError: 'encodeSalt' [root@OAuthSRV-clone ~]#

By Andrew Mauer user 06 Oct 2022 at 3:45 p.m. CDT

Andrew Mauer gravatar
I managed to find the missing salt file. I had to change the update script to look in the new location. However, now I get this error [root@OAuthSRV-clone ~]# python update.py -o Ready to upgrade Gluu Server. Start now (y|N) y This upgrade replaces all the default Gluu Server scripts WITH SCRIPTS FROM 4.0 and removes other custom scripts. (This will replace any customization you may have made to these default script entries) Do you want to continue? (Y|n) Y Keep users' inum as it is? (y|N) N Detected OS centos 7 Collecting properties Traceback (most recent call last): File "update.py", line 2005, in module> setup_porperties = generate_properties(True) File "/root/setup/pylib/generate_properties.py", line 338, in generate_properties ldap_conn.bind() File "/usr/lib/python2.7/site-packages/ldap3/core/connection.py", line 582, in bind self.open(read_server_info=False) File "/usr/lib/python2.7/site-packages/ldap3/strategy/sync.py", line 56, in open BaseStrategy.open(self, reset_usage, read_server_info) File "/usr/lib/python2.7/site-packages/ldap3/strategy/base.py", line 149, in open raise LDAPSocketOpenError('unable to open socket', exception_history) ldap3.core.exceptions.LDAPSocketOpenError: ('unable to open socket', [(LDAPSocketOpenError('socket connection error while opening: [Errno 111] Connection refused',), ('::1', 1636, 0, 0)), (LDAPSocketOpenError('socket connection error while opening: [Errno 111] Connection refused',), ('127.0.0.1', 1636))]) [root@OAuthSRV-clone ~]#

By Mobarak Hosen Shakil staff 06 Oct 2022 at 6:42 p.m. CDT

Mobarak Hosen Shakil gravatar
Hi, Andrew, It seems `ldap` server is not running /failed to connect. Can you please check the status of `ldap` server? Regards ~ Shakil

By Andrew Mauer user 07 Oct 2022 at 2:32 p.m. CDT

Andrew Mauer gravatar
Is there a list of steps that I could use to manually upgrade the server from 3.1.2 to 4.0?

By Mobarak Hosen Shakil staff 09 Oct 2022 at 10:01 p.m. CDT

Mobarak Hosen Shakil gravatar
Hi, Andrew! What database currently running in your gluu server (3.1.2)? is it OpenDJ or OpenLDAP?

By Andrew Mauer user 10 Oct 2022 at 9:05 a.m. CDT

Andrew Mauer gravatar
I believe it is openldap. How could I tell for sure?

By Michael Schwartz Account Admin 10 Oct 2022 at 10:43 a.m. CDT

Michael Schwartz gravatar
Do a `# ps -ef | grep ldap`

By Andrew Mauer user 10 Oct 2022 at 10:45 a.m. CDT

Andrew Mauer gravatar
[root@OAuthSRV-clone ~]# ps -ef | grep ldap root 11119 5789 0 11:45 pts/1 00:00:00 grep --color=auto ldap [root@OAuthSRV-clone ~]#

By Michael Schwartz Account Admin 10 Oct 2022 at 10:48 a.m. CDT

Michael Schwartz gravatar
Try `netstat -antlp | grep LISTEN` this is basic linux stuff...

By Andrew Mauer user 10 Oct 2022 at 10:54 a.m. CDT

Andrew Mauer gravatar
I don’t work with Linux much. I got tasked with trying to update the gluu software.

By Michael Schwartz Account Admin 10 Oct 2022 at 11:06 a.m. CDT

Michael Schwartz gravatar
Ok, then this isn't going to go well for you. Perhaps you talked with @Davin.Cooke about a lifeline from one of our partners?

By Andrew Mauer user 10 Oct 2022 at 11:13 a.m. CDT

Andrew Mauer gravatar
Not sure what you mean by ‘lifeline’ ?

By Michael Schwartz Account Admin 10 Oct 2022 at 11:19 a.m. CDT

Michael Schwartz gravatar
Sorry, I meant "help"... lest you drown in technical stuff. This forum is not going to be good for step-by-step--it assumes you have quite a bit of knowledge and experience with linux system administration.

By Mobarak Hosen Shakil staff 12 Oct 2022 at 11:46 p.m. CDT

Mobarak Hosen Shakil gravatar
Hi, Andrew! You are using an **EOL** version of Gluu Server that doesn't cover in community support. You may need to [contact](https://gluu.org/contact-us/) with our sales team. Thanks ~ Shakil