Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[installation]使用Helm安装后,zadig-zadig-dex报错 #4044

Open
1 of 2 tasks
zhengzhangmin opened this issue Mar 16, 2025 · 6 comments
Open
1 of 2 tasks

[installation]使用Helm安装后,zadig-zadig-dex报错 #4044

zhengzhangmin opened this issue Mar 16, 2025 · 6 comments
Assignees
Labels
installation installation problem

Comments

@zhengzhangmin
Copy link

安装方式 / Installation method

  • 脚本安装 / Script Installation
  • Helm 安装 / Helm Installation

描述你遇到的问题 / Describe the bug

使用helm安装完成后,zadig-zadig-dex报错,如下:

Image Image 我尝试把dex的表删了,再次重启zadig-zadig-dex的容器,还是报一样的错误。 后面我又实用官方脚本删除了zadig,然后也将数据库的dex、user库删除了,重新使用helm脚本部署zadig,还是一样zadig-zadig-dex报错,错误也都是上面的截图,请问如何处理这个问题

安装参数 / Installation Parameters

helm repo add koderover-chart https://koderover.tencentcloudcr.com/chartrepo/chart

helm repo update

helm upgrade --install --create-namespace -n zadig --set global.extensions.extAuth.extauthzServerRef.namespace=zadig --set endpoint.type=IP --set endpoint.IP=192.168.0.17 --set gloo.gatewayProxies.gatewayProxy.service.type=NodePort --set endpoint.type=IP --set endpoint.IP=192.168.0.17 --set gloo.gatewayProxies.gatewayProxy.service.httpNodePort=30277 --set dex.fullnameOverride=zadig-zadig-dex --set dex.config.issuer=http://zadig-zadig-dex:5556/dex --set "dex.config.staticClients[0].redirectURIs[0]=http://192.168.0.17:30277/api/v1/callback,dex.config.staticClients[0].id=zadig,dex.config.staticClients[0].name=zadig,dex.config.staticClients[0].secret=ZXhhbXBsZS1hcHAtc2VjcmV0" --set tags.mysql=false --set connections.mysql.host=192.168.0.14:3308 --set connections.mysql.auth.user=root --set connections.mysql.auth.password=root135@$^ --set dex.config.storage.config.host=192.168.0.14 --set dex.config.storage.config.port=3308 --set dex.config.storage.config.user=root --set dex.config.storage.config.password=root135@$^ --set connections.mongodb.db=zadig --set tags.mongodb=false --set connections.mongodb.connectionString='mongodb://192.168.0.17:30392' --set minio.persistence.pv=true --set minio.persistence.size=30Gi --set tags.minio=true --set minio.persistence.storageClass=csi-rbdfs-sc --version=3.3.0 zadig-zadig koderover-chart/zadig

脚本安装日志 / Script installation log

No response

Pod 状态列表 / Pod Status List

Image

异常 Pod 的 Event / Abnormal Pod Event

No response

PVC/PV/Storage Class 的状态 / PVC/PV/Storage Class Status

No response

Zadig 版本 / Zadig version

3.3.0

Kubernetes 版本 / Kubernetes version

1.28.6

安装环境 / Installation Environment

No response

附加信息 / Additional context

No response

@zhengzhangmin zhengzhangmin added the installation installation problem label Mar 16, 2025
@PetrusZ
Copy link
Contributor

PetrusZ commented Mar 17, 2025

你没删错吧,这个报错就是说dex库的client表还存在啊

@zhengzhangmin
Copy link
Author

你没删错吧,这个报错就是说dex库的client表还存在啊

没有删错,我把dex库的表都删了,然后重启zadig-zadig-dex还是报那个错误,但是dex的表又被重新建回来了

@PetrusZ
Copy link
Contributor

PetrusZ commented Mar 17, 2025

我装了一遍没有任何问题

@Jordens1
Copy link

Jordens1 commented Mar 21, 2025

我也是最新的3.3.0,也是类似问题:
time="2025-03-21T05:38:26Z" level=info msg="config issuer: http://zadig-zadig-dex:5556/dex"
failed to initialize storage: failed to perform migrations: migration 1 statement 1 failed: Error 1071: Specified key was too long; max key length is 767 bytes

@PetrusZ
Copy link
Contributor

PetrusZ commented Mar 21, 2025

我也是最新的3.3.0,也是类似问题: time="2025-03-21T05:38:26Z" level=info msg="config issuer: http://zadig-zadig-dex:5556/dex" failed to initialize storage: failed to perform migrations: migration 1 statement 1 failed: Error 1071: Specified key was too long; max key length is 767 bytes

这是数据库的兼容问题,检查一下数据库的配置吧

@Jordens1
Copy link

我也是最新的3.3.0,也是类似问题: time="2025-03-21T05:38:26Z" level=info msg="config issuer: http://zadig-zadig-dex:5556/dex" failed to initialize storage: failed to perform migrations: migration 1 statement 1 failed: Error 1071: Specified key was too long; max key length is 767 bytes

这是数据库的兼容问题,检查一下数据库的配置吧

好的,看到了,官方默认是8.0版本,我这5.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
installation installation problem
Projects
None yet
Development

No branches or pull requests

3 participants