Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

502 bad gateway after SSL is enabled #18

Open
fisherman818 opened this issue Feb 1, 2017 · 9 comments
Open

502 bad gateway after SSL is enabled #18

fisherman818 opened this issue Feb 1, 2017 · 9 comments

Comments

@fisherman818
Copy link

Hi All,

I am referring the issue after deployment using https://github.com/arunoda/meteor-up

Without SSL enabled, the meteor app is working fine; right after SSL is enabled, I always get the 502 Bad gateway error, as described here: zodern/meteor-up#115

I tried to follow the methods by @tcastelli here: #7, but there is no such path

/var/lib/docker/aufs/mnt/CHECKEDID/opt/nginx/conf/nginx.conf

Any idea what is the updated path to find that particular nginx.conf?

Thank you!!

@tcastelli
Copy link

Unfortunately, I left the meteor-up train quite a long ago, so I'm not sure how is it going anymore.

@maxmatthews
Copy link

@fisherman818 Did you ever get this issue resolved? I'm having the same problem here: zodern/meteor-up#463

@fisherman818
Copy link
Author

fisherman818 commented Feb 17, 2017

@maxmatthews no luck for me yet. still trying to find out reasons. I saw your another post, good to know that you solved the problem by scaling up the DO. I tried the same solution before, increase the RAM by 4 times, still having the issue.

My nginx error log show sth:

2017/02/16 17:29:38 [error] 30329#30329: *208 upstream prematurely closed connection while reading response header from upstream, client: xx.xx.xxx.xx, server: www.domain.com, request: "GET /plugin/app.js HTTP/1.1", upstream: "http://127.0.0.1:3000/plugin/app.js", host: "www.domain.com", referrer: "https://www.domain2.com"

I will share more info when I find out the reason

@chrisciampoli
Copy link

Same issue here. Have tried with multiple VPS setups, different from scratch projects, etc etc. Not sure whats going on.

@fisherman818
Copy link
Author

@chrisciampoli if you have tried all methods on server, it's also time to look at the issues of the Meteor codes, especially the server side's code.

@chrisciampoli
Copy link

chrisciampoli commented Feb 24, 2017 via email

@TimeBandit
Copy link

I'm seeing this issue to on Ubuntu NodeJS 6.10.2 on 16.04 on Digital Ocean using their cheapest droplet.

@maxmatthews
Copy link

@TimeBandit The autogenerate feature doesn't work on 512 mb of RAM. There were talks to add a minimum requirements section to the readme stating 1 gb of RAM is required.

@TimeBandit
Copy link

Ok good, I will try to generate the certs locally before deploying, thanks 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants