I ran the command eb deploy 1st time with the same error as you.
However, I tried running eb deploy again for the second time and it didn't appear.
If you know why, please share it with me.
It's happening to our application as well and as far as we can tell it happens every time we deploy using aws elasticbeanstalk
instead of the eb deploy
command.
The way we have it set up is;
- commit code to Gitlab
- Gitlab runner starts up with aws-cli installed
aws s3
uploads the build to S3aws elasticbeanstalk create-application-version
creates a new application to deployaws elasticbeanstalk update-environment
will deploy the application, which will fail with the error;
[ERROR] An error occurred during execution of command [app-deploy] - [FlipApplication]. Stop running the command. Error: remove current dir failed: unlinkat /var/app/current: directory not empty
This error does not occur when you use eb deploy \[application]
.
Interested to know what's going on here.
Hi,
Any movement on this? I am experiencing the same issue, we are using: PHP 7.4 running on 64bit Amazon Linux 2/3.1.6
We are using the GitHub source integration in a CodePipeline so no manual commands being used to trigger the deploy, all whatever AWS does under the hood.
Cheers
This issue for me was because I was mounting EFS to a directory in /var/app/current/. Heres a related answer on stack overflow https://stackoverflow.com/a/67494984/15900388, might be helpful to some.
Edited by: wesleyhendon on May 12, 2021 6:12 AM
Same issue here. It has been happening for months but is becoming more frequent. Seems totally random, we can have multiple successes in a row with no problem and also have single/multiple failures despite no changes other than re-attempting the deployment.
Amazin Linux 2/3.2.4
Ruby 2.7 running on 64bit
Rails 6
Using the eb deploy
command
Relevant content
- asked a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 3 years ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated 2 months ago