parse-server-example icon indicating copy to clipboard operation
parse-server-example copied to clipboard

Error deploying sample clone

Open ZacharyKhan opened this issue 10 years ago • 7 comments

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.

screen shot 2016-03-18 at 12 08 00 pm

ZacharyKhan avatar Mar 18 '16 19:03 ZacharyKhan

What do you see in .ebextensions/? The file looks okay to me in the repo..

gfosco avatar Mar 18 '16 19:03 gfosco

screen shot 2016-03-18 at 12 30 42 pm

I tried to deploy via EB CLI and it just timed out trying to execute with the following errors: screen shot 2016-03-18 at 12 35 25 pm

ZacharyKhan avatar Mar 18 '16 19:03 ZacharyKhan

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.

ZacharyKhan avatar Mar 21 '16 01:03 ZacharyKhan

I have this issue as well...

michalumni avatar May 29 '16 01:05 michalumni

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

kesongxie avatar Jan 26 '17 04:01 kesongxie

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:

  1. Zip it normally
  2. Terminal zip -d /Users/UserName/Path/To/File/app.zip __MACOSX/\*
  3. To make sure I run zipinfo /Users/UserName/Path/To/File/app.zip
  4. Now AWS Beanstalk was happy.

Hope it helps.

ctocph avatar May 31 '17 20:05 ctocph

@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 👍

ZacharyKhan avatar Jun 09 '17 04:06 ZacharyKhan