etcd.service: main process exited, code=exited, status=203/EXEC

简介: etcd.service: main process exited, code=exited, status=203/EXEC

部署ETCD异常解决

# 查看日志
[root@m2 pki]#  journalctl -xe
 
 
-- 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.
7月 24 11:50:23 m2 systemd[1]: Unit etcd.service entered failed state.
7月 24 11:50:23 m2 systemd[1]: etcd.service failed.
7月 24 11:50:28 m2 systemd[1]: etcd.service holdoff time over, scheduling restart.
7月 24 11:50:28 m2 systemd[1]: Stopped Etcd Server.
-- Subject: Unit etcd.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- Unit etcd.service has finished shutting down.
7月 24 11:50:28 m2 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.
7月 24 11:50:28 m2 systemd[22353]: Failed at step CHDIR spawning /usr/local/bin/etcd: No such file or directory
-- Subject: Process /usr/local/bin/etcd could not be executed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- 
-- The process /usr/local/bin/etcd could not be executed and failed.
-- 
-- The error number returned by this process is 2.
7月 24 11:50:28 m2 systemd[1]: etcd.service: main process exited, code=exited, status=200/CHDIR
7月 24 11:50:28 m2 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.
7月 24 11:50:28 m2 systemd[1]: Unit etcd.service entered failed state.
7月 24 11:50:28 m2 systemd[1]: etcd.service failed.

问题描述:

Oct 13 20:01:08 c_3.50 systemd[1]: Started etcd.

Oct 13 20:01:08 c_3.50 systemd[1]: Starting etcd...

Oct 13 20:01:08 c_3.50 systemd[1]: etcd.service: main process exited, code=exited, status=203/EXEC  //203不能执行

Oct 13 20:01:08 c_3.50 systemd[1]: Unit etcd.service entered failed state.

Oct 13 20:01:08 c_3.50 systemd[1]: etcd.service failed.

问题解决:

01、查看exe执行在配置的路径中存在不

02、脚本是否加#!/bin/bash

注意:截图中的环境变量不允许${},必须用实体替换或者写到EnvironmentFile中

Oct 13 20:15:08 c_3.50 systemd[1]: Started etcd.

Oct 13 20:15:08 c_3.50 systemd[1]: Starting etcd...

Oct 13 20:15:08 c_3.50 systemd[1]: etcd.service: main process exited, code=exited, status=1/FAILURE  //环境变量设置异常

Oct 13 20:15:08 c_3.50 systemd[1]: Unit etcd.service entered failed state.

Oct 13 20:15:08 c_3.50 systemd[1]: etcd.service failed.

相关文章
|
8天前
|
Java 应用服务中间件
Process exited with an error: 1 (Exit value: 1) 问题处理
本文介绍了在本地启动项目时遇到“Process exited with an error: 1”错误的解决过程。作者首先排除了配置文件修改的影响,通过分析错误信息,推测为端口占用问题,并使用 `netstat -ano` 命令检查端口占用情况,最终通过终止占用端口的进程解决了问题。
|
Linux iOS开发 Docker
docker报错:New main PID does not belong to service
docker报错:New main PID does not belong to service
441 0
|
Docker 容器
error during connect: this error may indicate that the docker daemon is not running
error during connect: this error may indicate that the docker daemon is not running
367 0
|
1月前
|
网络协议 Linux
搭建FTP报错:Job for vsftpd.service failed because the control process exited with error code. See
搭建FTP报错:Job for vsftpd.service failed because the control process exited with error code. See
96 3
|
2月前
|
Unix Shell Linux
5-15|Docker报错OCI runtime exec failed: exec failed: unable to start container process: exec: “/bin/ba
5-15|Docker报错OCI runtime exec failed: exec failed: unable to start container process: exec: “/bin/ba
|
3月前
|
Docker 容器
Docker 启动失败 (code=exited, status=1/FAILURE)错误解决办法
Docker 启动失败 (code=exited, status=1/FAILURE)错误解决办法
763 1
|
5月前
|
Docker 容器
waiting for docker daemon: failed to start docker engine: dockerd failed to start: exit status 1
waiting for docker daemon: failed to start docker engine: dockerd failed to start: exit status 1
|
6月前
|
Docker 容器
Docker服务启动失败报错:Job for docker.service failed because the control process exited with error code.
Docker服务启动失败报错:Job for docker.service failed because the control process exited with error code.
|
6月前
|
Kubernetes Docker 容器
Job for docker.service failed because the control process exited with error code.
Job for docker.service failed because the control process exited with error code.
269 0
|
6月前
|
关系型数据库 MySQL 数据库
MySQL 启动 登录报错Job for mysqld.service failed because the control process exited with error code. See
MySQL 启动 登录报错Job for mysqld.service failed because the control process exited with error code. See
113 1
下一篇
无影云桌面