./c7nctl install -c config.yml --no-timeout --version=0.21

  • Choerodon平台版本: 0.21

  • 遇到问题的执行步骤:
    2020/03/27 18:21:53 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 10.244.127.116:80: i/o timeout’ retry …
    2020/03/27 18:21:53 [INFO] installed register-server
    2020/03/27 18:21:53 [DEBUG] register-server: resource url is http://register-server:8000/eureka/
    2020/03/27 18:21:54 [INFO] start install base-service
    2020/03/27 18:21:54 [INFO] Waiting mysql running
    2020/03/27 18:21:54 [DEBUG] mysql: resource password is password
    2020/03/27 18:21:54 [DEBUG] checking mysql:3306
    2020/03/27 18:21:54 [INFO] Waiting register-server running
    2020/03/27 18:21:54 [DEBUG] register-server: resource url is http://register-server:8000/eureka/
    2020/03/27 18:21:54 [DEBUG] checking http://register-server:8000/eureka/apps
    2020/03/27 18:22:24 [DEBUG] check register-server health failed with msg: ‘rpc error: code = Unknown desc = Get http://register-server:8000/eureka/apps: dial tcp 10.244.90.117:800
    0: i/o timeout’ retry …2020/03/27 18:22:43 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 10.244.127.116:80: i/o timeout’ retry …
    2020/03/27 18:22:45 [INFO] executing base-service , predb
    2020/03/27 18:22:45 [DEBUG] executing: CREATE USER IF NOT EXISTS ‘choerodon’@’%’ IDENTIFIED BY ‘password’;
    2020/03/27 18:22:45 [Error] install failed
    Error: Error 1130: Host ‘10.244.0.14’ is not allowed to connect to this MySQL server
    Usage:
    c7nctl install [flags]

Flags:
-c, --config-file string User Config file to read from, User define config by this file
–debug enable debug output
-h, --help help for install
–no-timeout disable install job timeout
–prefix string add prefix to all helm release
-r, --resource-file string Resource file to read from, It provide which app should be installed
–skip-input use default username and password to avoid user input
–version string specify a version

Global Flags:
–config string config file (default is $HOME/.c7n.yaml)
-o, --orgCode string org code
-p, --proCode string pro code

Error 1130: Host ‘10.244.0.14’ is not allowed to connect to this MySQL server

  • 文档地址:

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

  • 报错日志:
    2020/03/27 18:21:53 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 10.244.127.116:80: i/o timeout’ retry …
    2020/03/27 18:21:53 [INFO] installed register-server
    2020/03/27 18:21:53 [DEBUG] register-server: resource url is http://register-server:8000/eureka/
    2020/03/27 18:21:54 [INFO] start install base-service
    2020/03/27 18:21:54 [INFO] Waiting mysql running
    2020/03/27 18:21:54 [DEBUG] mysql: resource password is password
    2020/03/27 18:21:54 [DEBUG] checking mysql:3306
    2020/03/27 18:21:54 [INFO] Waiting register-server running
    2020/03/27 18:21:54 [DEBUG] register-server: resource url is http://register-server:8000/eureka/
    2020/03/27 18:21:54 [DEBUG] checking http://register-server:8000/eureka/apps
    2020/03/27 18:22:24 [DEBUG] check register-server health failed with msg: ‘rpc error: code = Unknown desc = Get http://register-server:8000/eureka/apps: dial tcp 10.244.90.117:800
    0: i/o timeout’ retry …2020/03/27 18:22:43 [DEBUG] check gitlab health failed with msg: ‘rpc error: code = Unknown desc = Get http://gitlab/help: dial tcp 10.244.127.116:80: i/o timeout’ retry …
    2020/03/27 18:22:45 [INFO] executing base-service , predb
    2020/03/27 18:22:45 [DEBUG] executing: CREATE USER IF NOT EXISTS ‘choerodon’@’%’ IDENTIFIED BY ‘password’;
    2020/03/27 18:22:45 [Error] install failed
    Error: Error 1130: Host ‘10.244.0.14’ is not allowed to connect to this MySQL server
    Usage:
    c7nctl install [flags]

Flags:
-c, --config-file string User Config file to read from, User define config by this file
–debug enable debug output
-h, --help help for install
–no-timeout disable install job timeout
–prefix string add prefix to all helm release
-r, --resource-file string Resource file to read from, It provide which app should be installed
–skip-input use default username and password to avoid user input
–version string specify a version

Global Flags:
–config string config file (default is $HOME/.c7n.yaml)
-o, --orgCode string org code
-p, --proCode string pro code

Error 1130: Host ‘10.244.0.14’ is not allowed to connect to this MySQL server

  • 原因分析:

    提出您分析问题的过程,以便我们能更准确的找到问题所在

  • 疑问:

    提出您对于遇到和解决该问题时的疑问

设置的 MySQL密码是什么?如果有特殊字符需要转义

貌似是因为mysql 没有设置%

同样遇到了这样的问题,我的mysql 密码中由大小写字母和数字,没有特殊字符