amazon-web-services - 无法在 centos 7 上删除 CodeDeploy 代理
问题描述
我使用命令:
sudo yum erase codedeploy-agent
卸载 codedeploy-agent。但无法卸载并记录错误如下:
Stop codedeploy-agent in preun hook if this is an erase.
Stopping codedeploy-agent:Unable to stop the running codedeploy-agent
Canceling uninstall of the agent..
error: %preun(codedeploy-agent-1.2.1-1868.noarch) scriptlet failed, exit status 1
Error in PREUN scriptlet in rpm package codedeploy-agent-1.2.1-1868.noarch
Verifying : codedeploy-agent-1.2.1-1868.noarch
1/1
Failed:
codedeploy-agent.noarch 0:1.2.1-1868
Complete!
当我更改用户配置文件以运行 codedeploy-agent 但我设置了错误的用户名时,因此生成了错误。 https://aws.amazon.com/premiumsupport/knowledge-center/codedeploy-agent-non-root-profile/
编码部署代理的状态
sudo service codedeploy-agent status
sudo: unknown user: ec2-user
sudo: unable to initialize policy plugin
解决方案
请在移动“/etc/codedeploy-agent/conf”下的现有配置文件后重试
例如: mv /etc/codedeploy-agent/conf/codedeployagent.yml /etc/codedeploy-agent/conf/codedeployagent.yml_safe
推荐阅读
- sql-server - 查询更改为单列时态表
- git - 如何克隆由按钮创建的heroku应用程序,现在无法访问该按钮
- reactjs - 在 setState 回调中调用 setState 可以吗?
- angular - 带有通配符重定向Angular 8的可路由模态Angular问题
- r - 使用 R 中的 metafor 进行森林图
- cuda - Cuda 中存储的文字浮点/整数常量在哪里
- powerbi - 为什么我的计算列总和与 DAX 中的自然列总和不同?
- scenekit - 无法从 obj 在 SCNNode 中设置 renderingOrder ,按 SCNShapes 的设计工作
- css - 仅在左上象限中绘制的画布
- amazon-web-services - 有没有办法对 AWS CloudWatch Logs Insights 进行分页