错误CodeUnknownError
脚本名称
Message: No such file or directory - /opt/codedeploy-agent/deployment-root/a449172f-ee92-4a07-b4eb-04c90047873b/d-URYKGM6UG/deployment-archive/appspec.yml
记录尾巴
有人可以帮我弄清楚可能出现的问题吗?
答案 0 :(得分:0)
您的部署似乎在appspec.yml文件中存在错误,或者该文件不在存档的根级别。
请仔细检查文件位置,并检查拼写错误或无效路径。这些类型的问题可能会产生这些错误。
答案 1 :(得分:0)
version: 0.0
os: linux
files:
- source: /
destination: /var/www/html
permissions:
- object: /var/www/html
pattern: "**"
owner: apache
group: apache
mode: 755
type:
- file
hooks:
BeforeInstall:
- location: Scripts/installapache.sh
runas: root
- location: Scripts/startapache.sh
runas: root
AfterInstall:
- location: Scripts/restartapache.sh
runas: root