Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Deploy to AWS EB failing because of YAML error in python.config

I am trying to deploy some Django code to an AWS Elastic Beanstalk Environment. I am getting a deployment error:

The configuration file __MACOSX/OriginalNewConfig-deploy/.ebextensions/._python.config in application version OriginalNewConfig2-deploy contains invalid YAML or JSON. YAML exception: unacceptable character '' (0x0) special characters are not allowed in "<reader>", position 0, JSON exception: Unexpected character () at position 0.. Update the configuration file.

The python.config file (in the .ebextensions folder) looks like this:

--- 
container_commands: 
  01_wsgipass: 
    command: "echo \"WSGIPassAuthorization On\" >> ../wsgi.conf"
packages: 
  yum: 
    libjpeg-turbo-devel: []

The deployment code I am using has apparently been successfully deployed before (by the original developer) so I do not understand why an error is being reported.

I am deploying by using the 'Upload and Deploy' button in the AWS EB dashboard.

like image 692
Bill Noble Avatar asked Dec 19 '15 16:12

Bill Noble


1 Answers

Seems like MAC creates this hidden folder automatically. I was also having this issue.

I've used the following command on terminal:

zip -d filename.zip __MACOSX/\*

found here: Mac zip compress without __MACOSX folder?

like image 108
Jaqueline Passos Avatar answered Oct 12 '22 13:10

Jaqueline Passos