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.

相关文章
|
4月前
|
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
|
5月前
|
API Windows 容器
【Azure Fabric Service】Service Fabric 遇见错误信息记录 - The process/container terminated with exit code:2148734499
【Azure Fabric Service】Service Fabric 遇见错误信息记录 - The process/container terminated with exit code:2148734499
|
8月前
|
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.
|
8月前
|
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.
304 0
|
7月前
|
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
|
8月前
|
关系型数据库 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
147 1
|
网络协议
Job for named.service failed because the control process exited with error code.
Job for named.service failed because the control process exited with error code.
834 0
|
C++
ERROR: Command errored out with exit status 1:
ERROR: Command errored out with exit status 1:
335 0
ERROR: Command errored out with exit status 1:
|
NoSQL MongoDB 数据安全/隐私保护
OCI runtime exec failed: exec failed: unable to start container process: exec: "mongo": executable file not found in $PATH: unknown
OCI runtime exec failed: exec failed: unable to start container process: exec: "mongo": executable file not found in $PATH: unknown
1161 0
OCI runtime exec failed: exec failed: unable to start container process: exec: "mongo": executable file not found in $PATH: unknown
|
资源调度
yarn start error Command failed with exit code 1解决
yarn start error Command failed with exit code 1解决
1187 0