Wednesday, 16 January 2019

Getting a 502 bad gateway when I compress my node app

I'm having an issue when trying to make a minor change to an app that someone else created. I'm struggling to even explain the issue, here is my step by step process.I downloaded the zip of the app from the aws Elastic Beanstalk user interface.Unzip and make a minor change to a .js file.Compress folder back into a zip and give it an updated name for the new version.Upload zip file to AWS.Deploy to node server.When this process is done, I am receiving a 502 Bad Gateway nginx/1.12.1 error.Where things get confusing to me is in my troubleshooting. I followed the same process, but without making changes to any of the files. I just downloaded, unzipped, compressed, rename, uploaded, deploy. This gives the same gateway error.So then I tried to download, rename, upload, deploy. This worked just fine with no errors on the page.Am I doing something wrong with compressing the folder back to a zip? That is the only difference I can find in my process that is causing very different results. I'm on a mac, I'm left clicking the folder and selecting compress.

Submitted January 17, 2019 at 07:21AM by tjwor

No comments:

Post a Comment