3

"Script does not exist at specified location: /opt/codedeploy-agent/deployment-root/76b33ccc-594b-4d58-a1b8-e40d054c64b7/d-AVYMCK28I/deployment-archive/scripts/Applicationstoptest.sh"

This is the error I am getting can any one please help me how to resolve this issue

3 Answers3

2

Make sure you're using relative paths in your appspec.yml.

ddtraveller
  • 837
  • 9
  • 16
0

The paths used in source in the AppSpec file are relative paths, starting from the root of your revision. Also please make sure the appspec.yml file and the other files in the application bundle are not wrapped inside another folder.

0

I found my answer here: https://stackoverflow.com/a/27925591/1056283

The application stop hook uses a previous deployment to look for the script to invoke, so if the structure of your deploy package changes, there may not be a script to call at the specified location yet. The deploy fails and the script never arrives at the new location. Look in the linked answer for the steps to resolve it.

Paul Siersma
  • 1,567
  • 1
  • 17
  • 21