By: William Kuntz user 03 Oct 2018 at 2:33 p.m. CDT

7 Responses
William Kuntz gravatar
We have a freshly installed 3.1.3.1 server that we are using to test our upgrade process. I created a few users, and modified a few scripts, but have not done any major customizations. When running the upgrade script it fails with the following error: ``` Backing up /opt/shibboleth-idp to /opt/upd/3.1.4upg/backup_2018-10-03.19:30:07 Updating idp-metadata.xml Updadting shibboleth-idp Traceback (most recent call last): File "/opt/upd/3.1.4upg/bin/update.py", line 1355, in <module> updaterObj.update_shib() File "/opt/upd/3.1.4upg/bin/update.py", line 1172, in update_shib os.system('cp {} /opt/gluu/jetty/identity/conf/shibboleth3/idp'.format(os.path.join(self.app_dir,'temp/metadata-providers.xml.vm'))) ValueError: zero length field name in format ``` GLUU.[root@openid-dev ~]#

By Chris Blanton user 03 Oct 2018 at 2:46 p.m. CDT

Chris Blanton gravatar
William, This seems like a CentOS 6 python 2.6 issue with the way it handles the `.format` function. In python 2.6 you have to be explicit on the numbering for `.format` so it should be: ``` os.system('cp {1} /opt/gluu/jetty/identity/conf/shibboleth3/idp'.format(os.path.join(self.app_dir,'temp/metadata-providers.xml.vm'))) ``` Working on a Centos 6 specific patch now and will send it to you ASAP.

By Chris Blanton user 03 Oct 2018 at 3:03 p.m. CDT

Chris Blanton gravatar
Please try this upgrade script [https://repo.gluu.org/upd/3-1-4-upg-centos6.sh](https://repo.gluu.org/upd/3-1-4-upg-centos6.sh)

By William Kuntz user 03 Oct 2018 at 3:04 p.m. CDT

William Kuntz gravatar
I assume that I will need to restore my Gluu install from backup, as the script will not resume where it left off? Bill

By Chris Blanton user 03 Oct 2018 at 3:09 p.m. CDT

Chris Blanton gravatar
Bill, > I assume that I will need to restore my Gluu install from backup, as the script will not resume where it left off? I would restore from backup to avoid any potential conflicts. I can't immediately see how it would cause issues, but better safe than sorry.

By William Kuntz user 03 Oct 2018 at 3:27 p.m. CDT

William Kuntz gravatar
I get the same error. Updating idp-metadata.xml Updadting shibboleth-idp Traceback (most recent call last): File "/opt/upd/3.1.4upg/bin/update.py", line 1355, in <module> updaterObj.update_shib() File "/opt/upd/3.1.4upg/bin/update.py", line 1172, in update_shib os.system('cp {} /opt/gluu/jetty/identity/conf/shibboleth3/idp'.format(os.path.join(self.app_dir,'temp/metadata-providers.xml.vm'))) ValueError: zero length field name in format Bill

By Chris Blanton user 03 Oct 2018 at 4:46 p.m. CDT

Chris Blanton gravatar
Apologies, we didn't upload the correct script. It's been updated and I tested it again on a CentOS 6 3.1.3.1 instance, just to be sure. [https://repo.gluu.org/upd/3-1-4-upg-centos6.sh](https://repo.gluu.org/upd/3-1-4-upg-centos6.sh)

By William Kuntz user 04 Oct 2018 at 6:36 a.m. CDT

William Kuntz gravatar
That worked. Thanks!