main process exited, code=exited, status=203/EXEC
问题描述:
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.
参考:
https://github.com/kubernetes/kubernetes/issues/2231