Open yohancayres opened 7 years ago
Hmm, does the .ebextensions/appdeploy/post/98_setupvars.sh still exist in your repo? This particular line in 01_setup.config should be copying it over:
020_appdeploy: command: cp -rf .ebextensions/appdeploy/* /opt/elasticbeanstalk/hooks/appdeploy/
I checked all of this, and the files are present.
I realized that the problem only occurs when I try to run "eb deploy", or when I zip the file on the computer in my home.
PS C:\inetpub\loja-dev> eb deploy
Creating application version archive "app-ea77-171027_152020".
Uploading: [####----------------------------------------------] 8% c:\python27\lib\site-packages\dateutil\parser.py:605: UnicodeWarning: Unicode equal comparison failed to convert both arguments to Unicode - interpre
ting them as being unequal
elif res.tzname and res.tzname in time.tzname:
Uploading: [##################################################] 100% Done...
INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
INFO: Environment health has transitioned from Ok to Info. Application update in progress on 2 instances. 0 out of 2 instances completed (running for 5 seconds).
ERROR: [Instance: i-06110c42e67a57154,i-0f1253e140beaeacd] Command failed on instance. Return code: 1 Output: No such file or directory - /opt/elasticbeanstalk/hooks/appdeploy/post/98_setupvars.sh. For more detail, c
heck /var/log/eb-activity.log using console or EB CLI.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 2].
ERROR: Unsuccessful command execution on instance id(s) 'i-06110c42e67a57154,i-0f1253e140beaeacd'. Aborting the operation.
ERROR: Failed to deploy application.
ERROR: Failed to deploy application.
Hmm, interesting. I'm not sure on the eb deploy, that should be including the .ebextensions folder by default. I'll have to test with that.
When you create the zip file on your home computer are you making sure that it is including the hidden folders?
zip -r deployment.zip .
I ran into the same problem (but with 97_custom_logging.sh
file) while running eb deploy
command on a Windows machine (same as OP). I managed to get over the issue as I ran the exact command on Ubuntu (Windows Subsystem for Linux) and the deploy ended 100% successfully. I don't know what causes the problem on Windows system, but I think it may give some perspective.
Same issue here. For me, moving the hooks folder files to files section in 01_setup.config solved the problem. It seems like the only official way to provide hooks scripts is via files section in .config
Same issue here. For me, moving the hooks folder files to files section in 01_setup.config solved the problem. It seems like the only official way to provide hooks scripts is via files section in .config
I am experiencing this error as well, however, there are quite a few files in the hooks folders and ideally don't want to move them all but if that's the only solution for this error I may have to.
I'm trying to send the code to the elastic beanstalk. But I'm getting the following error:
[Instance: i-070f6ba774e338d74] Command failed on instance. Return code: 1 Output: No such file or directory - /opt/elasticbeanstalk/hooks/appdeploy/post/98_setupvars.sh. For more detail, check /var/log/eb-activity.log using console or EB CLI.
This code worked perfectly until last week, and today started to give this problem and I can not deploy a new version to the server.
part of eb-activity.log