墨汁儿 2018-02-05 13:15 采纳率: 0%
浏览 7578
已结题

etcd交予systemd管理,start时状态217不成功

日志信息如下:

 Feb 06 05:04:48 master-15 systemd[1]: Unit etcd.service entered failed state.
Feb 06 05:04:48 master-15 systemd[1]: etcd.service failed.
Feb 06 05:04:54 master-15 systemd[1]: etcd.service holdoff time over, scheduling restart.
Feb 06 05:04:54 master-15 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.
Feb 06 05:04:54 master-15 systemd[16498]: Failed at step USER spawning /usr/bin/etcd: No such pr
-- Subject: Process /usr/bin/etcd could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The process /usr/bin/etcd could not be executed and failed.
-- 
-- The error number returned by this process is 3.
Feb 06 05:04:54 master-15 systemd[1]: etcd.service: main process exited, code=exited, status=217
Feb 06 05:04:54 master-15 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.
Feb 06 05:04:54 master-15 systemd[1]: Unit etcd.service entered failed state.
Feb 06 05:04:54 master-15 systemd[1]: etcd.service failed.

etcd.service如下:

[Unit]
Description=Etcd Server
After=network.target
After=network-online.target
Wants=network-online.target

[Service]
Type=notify
WorkingDirectory=/var/lib/etcd/
User=etcd
# set GOMAXPROCS to number of processors
ExecStart=/usr/bin/etcd \
  --name=etcd1 \
  --cert-file=/etc/kubernetes/ssl/etcd.pem \
  --key-file=/etc/kubernetes/ssl/etcd-key.pem \
  --peer-cert-file=/etc/kubernetes/ssl/etcd.pem \
  --peer-key-file=/etc/kubernetes/ssl/etcd-key.pem \
  --trusted-ca-file=/etc/kubernetes/ssl/ca.pem \
  --peer-trusted-ca-file=/etc/kubernetes/ssl/ca.pem \
  --initial-advertise-peer-urls=https://192.168.230.15:2380 \
  --listen-peer-urls=https://192.168.230.15:2380 \
  --listen-client-urls=https://192.168.230.15:2379,http://127.0.0.1:2379 \
  --advertise-client-urls=https://192.168.230.15:2379 \
  --initial-cluster-token=k8s-etcd-cluster \
  --initial-cluster=etcd1=https://192.168.230.15:2380 \
  --initial-cluster-state=new \
  --data-dir=/var/lib/etcd
Restart=on-failure
RestartSec=5
LimitNOFILE=65536

[Install]
WantedBy=multi-user.target


  • 写回答

1条回答 默认 最新

  • threenewbee 2018-02-05 15:48
    关注

    对照这个看下你的配置文件 https://www.cnblogs.com/vipmint/p/5694114.html

    评论

报告相同问题?

悬赏问题

  • ¥15 HFSS 中的 H 场图与 MATLAB 中绘制的 B1 场 部分对应不上
  • ¥15 如何在scanpy上做差异基因和通路富集?
  • ¥20 关于#硬件工程#的问题,请各位专家解答!
  • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?