Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No such file or directory @ rb_sysopen - /opt/codedeploy-agent/deployment-root/b2316ed2-5e96-4514-bb4b-c7f20534ceef/d-PZYU2HUMK/deployment-archive/appspec.yml #102

Closed
suhailgupta03 opened this issue Feb 16, 2017 · 9 comments
Labels

Comments

@suhailgupta03
Copy link

While I am trying to deploy an application from an external bucket (shared by some user), I get an error that says:
No such file or directory @ rb_sysopen - /opt/codedeploy-agent/deployment-root/b2316ed2-5e96-4514-bb4b-c7f20534ceef/d-PZYU2HUMK/deployment-archive/appspec.yml

The error code is shown as Unknown error in the logs.

I have my appspec.yml in place i.e root of the package. I tried to remove the previous deployment details from /opt/codedeploy-agent/deployment-root but that didn't help. What could be the case here?

@LegNeato
Copy link

LegNeato commented Mar 9, 2017

I think I've seen this when the zipfile can't be extracted.... does the file `/opt/codedeploy-agent/deployment-root/b2316ed2-5e96-4514-bb4b-c7f20534ceef/d-PZYU2HUMK/bundle.tar have zero bytes?

Does unzip /opt/codedeploy-agent/deployment-root/b2316ed2-5e96-4514-bb4b-c7f20534ceef/d-PZYU2HUMK/bundle.tar -d /tmp; echo $?; show 1?

Just put up #104 which might help.

It may also be the case that your zip file has a directory entry at the root and everything is being put into one level too deep.

@normoes
Copy link

normoes commented Mar 16, 2017

I have exactly the same error, because I "cleaned" the /opt/codedeploy-agent/deployment-root/ directory, in order to get some more free space again.

Obviously, that is not a good idea.

It happens during the ApplicationStop event.

Now every deployment fails...

@normoes
Copy link

normoes commented Mar 17, 2017

This stackoverflow thread helped me to get a step further again.

@victorbadila
Copy link

+1, I "cleaned" the folder as well. something fishy in how the aws codedeploy agent "thinks"

@letsspeak
Copy link

In my case, when Travis-CI's CodeDeploy IAM didn't incluede S3 Access policy, this error occured.

@rohkat-aws
Copy link
Contributor

@suhailgupta03 if this is resolved. Can i close this

@Ashoks22
Copy link

Ashoks22 commented Oct 7, 2022

Hi, I am getting error as
No such file or directory - /opt/codedeploy-agent/deployment-root/4923a8e2-0408-40a8-a997-9714196166df/d-6F2OWUZ9J/deployment-archive/home/ec2-user/inoutserver/dist in the Install event.
Please suggest how to fix the issue.

@t0shiii
Copy link
Contributor

t0shiii commented Oct 18, 2022

Hi @Ashoks22, I would double check your appspec.yml to ensure all the paths listed in the files section is correct. Please refer to this documentation for more information about the appspec.yml files section

@mohanm911
Copy link

Somthing wrong in your Execute shell scrpit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

10 participants