lundi 1 juin 2015

I am deploying with 'eb deploy' in aws but getting the following error

I am using 'eb deploy' for deploying my commits but getting this error

WARNING: You have uncommitted changes.
Creating application version archive "6fea".
Uploading: [##################################################] 100% Done...
INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
ERROR: [Instance: i-10d1f9ec] Command failed on instance. Return code: 126 Outpu
t: /bin/sh: ./scripts/update-ftp-dns.sh: /bin/sh^M: bad interpreter: No such fil
e or directory.
container_command 07-update_ftp_dns in .ebextensions/03-vsftpd.config failed. Fo
r more detail, check /var/log/eb-activity.log using console or EB CLI.
INFO: Command execution completed on all instances. Summary: [Successful: 0, Failed: 1].
INFO: New application version was deployed to running EC2 instances.
ERROR: Update environment operation is complete, but with errors. For more information, see troubleshooting documentation.

Please help me to solve this.




1 commentaire:

  1. sh^M usually points to an unscaped character. I got that error when using Windows and then trying to make it work in linux, use some "see hidden characters" in your favorite IDE.

    RépondreSupprimer