启动etcd的时候报错:

# systemctl restart etcd
Job for etcd.service failed because the control process exited with error code. See "systemctl status etcd.service" and "journalctl -xe" for details. # journalctl -xe
Nov 28 10:26:07 mysql7 systemd[1]: Starting Etcd Server...
-- Subject: Unit etcd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit etcd.service has begun starting up.
Nov 28 10:26:07 abce etcd[2598]: recognized and used environment variable ETCD_ADVERTISE_CLIENT_URLS=http://10.10.20.70:2379
Nov 28 10:26:07 abce etcd[2598]: recognized and used environment variable ETCD_INITIAL_ADVERTISE_PEER_URLS=http://8.8.8.8:2380
Nov 28 10:26:07 abce etcd[2598]: recognized and used environment variable ETCD_INITIAL_CLUSTER=etcd0=http://8.8.8.8:2380
Nov 28 10:26:07 abce etcd[2598]: recognized and used environment variable ETCD_INITIAL_CLUSTER_STATE=new
Nov 28 10:26:07 abce etcd[2598]: recognized and used environment variable ETCD_INITIAL_CLUSTER_TOKEN=cluster1
Nov 28 10:26:07 abce etcd[2598]: recognized and used environment variable ETCD_LISTEN_PEER_URLS=http://8.8.8.8:2380
Nov 28 10:26:07 abce etcd[2598]: recognized environment variable ETCD_NAME, but unused: shadowed by corresponding flag
Nov 28 10:26:07 abce etcd[2598]: recognized environment variable ETCD_LISTEN_CLIENT_URLS, but unused: shadowed by corresponding flag
Nov 28 10:26:07 abce etcd[2598]: etcd Version: 3.3.11
Nov 28 10:26:07 abce etcd[2598]: Git SHA: 2cf9e51
Nov 28 10:26:07 abce etcd[2598]: Go Version: go1.10.3
Nov 28 10:26:07 abce etcd[2598]: Go OS/Arch: linux/amd64
Nov 28 10:26:07 abce etcd[2598]: setting maximum number of CPUs to 4, total number of available CPUs is 4
Nov 28 10:26:07 abce etcd[2598]: no data-dir provided, using default data-dir ./default.etcd
Nov 28 10:26:07 abce etcd[2598]: the server is already initialized as member before, starting as etcd member...
Nov 28 10:26:07 abce etcd[2598]: listening for peers on http://8.8.8.8:2380
Nov 28 10:26:07 abce etcd[2598]: listening for client requests on 8.8.8.8:2379
Nov 28 10:26:07 abce etcd[2598]: listening for client requests on localhost:2379
Nov 28 10:26:07 abce etcd[2598]: couldn't find local name "default" in the initial cluster configuration
Nov 28 10:26:07 abce systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE
Nov 28 10:26:07 abce systemd[1]: Failed to start Etcd Server.
-- Subject: Unit etcd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit etcd.service has failed.
--
-- The result is failed.
Nov 28 10:26:07 abce systemd[1]: Unit etcd.service entered failed state.
Nov 28 10:26:07 abce systemd[1]: etcd.service failed.
Nov 28 10:26:07 abce systemd[1]: etcd.service holdoff time over, scheduling restart.
Nov 28 10:26:07 abce systemd[1]: start request repeated too quickly for etcd.service
Nov 28 10:26:07 abce systemd[1]: Failed to start Etcd Server.
-- Subject: Unit etcd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit etcd.service has failed.
--
-- The result is failed.
Nov 28 10:26:07 abce systemd[1]: Unit etcd.service entered failed state.
Nov 28 10:26:07 abce systemd[1]: etcd.service failed.

  

检查配置文件:

#[Member]
ETCD_LISTEN_PEER_URLS="http://8.8.8.8:2380"
ETCD_LISTEN_CLIENT_URLS="http://localhost:2379,http://8.8.8.8:2379"
ETCD_NAME="default" #[Clustering]
ETCD_INITIAL_ADVERTISE_PEER_URLS="http://8.8.8.8:2380"
ETCD_ADVERTISE_CLIENT_URLS="http://8.8.8.8:2379"
ETCD_INITIAL_CLUSTER="etcd0=http://8.8.8.8:2380"
ETCD_INITIAL_CLUSTER_TOKEN="cluster1"
ETCD_INITIAL_CLUSTER_STATE="new"

  

可以看到:

ETCD_NAME="default"
ETCD_INITIAL_CLUSTER="etcd0=http://8.8.8.8:2380"

 

这里参数配置不一致。改成一致就可以了。

etcd启动报错:couldn't find local name "default" in the initial cluster configuration的更多相关文章

  1. springboot 工程启动报错之Consider defining a bean of type ‘XXX’ in your configuration.

    一.前言: 使用springboot自动注入的方式搭建好了工程,结果启动的时候报错了!!!,错误如下图: Description: Field userEntityMapper in com.xxx. ...

  2. ubuntu 下安装 mysql 启动报错:ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

    环境: ubuntu LTS 18.04.1 mysql Ver 14.14 Distrib 5.7.29, for Linux (x86_64) 初探 linux,按照如下安装完mysql sudo ...

  3. apache无法启动报错No space left on device

    apache无法启动报错No space left on device 故障现象:apache无法启动ipcs信号量很多 # service httpd startStarting httpd : [ ...

  4. selenium启动报错“ incorrect JSON status mapping for 'unknown error' (500 expected)”

    前面讲了工程启动报错“selenium启动报错Unable to read VR Path Registry from C:\Users\clinva\AppData\Local\openvr\ope ...

  5. 【原创】大叔问题定位分享(24)hbase standalone方式启动报错

    hbase 2.0.2 hbase standalone方式启动报错: 2019-01-17 15:49:08,730 ERROR [Thread-24] master.HMaster: Failed ...

  6. 使用CXF+Spring发布WebService,启动报错

    使用CXF+Spring发布WebService,启动报错,日志如下: 五月 12, 2017 9:01:37 下午 org.apache.tomcat.util.digester.SetProper ...

  7. Celery 启动报错 can_read() got an unexpected keyword argument timeout

    问题: Celery 启动报错 can_read() got an unexpected keyword argument timeout 方案:更改redis版本和celery版本,我使用下面的ce ...

  8. mlflow ui 启动报错No such file or directory: 'gunicorn': 'gunicorn'

    1.mlflow ui 启动报错,信息如下: [root@localhost mlflow]# mlflow ui /usr/local/python3/lib/python3./importlib/ ...

  9. 【原创】大叔经验分享(67)spring boot启动报错

    spring boot 启动报错: Caused by: java.lang.IllegalArgumentException: LoggerFactory is not a Logback Logg ...

随机推荐

  1. Spark基于自定义聚合函数实现【列转行、行转列】

    一.分析 Spark提供了非常丰富的算子,可以实现大部分的逻辑处理,例如,要实现行转列,可以用hiveContext中支持的concat_ws(',', collect_set('字段'))实现.但是 ...

  2. SVM 实现多分类思路

    svm 是针对二分类问题, 如果要进行多分类, 无非就是多训练几个svm呗 OVR (one versus rest) 对于k个类别(k>2) 的情况, 训练k个svm, 其中, 第j个svm用 ...

  3. 解决使用Microsoft Graph OAuth获取令牌时,没有refresh_token的问题

    今天在使用Microsoft Graph 的时候,发现按照官方文档,无论如何都不能获取refresh_token,其他都没问题,经过查询,发现是因为在第一步,获取code授权时,没有给离线权限(off ...

  4. k8s 之service资源介绍(三)

    kubernetes service资源 apiVersion: v1 kind: Service metadata: name: kubia spec: ports: - port: 80 targ ...

  5. jwt揭秘(含源码示例)

      JSON Web Tokens,是一种开发的行业标准 RFC 7519 ,用于安全的表示双方之间的声明.目前,jwt广泛应用在系统的用户认证方面,特别是现在前后端分离项目. 1. jwt认证流程 ...

  6. 实战 MySQL 8.0.17 Clone Plugin(转)

    背景 很神奇,5.7.17 和 8.0.17,连续两个17小版本都让人眼前一亮.前者加入了组复制(Group Replication)功能,后者加入了克隆插件(Clone Plugin)功能.今天我们 ...

  7. 浅谈flask源码之请求过程

    更新时间:2018年07月26日 09:51:36   作者:Dear.   我要评论   这篇文章主要介绍了浅谈flask源码之请求过程,小编觉得挺不错的,现在分享给大家,也给大家做个参考.一起跟随 ...

  8. 关于子类和父类中的this的用法

    public class Demo { public static void main(String[] args) { Fu f = new Zi(); f.show(); } } class Fu ...

  9. Shell 日常 ip 端口可用性测试

    ip port 可用测试 telnet 测试某个ip 端口是否可用很方便,但是如果ip比较多,写脚本就不方便了因为是阻塞的 这里强烈推荐 nc nc -z -w 1 127.0.0.1 8990 这里 ...

  10. woocommerce调用产品相册gallery图片如何操作?wordpress技巧

    wordpress官网有很多woocommerce模板,但有些客户要求定制模板,这时可能会碰到产品相册图片调用的问题,如果根据自带的Storefront主题来改很麻烦,那我们就自己定义吧!下来就随yt ...