一键部署安装失败

  • Choerodon平台版本: 0.13.0

  • 遇到问题的执行步骤:
    安装提示
    一键部署

  • 文档地址:

  • 环境信息(如:节点信息):
    单节点

  • 报错日志:
    2019-02-25T01:45:46.669641Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    2019-02-25T01:45:46.675222Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
    2019-02-25T01:45:46.675312Z 0 [ERROR] Aborting

  • 原因分析:

    提出您分析问题的过程,以便我们能更准确的找到问题所在
    docker描述:
    “Volumes”: {
    “/var/lib/mysql”: {}
    }

    “Mounts”: [
    {
    “Type”: “bind”,
    “Source”: “/var/lib/kubelet/pods/bcbfcb83-3754-11e9-8851-00155d263793/volumes/kubernetes.io~nfs/pvc-b7222988-3754-11e9-8851-00155d263793”,
    “Destination”: “/var/lib/mysql”,
    “Mode”: “”,
    “RW”: true,
    “Propagation”: “rprivate”
    },
    {
    “Type”: “bind”,
    “Source”: “/var/lib/kubelet/pods/bcbfcb83-3754-11e9-8851-00155d263793/volume-subpaths/config-volume/mysql/1”,
    “Destination”: “/etc/mysql/conf.d/my.cnf”,
    “Mode”: “ro”,
    “RW”: false,
    “Propagation”: “rprivate”
    },
    {
    “Type”: “bind”,
    “Source”: “/var/lib/kubelet/pods/bcbfcb83-3754-11e9-8851-00155d263793/volumes/kubernetes.io~secret/default-token-8qphz”,
    “Destination”: “/var/run/secrets/kubernetes.io/serviceaccount”,
    “Mode”: “ro”,
    “RW”: false,
    “Propagation”: “rprivate”
    },
    {
    “Type”: “bind”,
    “Source”: “/var/lib/kubelet/pods/bcbfcb83-3754-11e9-8851-00155d263793/etc-hosts”,
    “Destination”: “/etc/hosts”,
    “Mode”: “”,
    “RW”: true,
    “Propagation”: “rprivate”
    },
    {
    “Type”: “bind”,
    “Source”: “/var/lib/kubelet/pods/bcbfcb83-3754-11e9-8851-00155d263793/containers/mysql/0ea9fe2a”,
    “Destination”: “/dev/termination-log”,
    “Mode”: “”,
    “RW”: true,
    “Propagation”: “rprivate”
    }
    ]

pod上信息:
Mounts:
/etc/mysql/conf.d/my.cnf from config-volume (rw)
/var/lib/mysql from mysql (rw)
/var/run/secrets/kubernetes.io/serviceaccount from default-token-8qphz (ro)

Volumes:
mysql:
Type: PersistentVolumeClaim (a reference to a PersistentVolumeClaim in the same namespace)
ClaimName: mysql
ReadOnly: false
config-volume:
Type: ConfigMap (a volume populated by a ConfigMap)
Name: mysql-cm
Optional: false
default-token-8qphz:
Type: Secret (a volume populated by a Secret)
SecretName: default-token-8qphz
Optional: false

  • 疑问:
    我是重装了系统第一次安装也会报改错

请问是哪个数据库?

mysql和gitlab-mysql都存在该问题

我看到pod里的Volumes三列都是false,不知道有没有影响

你的操作系统是什么版本的

Linux node1 3.10.0-327.el7.x86_64 #1 SMP Thu Nov 19 22:10:57 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux

CentOS Linux release 7.2.1511 (Core)

清理干净又安装了一次还是一样的

Hi,私信个远程连接地址 ,我们帮你看看吧

部署 choerodon platform

执行这一步出错了,数据库就是CrashLoopBackOff状态了。日志也显示

  • 报错日志:
    2019-02-25T01:45:46.669641Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
    2019-02-25T01:45:46.675222Z 0 [ERROR] --initialize specified but the data directory has files in it. Aborting.
    2019-02-25T01:45:46.675312Z 0 [ERROR] Aborting

请问怎么解决