-
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
- 疑问:
我是重装了系统第一次安装也会报改错