Hamid Narimani
04/18/2023, 7:52 PMtitle: "Not Found", status: 404, detail: "404 NOT_FOUND "User is not registered"",…}
detail
:
"404 NOT_FOUND \"User is not registered\""
status
:
404
title
:
"Not Found"
traceId
:
"7d0cd6434a11c3a3"
I bring up the new GD in different AWS regions with new EKS, then back up and restore the DB .
User creation works fine, but I can't access my existing user. I did remap the user to the Org as well,
{"data":{"id":"insights","type":"user","attributes":{"authenticationId":"CiQwMjRmNWU3Yy0xxxxxxxs"}},"links":{"self":"<https://insights.xxxx/api/v1/entities/users/insights>"}}%
Hamid Narimani
04/18/2023, 7:57 PMRobert Moucha
04/19/2023, 7:33 AMauthenticationId
attribute exactly matches the cn
attribute your identity provider sets in oauth2 token.
If you're using built-in Identity provider, migration using database backup/restore may not be sufficient if you didn't also migrated "dex" database. Check authentication ids for logins as they are returned by GET /api/v1/auth/users
API. There authenticationids must match authenticationids of users in /api/v1/entities/usersHamid Narimani
04/19/2023, 3:19 PMGET /api/v1/auth/users
{
"email": "insights@insights.xxx.zz",
"password": null,
"displayName": "DevOps",
"authenticationId": "CiQ4MjI2NGE4My00MmZlLTQ5MDMtYThiYy03MmJmMTNjMWExZTISBWxvY2Fs"
},
GET /api/v1/entities/users
{
"id": "insights.zz",
"type": "user",
"attributes": {
"authenticationId": "CiQ4MjI2NGE4My00MmZlLTQ5MDMtYThiYy03MmJmMTNjMWExZTISBWxvY2Fs"
},
"links": {
"self": "<https://insights.xxx.zz/api/v1/entities/users/insights.zz>"
}
},
}
},
Hamid Narimani
04/19/2023, 3:19 PMHamid Narimani
04/19/2023, 3:26 PMhelm3 upgrade --namespace gooddata-cn-new --version 2.2.1 \
-f customized-values-gooddata-cn.yaml \
gooddata-cn-new gooddata/gooddata-cn
# file name: customized-values-gooddata-cn.yaml
service:
redis:
hosts:
- <http://new-insights-xxx-cache.amazonaws.com|new-insights-xxx-cache.amazonaws.com>
port: 6379
clusterMode: false
postgres:
host: <http://insight-xxx.rds.amazonaws.com|insight-xxx.rds.amazonaws.com>
port: 5432
username: xxxx
password: yyyyy
deployRedisHA: false
deployPostgresHA: false
ingress:
annotations:
#<http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>: nginx-new
<http://nginx.ingress.kubernetes.io/force-ssl-redirect|nginx.ingress.kubernetes.io/force-ssl-redirect>: "true"
dex:
ingress:
authHost: 'auth.xxx.zz'
annotations:
<http://kubernetes.io/ingress.class|kubernetes.io/ingress.class>: nginx-new
license:
key: "key/eyJhddffffffffff"
Hamid Narimani
04/19/2023, 3:28 PM#your-org-definition.yaml
apiVersion: <http://controllers.gooddata.com/v1|controllers.gooddata.com/v1>
kind: Organization
metadata:
name: xxx-org-zz
spec:
id: xxx
name: "XXX, INC."
hostname: insights.xxx.zz
adminGroup: adminGroup
adminUser: admin
adminUserToken: "$5xxxxxxxxxuNG80"
Hamid Narimani
04/19/2023, 3:31 PMurl -v --request POST \
--header "Authorization: Bearer $GDC_API_TOKEN" \
--header 'Content-Type: application/vnd.gooddata.api+json' \
--data '{
"data": {
"id": "insights",
"type": "user",
"attributes": {
"authenticationId": "CiQ4MjI2NGE4My00MmZlLTQ5MDMtYThiYy03MmJmMTNjMWExZTISBWxvY2Fs"
},
"relationships": {
"userGroups": {
"data": [ {
"id": "adminGroup",
"type": "userGroup"
} ]
}
}
}
}' <https://insights.xxx.zz/api/v1/entities/users>
Robert Moucha
04/20/2023, 1:25 PMRobert Moucha
04/20/2023, 1:27 PMHamid Narimani
04/20/2023, 2:42 PMRobert Moucha
04/21/2023, 11:02 AM