By: Mike Con user 20 Jan 2021 at 2:59 p.m. CST

11 Responses
Mike Con gravatar
for the script to run and upgrade. production! # → 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 Detected OS ubuntu 18 Traceback (most recent call last): File "update.py", line 1993, in <module> from setup.pylib.generate_properties import generate_properties File "/root/upg40/setup/pylib/generate_properties.py", line 153, in <module> salt = salt_prop['encodeSalt'] KeyError: 'encodeSalt'

By Devrim Yatar staff 22 Jan 2021 at 2:41 a.m. CST

Devrim Yatar gravatar
Hi, Please check you have file `/etc/gluu/conf/salt` and in this file you have something like this: ``` encodeSalt = daGJUmYiibSqaoVVcpvVN7W ```

By Mike Con user 22 Jan 2021 at 9 a.m. CST

Mike Con gravatar
No, encodeSalt = daGJUmYiibSqaoVVcpvVN7W is not in the file. see below - this is what's in the directory. What do I do from here? ~ ~ ~ ~ /etc/gluu/conf/salt 0,0-1 All "/etc/gluu/conf/salt" [New DIRECTORY] "/etc/gluu/conf/salt" E212: Can't open file for writing Press ENTER or type command to continue

By Mike Con user 22 Jan 2021 at 9:50 a.m. CST

Mike Con gravatar
when I got to vim /root/upg40/setup/pylib/generate_properties.py I see the following below. salt_file = '/opt/tomcat/conf/salt' 149 if not os.path.exists(salt_file): 150 salt_file = '/etc/gluu/conf/salt' 151 152 salt_prop = read_properties_file(salt_file) 153 salt = salt_prop['encodeSalt'] 154 155 def unobscure(s=""): 156 engine = triple_des(salt, EC

By Devrim Yatar staff 22 Jan 2021 at 11:08 a.m. CST

Devrim Yatar gravatar
If there is no salt file, you can't do anything, and if there is not salt file, gluu server can't work. If you have `setup.properties.last`, it should contain salt. You can create salt file as ``` cat setup.properties.last| grep salt encode_salt=daGJUmYiibSqaoVVcpvVN7Wg ``` So write `/etc/gluu/conf/salt` with the following content: ``` encodeSalt = daGJUmYiibSqaoVVcpvVN7W ```

By Devrim Yatar staff 22 Jan 2021 at 11:10 a.m. CST

Devrim Yatar gravatar
Be aware value `daGJUmYiibSqaoVVcpvVN7W` is mine, all gluu installation has different salt value. It is used for encoding and decoding passwords.

By Devrim Yatar staff 22 Jan 2021 at 11:11 a.m. CST

Devrim Yatar gravatar
Are you running the script inside container?

By Mike Con user 22 Jan 2021 at 11:14 a.m. CST

Mike Con gravatar
No, I am running it inside the upg40 directory production! $ → sudo -i root@dev-gluu1 ~ production! # → cd /root/upg40 root@dev-gluu1 ~/upg40 dynatron.io production! # → 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 Detected OS ubuntu 18 Traceback (most recent call last): File "update.py", line 1993, in <module> from setup.pylib.generate_properties import generate_properties File "/root/upg40/setup/pylib/generate_properties.py", line 153, in <module> salt = salt_prop['encodeSalt'] KeyError: 'encodeSalt'

By Devrim Yatar staff 22 Jan 2021 at 11:49 a.m. CST

Devrim Yatar gravatar
First, you need to login to container `# gluu-serverd login` If you are using online upgrade `mkdir upg40` `cd upg40` `wget https://raw.githubusercontent.com/GluuFederation/community-edition-package/master/update/4.0/update.py` `python update.py -o`

By Mike Con user 22 Jan 2021 at 12:07 p.m. CST

Mike Con gravatar
error - failed: Temporary failure in name resolution. wget: unable to resolve host address ‘raw.githubusercontent.com’ root@localhost:~/upg40# wget https://raw.githubusercontent.com/GluuFederation/community-edition-package/master/update/4.0/update.py --2021-01-22 12:05:43-- https://raw.githubusercontent.com/GluuFederation/community-edition-package/master/update/4.0/update.py Resolving raw.githubusercontent.com (raw.githubusercontent.com)... failed: Temporary failure in name resolution. wget: unable to resolve host address ‘raw.githubusercontent.com’ root@localhost:~/upg40# sudo wget https://raw.githubusercontent.com/GluuFederation/community-edition-package/master/update/4.0/update.py --2021-01-22 12:05:55-- https://raw.githubusercontent.com/GluuFederation/community-edition-package/master/update/4.0/update.py Resolving raw.githubusercontent.com (raw.githubusercontent.com)... failed: Temporary failure in name resolution. wget: unable to resolve host address ‘raw.githubusercontent.com’ root@localhost:~/upg40#

By Devrim Yatar staff 25 Jan 2021 at 9:33 a.m. CST

Devrim Yatar gravatar
Your machine has no internet access

By Devrim Yatar staff 01 Feb 2021 at 10:12 a.m. CST

Devrim Yatar gravatar
Closing due to inactivity.