shikanon / kubeflow-manifests

kubeflow国内一键安装文件
GNU General Public License v3.0
338 stars 117 forks source link

ml-pipeline-mysql:5.7-f8fcd start 报错 #51

Open LeePeterLee opened 3 years ago

LeePeterLee commented 3 years ago

启动mysql的pod时,状态一直是CrashLoopBackOff, 报错日志如下: 2021-07-23 03:31:43+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.33-1debian10 started. 2021-07-23 03:31:43+00:00 [Note] [Entrypoint]: Switching to dedicated user 'mysql' 2021-07-23 03:31:43+00:00 [Note] [Entrypoint]: Entrypoint script for MySQL Server 5.7.33-1debian10 started. 2021-07-23 03:31:43+00:00 [Note] [Entrypoint]: Initializing database files 2021-07-23T03:31:43.160315Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). mysqld: Can't create/write to file '/tmp/ibEPpcwj' (Errcode: 13 - Permission denied) 2021-07-23T03:31:43.163387Z 0 [ERROR] InnoDB: Unable to create temporary file; errno: 13 2021-07-23T03:31:43.163396Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error 2021-07-23T03:31:43.163402Z 0 [ERROR] Plugin 'InnoDB' init function returned error. 2021-07-23T03:31:43.163405Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed. 2021-07-23T03:31:43.163408Z 0 [ERROR] Failed to initialize builtin plugins. 2021-07-23T03:31:43.163411Z 0 [ERROR] Aborting

找到问题后,尝试修改017-pipeline-env-platform-agnostic-multi-user.yaml

apiVersion: apps/v1 kind: Deployment metadata: labels: app: mysql application-crd-id: kubeflow-pipelines name: mysql namespace: kubeflow spec: selector: matchLabels: app: mysql application-crd-id: kubeflow-pipelines strategy: type: Recreate template: metadata: labels: app: mysql application-crd-id: kubeflow-pipelines spec: containers: - command:

新增了command参数配置,貌似不起作用, 还是包上面的问题,求指导 @shikanon

shikanon commented 3 years ago

@LeePeterLee 你这个yaml文件写法肯定有问题啊,command 和 args 两个都重复了,会被覆盖的,这个镜像应该是没有权限问题才对的,你可以进去到启动容器里面查看下。