By: Andrew Frazer user 13 Jun 2020 at 8:10 a.m. CDT

3 Responses
Andrew Frazer gravatar
When following docs at https://www.gluu.org/docs/gluu-server/installation-guide/install-ubuntu/#run-the-setup-script and at the step to run the setup script an error occurred (on two separate Fresh Ubuntu installs) and produces this console output: ``` Proceed with these values [Y|n] y Installing [############## ] Installing Gluu base ***** Error caught in main loop ***** Traceback (most recent call last): File "./setup.py", line 5554, in do_installation self.install_gluu_base() File "./setup.py", line 2431, in install_gluu_base self.encoded_ldapTrustStorePass = self.encoded_opendj_p12_pass AttributeError: 'Setup' object has no attribute 'encoded_opendj_p12_pass' Gluu Server installation successful! Point your browser to https://HOSTNAME ``` The web UI is also inaccessible despite the massage above. And also the script now refuses to run with this message: ``` This instance already configured. If you need to install new one you should reinstall package first ```

By Devrim Yatar staff 13 Jun 2020 at 2:08 p.m. CDT

Devrim Yatar gravatar
Hi Andrew, The error you mentioned not likely to happen. Please send log files `setup.log` and `setup_error.log` under `/install/community-edition-setup` Regards.

By Andrew Frazer user 13 Jun 2020 at 2:46 p.m. CDT

Andrew Frazer gravatar
setup.log: ``` 12:29:51 06/13/20 Removed /install/community-edition-setup/setup.log 12:29:51 06/13/20 Installing Gluu Server 12:29:51 06/13/20 /install/community-edition-setup/setup.properties or /install/community-edition-setup/setup.properties.enc Properties not found. Interactive setup commencing... 12:35:21 06/13/20 Checking properties 12:35:23 06/13/20 Rendering template /install/community-edition-setup/output/system_profile_systemd 12:35:23 06/13/20 Running: cp -f /etc/profile /etc/profile.gluu-4.1.1-1~ 12:35:23 06/13/20 Writing file /etc/profile 12:35:23 06/13/20 Running: cp -f /etc/profile /etc/profile.gluu-4.1.1-2~ 12:35:23 06/13/20 Running: /bin/chmod 644 /etc/profile 12:35:24 06/13/20 Running: /usr/sbin/useradd --system --user-group --shell /bin/bash --create-home --home-dir /home/ldap ldap 12:35:24 06/13/20 Running: /usr/sbin/useradd --system --user-group --shell /bin/bash --create-home --home-dir /home/jetty jetty 12:35:25 06/13/20 Running: /usr/sbin/useradd --system --user-group --shell /bin/bash --create-home --home-dir /home/node node 12:35:26 06/13/20 Running: /usr/sbin/useradd --system --user-group --shell /bin/false --create-home --home-dir /opt/gluu/radius radius 12:35:26 06/13/20 Running: /usr/sbin/groupadd gluu 12:35:27 06/13/20 Running: /usr/sbin/usermod -a -G gluu ldap 12:35:27 06/13/20 Running: /usr/sbin/usermod -a -G gluu jetty 12:35:27 06/13/20 Running: /usr/sbin/usermod -a -G gluu node 12:35:28 06/13/20 Running: /usr/sbin/usermod -a -G adm ldap 12:35:28 06/13/20 Running: /usr/sbin/usermod -a -G gluu radius 12:35:28 06/13/20 Running: /bin/chmod ga+w /tmp 12:35:28 06/13/20 Running: /bin/mkdir -p /opt/gluu 12:35:28 06/13/20 Running: /bin/mkdir -p /opt/gluu/bin 12:35:28 06/13/20 Running: /bin/mkdir -p /opt/gluu/system 12:35:28 06/13/20 Running: /bin/mkdir -p /opt/gluu/python 12:35:28 06/13/20 Running: /bin/mkdir -p /etc/gluu/conf 12:35:28 06/13/20 Running: /bin/mkdir -p /etc/certs 12:35:28 06/13/20 Running: /bin/mkdir -p /install/community-edition-setup/output 12:35:28 06/13/20 Running: /bin/mkdir -p /home/jetty/lib 12:35:28 06/13/20 Running: /bin/mkdir -p /etc/gluu/conf/fido2 12:35:28 06/13/20 Running: /bin/mkdir -p /etc/gluu/conf/fido2//authenticator_cert 12:35:28 06/13/20 Running: /bin/mkdir -p /etc/gluu/conf/fido2//mds/cert 12:35:28 06/13/20 Running: /bin/mkdir -p /etc/gluu/conf/fido2//mds/toc 12:35:28 06/13/20 Running: /bin/mkdir -p /etc/gluu/conf/fido2//server_metadata 12:35:28 06/13/20 Running: /bin/mkdir -m 775 -p /var/gluu/photos 12:35:28 06/13/20 Running: /bin/mkdir -m 775 -p /var/gluu/identity/removed 12:35:28 06/13/20 Running: /bin/mkdir -m 775 -p /var/gluu/identity/cr-snapshots 12:35:28 06/13/20 Running: /bin/chown -R root:gluu /var/gluu/photos 12:35:28 06/13/20 Running: /bin/chown -R root:gluu /var/gluu/identity/removed 12:35:28 06/13/20 Running: /bin/chown -R root:gluu /var/gluu/identity/cr-snapshots 12:35:29 06/13/20 Calculating memory setting for applications 12:35:29 06/13/20 Installing server JRE 1.8 8.222.10.1... 12:35:29 06/13/20 Extracting amazon-corretto-8.222.10.1-linux-x64.tar.gz into /opt/ 12:35:29 06/13/20 Running: tar -xzf /opt/dist/app/amazon-corretto-8.222.10.1-linux-x64.tar.gz -C /opt/ --no-xattrs --no-same-owner --no-same-permissions 12:35:32 06/13/20 Running: /bin/ln -sf /opt/amazon-corretto-8.222.10.1-linux-x64 /opt/jre 12:35:32 06/13/20 Running: /bin/chmod -R 755 /opt/amazon-corretto-8.222.10.1-linux-x64/bin/ 12:35:32 06/13/20 Running: /bin/chown -R root:root /opt/amazon-corretto-8.222.10.1-linux-x64 12:35:32 06/13/20 Running: /bin/chown -h root:root /opt/jre 12:35:32 06/13/20 Running: sed -i /^#crypto.policy=unlimited/s/^#// /opt/jre/jre/lib/security/java.security 12:35:32 06/13/20 Installing jetty 9.4.26.v20200117... 12:35:32 06/13/20 Running: /bin/mkdir -p /opt/jetty-9.4/temp 12:35:32 06/13/20 Running: /bin/chown -R jetty:jetty /opt/jetty-9.4/temp 12:35:32 06/13/20 Extracting jetty-distribution-9.4.26.v20200117.tar.gz into /opt/jetty 12:35:32 06/13/20 Running: tar -xzf /opt/dist/app/jetty-distribution-9.4.26.v20200117.tar.gz -C /opt/jetty-9.4 --no-xattrs --no-same-owner --no-same-permissions 12:35:33 06/13/20 Running: /bin/ln -sf /opt/jetty-9.4/jetty-distribution-9.4.26.v20200117 /opt/jetty 12:35:33 06/13/20 Running: /bin/chmod -R 755 /opt/jetty-9.4/jetty-distribution-9.4.26.v20200117/bin/ 12:35:33 06/13/20 Applying changes to jetty files... 12:35:33 06/13/20 Writing file /opt/jetty/etc/webdefault.xml.bak 12:35:33 06/13/20 Created backup of jetty file /opt/jetty/etc/webdefault.xml.bak... 12:35:33 06/13/20 Writing file /opt/jetty/etc/webdefault.xml 12:35:33 06/13/20 Running: cp -f /opt/jetty/etc/webdefault.xml /opt/jetty/etc/webdefault.xml.gluu-4.1.1-1~ 12:35:33 06/13/20 Wrote updated jetty file /opt/jetty/etc/webdefault.xml... 12:35:33 06/13/20 Writing file /opt/jetty/etc/jetty.xml.bak 12:35:33 06/13/20 Created backup of jetty file /opt/jetty/etc/jetty.xml.bak... 12:35:33 06/13/20 Writing file /opt/jetty/etc/jetty.xml 12:35:33 06/13/20 Running: cp -f /opt/jetty/etc/jetty.xml /opt/jetty/etc/jetty.xml.gluu-4.1.1-1~ 12:35:33 06/13/20 Wrote updated jetty file /opt/jetty/etc/jetty.xml... 12:35:33 06/13/20 Running: /bin/chown -R jetty:jetty /opt/jetty-9.4/jetty-distribution-9.4.26.v20200117 12:35:33 06/13/20 Running: /bin/chown -h jetty:jetty /opt/jetty 12:35:33 06/13/20 Running: /bin/mkdir -p /opt/gluu/jetty 12:35:33 06/13/20 Running: /bin/chown -R jetty:jetty /opt/gluu/jetty 12:35:33 06/13/20 Running: /bin/mkdir -p /var/run/jetty 12:35:33 06/13/20 Running: /bin/chmod -R 775 /var/run/jetty 12:35:33 06/13/20 Running: /bin/chgrp -R jetty /var/run/jetty 12:35:33 06/13/20 Running: rm -rf /opt/jetty/bin/jetty.sh 12:35:33 06/13/20 Copied /install/community-edition-setup/static/system/initd/jetty.sh to /opt/jetty/bin/jetty.sh 12:35:33 06/13/20 Running: /bin/chown -R jetty:jetty /opt/jetty/bin/jetty.sh 12:35:33 06/13/20 Running: /bin/chmod -R 755 /opt/jetty/bin/jetty.sh 12:35:33 06/13/20 Installing Jython 2.7.2a... 12:35:33 06/13/20 Running: rm -rf /opt*-2.7.2a 12:35:33 06/13/20 Running: /opt/jre/bin/java -jar /opt/dist/app/jython-installer-2.7.2a.jar -v -s -d /opt/jython-2.7.2a -t standard -e ensurepip 12:35:39 06/13/20 system properties dumped to /tmp/System8566611415238010192.properties reading jar info using the console installer Performing silent installation specification version: '1.8' excluding directory META-INF/ excluding directory extlibs/ excluding directory extlibs/cpptasks/ excluding directory extlibs/mockrunner-0.4.1/ excluding directory extlibs/mockrunner-0.4.1/jar/ excluding directory extlibs/mockrunner-0.4.1/jar/j2ee1.3/ excluding directory extlibs/mockrunner-0.4.1/lib/ excluding directory extlibs/mockrunner-0.4.1/lib/jdk1.5/ excluding directory extlibs/mockrunner-0.4.1/lib/jdk1.5/j2ee1.3/ excluding directory grammar/ excluding directory org/ excluding directory org/apache/ excluding directory org/apache/commons/ excluding directory org/apache/commons/cli/ excluding directory org/python/ excluding directory org/python/util/ excluding directory org/python/util/install/ excluding directory org/python/util/install/driver/ excluding directory src/ excluding directory src/com/ excluding directory src/com/xhaus/ excluding directory src/com/xhaus/modjy/ excluding directory src/com/ziclix/ excluding directory src/com/ziclix/python/ excluding directory src/com/ziclix/python/sql/ excluding directory src/com/ziclix/python/sql/connect/ excluding directory src/com/ziclix/python/sql/handler/ excluding directory src/com/ziclix/python/sql/pipe/ excluding directory src/com/ziclix/python/sql/pipe/csv/ excluding directory src/com/ziclix/python/sql/pipe/db/ excluding directory src/com/ziclix/python/sql/procedure/ excluding directory src/com/ziclix/python/sql/resource/ excluding directory src/com/ziclix/python/sql/util/ excluding directory src/org/ excluding directory src/org/python/ excluding directory src/org/python/antlr/ excluding directory src/org/python/antlr/adapter/ excluding directory src/org/python/antlr/ast/ excluding directory src/org/python/antlr/base/ excluding directory src/org/python/antlr/op/ excluding directory src/org/python/compiler/ excluding directory src/org/python/core/ excluding directory src/org/python/core/adapter/ excluding directory src/org/python/core/buffer/ excluding directory src/org/python/core/finalization/ excluding directory src/org/python/core/io/ excluding directory src/org/python/core/packagecache/ excluding directory src/org/python/core/stringlib/ excluding directory src/org/python/core/util/ excluding directory src/org/python/expose/ excluding directory src/org/python/expose/generate/ excluding directory src/org/python/indexer/ excluding directory src/org/python/indexer/ast/ excluding directory src/org/python/indexer/demos/ excluding directory src/org/python/indexer/types/ excluding directory src/org/python/jsr223/ excluding directory src/org/python/modules/ excluding directory src/org/python/modules/_collections/ excluding directory src/org/python/modules/_csv/ excluding directory src/org/python/modules/_functools/ excluding directory src/org/python/modules/_io/ excluding directory src/org/python/modules/_json/ excluding directory src/org/python/modules/_jythonlib/ excluding directory src/org/python/modules/_threading/ excluding directory src/org/python/modules/_weakref/ excluding directory src/org/python/modules/bz2/ excluding directory src/org/python/modules/itertools/ excluding directory src/org/python/modules/jffi/ excluding directory src/org/python/modules/posix/ excluding directory src/org/python/modules/random/ excluding directory src/org/python/modules/sre/ excluding directory src/org/python/modules/thread/ excluding directory src/org/python/modules/time/ excluding directory src/org/python/modules/zipimport/ excluding directory src/org/python/util/ excluding directory src/shell/ excluding directory src/templates/ 10 % 20 % 30 % 40 % 50 % 60 % 70 % 80 % 90 % 100 % 110 % 120 % 130 % 140 % 150 % Generating start scripts ... 100 % Congratulations! You successfully installed Jython 2.7.2a1+ to directory /opt/jython-2.7.2a. 12:35:39 06/13/20 Running: /bin/ln -sf /opt/jython-2.7.2a /opt/jython 12:35:39 06/13/20 Running: /bin/chown -R root:root /opt/jython-2.7.2a 12:35:39 06/13/20 Running: /bin/chown -h root:root /opt/jython 12:35:39 06/13/20 Installing node 12.6.0... 12:35:39 06/13/20 Extracting node-v12.6.0-linux-x64.tar.xz into /opt 12:35:39 06/13/20 Running: tar -xJf /opt/dist/app/node-v12.6.0-linux-x64.tar.xz -C /opt/ --no-xattrs --no-same-owner --no-same-permissions 12:35:41 06/13/20 Running: /bin/ln -sf /opt/node-v12.6.0-linux-x64 /opt/node 12:35:41 06/13/20 Running: /bin/chmod -R 755 /opt/node-v12.6.0-linux-x64/bin/ 12:35:41 06/13/20 Running: /bin/mkdir -p /opt/node/temp 12:35:41 06/13/20 Copied /install/community-edition-setup/static/system/initd/node to /opt/gluu/system 12:35:41 06/13/20 Copied /install/community-edition-setup/static/system/initd/passport to /opt/gluu/system 12:35:41 06/13/20 Running: /bin/chmod -R 755 /opt/gluu/system/node 12:35:41 06/13/20 Running: /bin/chmod -R 755 /opt/gluu/system/passport 12:35:41 06/13/20 Running: /bin/chown -R node:node /opt/node-v12.6.0-linux-x64 12:35:41 06/13/20 Running: /bin/chown -h node:node /opt/node 12:35:41 06/13/20 Running: /bin/mkdir -p /opt/gluu/node 12:35:42 06/13/20 Running: /bin/chown -R node:node /opt/gluu/node 12:35:42 06/13/20 Copying script files 12:35:42 06/13/20 Copied /install/community-edition-setup/static/scripts/logmanager.sh to /opt/gluu/bin 12:35:42 06/13/20 Copied /install/community-edition-setup/static/scripts/testBind.py to /opt/gluu/bin 12:35:42 06/13/20 Rendering encode.py 12:35:42 06/13/20 Running: /bin/chmod -R 700 /opt/gluu/bin 12:35:42 06/13/20 Encoding passwords 12:35:42 06/13/20 Error encoding passwords 12:35:42 06/13/20 Traceback (most recent call last): File "./setup.py", line 2018, in encode_passwords self.encoded_ox_ldap_pw = self.obscure(self.ldapPass) File "./setup.py", line 1539, in obscure data = data.encode('ascii') UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 18: ordinal not in range(128) 12:35:43 06/13/20 Encoding test passwords 12:35:43 06/13/20 Installing Gluu base... 12:35:43 06/13/20 Preparing files needed to run OpenId keys generator 12:35:43 06/13/20 Unpacking /opt/dist/gluu/oxauth.war... 12:35:43 06/13/20 Created dir: /opt/dist/gluu/tmp_oxauth 12:35:43 06/13/20 Running: /opt/jre/bin/jar xf /opt/dist/gluu/oxauth.war 12:35:44 06/13/20 Copying files to /home/jetty/lib... 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/bcprov-jdk15on-1.64.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/bcpkix-jdk15on-1.64.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/commons-lang-2.6.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/log4j-slf4j-impl-2.11.2.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/log4j-core-2.11.2.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/log4j-plugin-fluency-1.3.2.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/log4j-1.2-api-2.11.2.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/log4j-api-2.11.2.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/log4j-jul-2.11.2.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/commons-codec-1.7.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/commons-cli-1.3.1.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/commons-io-2.6.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/jackson-core-2.10.1.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/jackson-annotations-2.10.1.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/jackson-databind-2.10.1.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/jackson-datatype-json-org-2.10.1.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/jackson-module-jaxb-annotations-2.10.1.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/json-20180813.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/jettison-1.3.2.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/oxauth-model-4.1.1.Final.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/oxauth-client-4.1.1.Final.jar to /home/jetty/lib 12:35:44 06/13/20 Copied /opt/dist/gluu/tmp_oxauth/WEB-INF/lib/oxcore-util-4.1.1.Final.jar to /home/jetty/lib 12:35:44 06/13/20 Removed dir: /opt/dist/gluu/tmp_oxauth 12:35:44 06/13/20 Generating oxAuth OpenID Connect keys 12:35:44 06/13/20 Creating empty JKS keystore 12:35:44 06/13/20 Running: /bin/sh -c /opt/jre/bin/keytool -genkey -alias dummy -keystore /etc/certs/api-rs.jks -storepass secret -keypass secret -dname "CN=oxAuth CA Certificates" 12:35:45 06/13/20 Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /etc/certs/api-rs.jks -destkeystore /etc/certs/api-rs.jks -deststoretype pkcs12". 12:35:45 06/13/20 Running: /bin/sh -c /opt/jre/bin/keytool -delete -alias dummy -keystore /etc/certs/api-rs.jks -storepass secret -keypass secret -dname "CN=oxAuth CA Certificates" 12:35:45 06/13/20 Runnning: /bin/sh -c /opt/jre/bin/java -Dlog4j.defaultInitOverride=true -cp /home/jetty/lib/bcprov-jdk15on-1.64.jar:/home/jetty/lib/bcpkix-jdk15on-1.64.jar:/home/jetty/lib/commons-lang-2.6.jar:/home/jetty/lib/log4j-slf4j-impl-2.11.2.jar:/home/jetty/lib/log4j-core-2.11.2.jar:/home/jetty/lib/log4j-plugin-fluency-1.3.2.jar:/home/jetty/lib/log4j-1.2-api-2.11.2.jar:/home/jetty/lib/log4j-api-2.11.2.jar:/home/jetty/lib/log4j-jul-2.11.2.jar:/home/jetty/lib/commons-codec-1.7.jar:/home/jetty/lib/commons-cli-1.3.1.jar:/home/jetty/lib/commons-io-2.6.jar:/home/jetty/lib/jackson-core-2.10.1.jar:/home/jetty/lib/jackson-annotations-2.10.1.jar:/home/jetty/lib/jackson-databind-2.10.1.jar:/home/jetty/lib/jackson-datatype-json-org-2.10.1.jar:/home/jetty/lib/jackson-module-jaxb-annotations-2.10.1.jar:/home/jetty/lib/json-20180813.jar:/home/jetty/lib/jettison-1.3.2.jar:/home/jetty/lib/oxauth-model-4.1.1.Final.jar:/home/jetty/lib/oxauth-client-4.1.1.Final.jar:/home/jetty/lib/oxcore-util-4.1.1.Final.jar org.gluu.oxauth.util.KeyGenerator -keystore /etc/certs/api-rs.jks -keypasswd secret -sig_keys RS256 RS384 RS512 ES256 ES384 ES512 -enc_keys RS256 RS384 RS512 ES256 ES384 ES512 -dnname "CN=oxAuth CA Certificates" -expiration 365 12:35:53 06/13/20 Generating oxAuth OpenID Connect keys 12:35:53 06/13/20 Creating empty JKS keystore 12:35:53 06/13/20 Running: /bin/sh -c /opt/jre/bin/keytool -genkey -alias dummy -keystore /etc/certs/api-rp.jks -storepass secret -keypass secret -dname "CN=oxAuth CA Certificates" 12:35:53 06/13/20 Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /etc/certs/api-rp.jks -destkeystore /etc/certs/api-rp.jks -deststoretype pkcs12". 12:35:53 06/13/20 Running: /bin/sh -c /opt/jre/bin/keytool -delete -alias dummy -keystore /etc/certs/api-rp.jks -storepass secret -keypass secret -dname "CN=oxAuth CA Certificates" 12:35:53 06/13/20 Runnning: /bin/sh -c /opt/jre/bin/java -Dlog4j.defaultInitOverride=true -cp /home/jetty/lib/bcprov-jdk15on-1.64.jar:/home/jetty/lib/bcpkix-jdk15on-1.64.jar:/home/jetty/lib/commons-lang-2.6.jar:/home/jetty/lib/log4j-slf4j-impl-2.11.2.jar:/home/jetty/lib/log4j-core-2.11.2.jar:/home/jetty/lib/log4j-plugin-fluency-1.3.2.jar:/home/jetty/lib/log4j-1.2-api-2.11.2.jar:/home/jetty/lib/log4j-api-2.11.2.jar:/home/jetty/lib/log4j-jul-2.11.2.jar:/home/jetty/lib/commons-codec-1.7.jar:/home/jetty/lib/commons-cli-1.3.1.jar:/home/jetty/lib/commons-io-2.6.jar:/home/jetty/lib/jackson-core-2.10.1.jar:/home/jetty/lib/jackson-annotations-2.10.1.jar:/home/jetty/lib/jackson-databind-2.10.1.jar:/home/jetty/lib/jackson-datatype-json-org-2.10.1.jar:/home/jetty/lib/jackson-module-jaxb-annotations-2.10.1.jar:/home/jetty/lib/json-20180813.jar:/home/jetty/lib/jettison-1.3.2.jar:/home/jetty/lib/oxauth-model-4.1.1.Final.jar:/home/jetty/lib/oxauth-client-4.1.1.Final.jar:/home/jetty/lib/oxcore-util-4.1.1.Final.jar org.gluu.oxauth.util.KeyGenerator -keystore /etc/certs/api-rp.jks -keypasswd secret -sig_keys RS256 RS384 RS512 ES256 ES384 ES512 -enc_keys RS256 RS384 RS512 ES256 ES384 ES512 -dnname "CN=oxAuth CA Certificates" -expiration 365 12:35:58 06/13/20 Generating oxAuth OpenID Connect keys 12:35:58 06/13/20 Creating empty JKS keystore 12:35:58 06/13/20 Running: /bin/sh -c /opt/jre/bin/keytool -genkey -alias dummy -keystore /etc/certs/scim-rs.jks -storepass F0Y1vZNTuCSl -keypass F0Y1vZNTuCSl -dname "CN=oxAuth CA Certificates" 12:35:58 06/13/20 Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /etc/certs/scim-rs.jks -destkeystore /etc/certs/scim-rs.jks -deststoretype pkcs12". 12:35:58 06/13/20 Running: /bin/sh -c /opt/jre/bin/keytool -delete -alias dummy -keystore /etc/certs/scim-rs.jks -storepass F0Y1vZNTuCSl -keypass F0Y1vZNTuCSl -dname "CN=oxAuth CA Certificates" 12:35:59 06/13/20 Runnning: /bin/sh -c /opt/jre/bin/java -Dlog4j.defaultInitOverride=true -cp /home/jetty/lib/bcprov-jdk15on-1.64.jar:/home/jetty/lib/bcpkix-jdk15on-1.64.jar:/home/jetty/lib/commons-lang-2.6.jar:/home/jetty/lib/log4j-slf4j-impl-2.11.2.jar:/home/jetty/lib/log4j-core-2.11.2.jar:/home/jetty/lib/log4j-plugin-fluency-1.3.2.jar:/home/jetty/lib/log4j-1.2-api-2.11.2.jar:/home/jetty/lib/log4j-api-2.11.2.jar:/home/jetty/lib/log4j-jul-2.11.2.jar:/home/jetty/lib/commons-codec-1.7.jar:/home/jetty/lib/commons-cli-1.3.1.jar:/home/jetty/lib/commons-io-2.6.jar:/home/jetty/lib/jackson-core-2.10.1.jar:/home/jetty/lib/jackson-annotations-2.10.1.jar:/home/jetty/lib/jackson-databind-2.10.1.jar:/home/jetty/lib/jackson-datatype-json-org-2.10.1.jar:/home/jetty/lib/jackson-module-jaxb-annotations-2.10.1.jar:/home/jetty/lib/json-20180813.jar:/home/jetty/lib/jettison-1.3.2.jar:/home/jetty/lib/oxauth-model-4.1.1.Final.jar:/home/jetty/lib/oxauth-client-4.1.1.Final.jar:/home/jetty/lib/oxcore-util-4.1.1.Final.jar org.gluu.oxauth.util.KeyGenerator -keystore /etc/certs/scim-rs.jks -keypasswd F0Y1vZNTuCSl -sig_keys RS256 RS384 RS512 ES256 ES384 ES512 -enc_keys RS256 RS384 RS512 ES256 ES384 ES512 -dnname "CN=oxAuth CA Certificates" -expiration 365 12:36:03 06/13/20 Generating oxAuth OpenID Connect keys 12:36:03 06/13/20 Creating empty JKS keystore 12:36:03 06/13/20 Running: /bin/sh -c /opt/jre/bin/keytool -genkey -alias dummy -keystore /install/community-edition-setup/output/scim-rp.jks -storepass secret -keypass secret -dname "CN=oxAuth CA Certificates" 12:36:03 06/13/20 Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /install/community-edition-setup/output/scim-rp.jks -destkeystore /install/community-edition-setup/output/scim-rp.jks -deststoretype pkcs12". 12:36:03 06/13/20 Running: /bin/sh -c /opt/jre/bin/keytool -delete -alias dummy -keystore /install/community-edition-setup/output/scim-rp.jks -storepass secret -keypass secret -dname "CN=oxAuth CA Certificates" 12:36:04 06/13/20 Runnning: /bin/sh -c /opt/jre/bin/java -Dlog4j.defaultInitOverride=true -cp /home/jetty/lib/bcprov-jdk15on-1.64.jar:/home/jetty/lib/bcpkix-jdk15on-1.64.jar:/home/jetty/lib/commons-lang-2.6.jar:/home/jetty/lib/log4j-slf4j-impl-2.11.2.jar:/home/jetty/lib/log4j-core-2.11.2.jar:/home/jetty/lib/log4j-plugin-fluency-1.3.2.jar:/home/jetty/lib/log4j-1.2-api-2.11.2.jar:/home/jetty/lib/log4j-api-2.11.2.jar:/home/jetty/lib/log4j-jul-2.11.2.jar:/home/jetty/lib/commons-codec-1.7.jar:/home/jetty/lib/commons-cli-1.3.1.jar:/home/jetty/lib/commons-io-2.6.jar:/home/jetty/lib/jackson-core-2.10.1.jar:/home/jetty/lib/jackson-annotations-2.10.1.jar:/home/jetty/lib/jackson-databind-2.10.1.jar:/home/jetty/lib/jackson-datatype-json-org-2.10.1.jar:/home/jetty/lib/jackson-module-jaxb-annotations-2.10.1.jar:/home/jetty/lib/json-20180813.jar:/home/jetty/lib/jettison-1.3.2.jar:/home/jetty/lib/oxauth-model-4.1.1.Final.jar:/home/jetty/lib/oxauth-client-4.1.1.Final.jar:/home/jetty/lib/oxcore-util-4.1.1.Final.jar org.gluu.oxauth.util.KeyGenerator -keystore /install/community-edition-setup/output/scim-rp.jks -keypasswd secret -sig_keys RS256 RS384 RS512 ES256 ES384 ES512 -enc_keys RS256 RS384 RS512 ES256 ES384 ES512 -dnname "CN=oxAuth CA Certificates" -expiration 365 12:36:08 06/13/20 ***** Error caught in main loop ***** 12:36:08 06/13/20 Traceback (most recent call last): File "./setup.py", line 5554, in do_installation self.install_gluu_base() File "./setup.py", line 2431, in install_gluu_base self.encoded_ldapTrustStorePass = self.encoded_opendj_p12_pass AttributeError: 'Setup' object has no attribute 'encoded_opendj_p12_pass' ``` setup_error.log: ``` 12:29:51 06/13/20 Installing Gluu Server 12:35:42 06/13/20 Error encoding passwords 12:35:42 06/13/20 Traceback (most recent call last): File "./setup.py", line 2018, in encode_passwords self.encoded_ox_ldap_pw = self.obscure(self.ldapPass) File "./setup.py", line 1539, in obscure data = data.encode('ascii') UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in position 18: ordinal not in range(128) 12:35:45 06/13/20 Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /etc/certs/api-rs.jks -destkeystore /etc/certs/api-rs.jks -deststoretype pkcs12". 12:35:53 06/13/20 Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /etc/certs/api-rp.jks -destkeystore /etc/certs/api-rp.jks -deststoretype pkcs12". 12:35:58 06/13/20 Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /etc/certs/scim-rs.jks -destkeystore /etc/certs/scim-rs.jks -deststoretype pkcs12". 12:36:03 06/13/20 Warning: The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /install/community-edition-setup/output/scim-rp.jks -destkeystore /install/community-edition-setup/output/scim-rp.jks -deststoretype pkcs12". 12:36:08 06/13/20 ***** Error caught in main loop ***** 12:36:08 06/13/20 Traceback (most recent call last): File "./setup.py", line 5554, in do_installation self.install_gluu_base() File "./setup.py", line 2431, in install_gluu_base self.encoded_ldapTrustStorePass = self.encoded_opendj_p12_pass AttributeError: 'Setup' object has no attribute 'encoded_opendj_p12_pass' ```

By Devrim Yatar staff 15 Jun 2020 at 4:47 a.m. CDT

Devrim Yatar gravatar
Hi, It is due to password you are using. Please use ascii characters for password. If you want to use non-ascii characters in your password, you can change this line (line 1539): ``` data = data.encode('ascii') ``` to ``` data = bytes(data) ``` But I am not sure if it will have side effect on Java codes.