Error deploying sample clone
So I've been getting the error below while attempting to upload a .ZIP to ElasticBeanstalk. I downloaded the example Parse server and tried to deploy it without touching anything and still get this error from the EBS events log?
The configuration file __MACOSX/parse-server-example-master/.ebextensions/._app.config in application version parse-server-base 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.
What do you see in .ebextensions/? The file looks okay to me in the repo..
I tried to deploy via EB CLI and it just timed out trying to execute with the following errors:

Not sure what solved the problem, I cloned the original server-file and re-filled in the default data to contact to my database/server and it seems to be going well.
I have this issue as well...
I had the same issue. The reason is that when you download the currently deployed version from dashboard, modify the and zip it again, Apple will create some hidden file like __MACOSX along with the zip file. In order to resolve this, use this command to zip the folder
zip -r -X archive_name.zip folder_to_compress
Then upload this zip file to the dashboard again
Thanks. For me the best option was to still zip it manually by right-clicking (because I got some other weird issues otherwise, like I couldn't keep the folder name separate from the unzipped folder name etc). Anyway. What I did to fix it all in the end was simply:
- Zip it normally
- Terminal
zip -d /Users/UserName/Path/To/File/app.zip __MACOSX/\* - To make sure I run
zipinfo /Users/UserName/Path/To/File/app.zip - Now AWS Beanstalk was happy.
Hope it helps.
@kesongxie @ctocph Interesting, it could very well have been an issue with the zip for me too. I never bothered to figure out what was causing the issue 👍