AWS EB deployment fails due to YAML error in python.config

I am trying to deploy Django code in an AWS Elastic Beanstalk environment. I get 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.
Run codeHide result

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: []
Run codeHide result

The deployment code that I use seems to have been successfully deployed before (by the original developer), so I don’t understand why the error is being reported.

I deploy using the Download and Deploy button on the AWS EB control panel.

+4
source share
1 answer

It seems that the MAC automatically creates this hidden folder. I also had this problem.

I used the following command on the terminal:

zip -d filename.zip __MACOSX/\*

: Mac zip compress __MACOSX?

+19

Source: https://habr.com/ru/post/1620901/


All Articles