By: Sahil Gupta user 16 Nov 2020 at 2:44 p.m. CST

8 Responses
Sahil Gupta gravatar
Dear team, We are trying to upgrade Gluu from 4.1 to 4.2.1 with couchbase as backend database. This is the error we get. ``` root@iam-stg:~# python3 upg4xto421.py Starting upgrade. CONTINUE? (y|N): y Downloading Community Edition Setup 4.2.1 Extracting CES package 2020-11-16 20:41:17 URL:https://raw.githubusercontent.com/GluuFederation/community-edition-setup/master/pylib/generate_properties.py [26653/26653] -> "/root/ces_current/pylib/generate_properties.py" [1] Detected OS ubuntu 18 Detected OS ubuntu 18 Collecting properties Traceback (most recent call last): File "upg4xto421.py", line 1612, in <module> updaterObj.download_ces() File "upg4xto421.py", line 227, in download_ces self.setup_prop = generate_properties(True) File "/root/ces_current/pylib/generate_properties.py", line 527, in generate_properties o_issuer = urlparse(oxAuthConfDynamic['issuer']) TypeError: string indices must be integers ``` Could you please help asap?

By Devrim Yatar staff 18 Nov 2020 at 2:20 a.m. CST

Devrim Yatar gravatar
Hi, I am going to test your case, and try to fix the issue. Regards.

By Devrim Yatar staff 18 Nov 2020 at 3:45 a.m. CST

Devrim Yatar gravatar
Hi, I successfully upgraded from 4.1 to 4.2.1 without issue. Please execute this command and send the result ``` # curl -u CBAdminUser:CBAdminPassword -d "statement=SELECT oxAuthConfDynamic.issuer from gluu USE KEYS 'configuration_oxauth'" http://localhost:8093/query/service ``` My result is ``` { "requestID": "340a51ea-afe3-4dd7-8a17-933ed992fba1", "signature": {"issuer":"json"}, "results": [ {"issuer":"https://c1.gluu.org"} ], "status": "success", "metrics": {"elapsedTime": "4.701132ms","executionTime": "4.625962ms","resultCount": 1,"resultSize": 32} } ```

By Devrim Yatar staff 18 Nov 2020 at 3:46 a.m. CST

Devrim Yatar gravatar
Please also send `ces_current/update.log` and `ces_current/update_error.log`

By Sahil Gupta user 18 Nov 2020 at 7:43 a.m. CST

Sahil Gupta gravatar
Thanks Mustafa Baser, I was able to get this working after trying again. Setup was upgraded successfully. But now admin user is being logged in as a normal user. This is the error I get ```2020-11-17 03:13:41,652 WARN [qtp296347592-21] [org.gluu.oxtrust.service.AttributeService] (AttributeService.java:469) - Failed to find attribute 'memberOf' metadata

By Devrim Yatar staff 18 Nov 2020 at 1:25 p.m. CST

Devrim Yatar gravatar
@Yuriy.Movchan What may be the reason?

By Devrim Yatar staff 18 Nov 2020 at 1:49 p.m. CST

Devrim Yatar gravatar
Hi Sahil, Upgrade script does not touch user and group entries when upgrading from 4.1 to 4.2.1 Can you compare admin gorup dn with that of admin user as in attached image.

By Yuriy Movchan staff 19 Nov 2020 at 6:24 a.m. CST

Yuriy Movchan gravatar
Hi Sahil, We also need to check document with "_" document id. It's `o=gluu` entry. It contains attribute ` "gluuManagerGroup": "inum=60B7,ou=groups,o=gluu"`. This one define manager group.

By Devrim Yatar staff 27 Nov 2020 at 12:05 a.m. CST

Devrim Yatar gravatar
Closing due to inactivity. Please re-open if needed.