-
-
Notifications
You must be signed in to change notification settings - Fork 280
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 with SSL installed #115
Comments
I tried to remove SSL. I removed |
Hi @nilsi, Try with the fix mentioned in this issue. Is commonly caused because headers are bigger than the max size allowed by the container with nginx. If you are able to solve the issue with this fix, please comment and close it. |
@wanchopeblanco thanks! I saw that issue before but couldn't follow the instruction. Im not sure how I can find the right nginx.conf Since I removed SSL i no longer have a frontend container.
What am I supposed to edit? I looked in some of them but cant find the right server block. |
It looks like you do have a container with nginx installed. Have you tried to deploy again in to a clean VPS? Did you setup again after removing SSL? Usually when i have a problem like this i deploy again to a fresh instance. |
Yes I tried a new VPS and I had the same problem. After deployed a few times on that one it looks like this:
It might add another nginx instance every time I run I now found out that if I open my webpage in a browser that I never opened it in before it works with http. But when I try in an old one it still redirects to https and fails. Is this cached in the browser somehow? Incognito does not change anything. |
Try flushing your browser cache, that was something that happened to me to Il venerdì 29 aprile 2016, Nicklas Nilsson [email protected] ha
|
Finally found a way to flush this at least for chrome on desktop. Just wonder if my visitors have the same problem now. I use the answer here to flush it: http://superuser.com/a/881431 I might give it another try to add SSL now again then. But I don't see any reason for it to not to throw the 502 Bad Gateway error again once I do. I maybe should look into increasing that max size for nginx, that could still be it. |
Did you tried to do the fix i suggested using the ssl? Only users that I suggest you try again with ssl, but first try it on a subdomain so you Il venerdì 29 aprile 2016, Nicklas Nilsson [email protected] ha
|
Thanks for all the help. No haven't tried yet but will do on a different domain now. Be right back. |
Theres no problem. Happy to help. Il venerdì 29 aprile 2016, Nicklas Nilsson [email protected] ha
|
WOW! it worked!! Finally!! Do you have any idea how I change this permanently? It seems like your pull request is not merged yet and this will be overridden on my next Thanks again. |
Not posible for now, i did a pull request to fix it. But it havent being Il venerdì 29 aprile 2016, Nicklas Nilsson [email protected] ha
|
I have getting same issue. Thanks |
@jnanendraveer were you ever able to get this resolved? It looks like Im having an issue with the ids too, when I try to run docker ps and check the ids with the ones in /var/lib/docker/aufs/mnt/ none of them are matching up so I tried to go into it and change the proxy_buffer size for all of them and it still didnt work. |
Hi, I just went through this issue for while and I want to share with you what was the problem for me ... My solution : Taking out the Browser Policy package !!! I didn't investigate more for now but if someone could point me why and how I can keep this package anyway, I would be nice of you . Hope it helps some of you ! |
@ivanthemeh , I have got the issue. But don't know where is problem. I have setup everything again. Now working fine last 10 days. I suggest you please reinstall again. Thanks |
Hi @slam310, Try with the fix mentioned in this issue. Is commonly caused because headers are bigger than the max size allowed by the container with nginx. |
@nilsi can I know what is your final working fix to the problem? thanks |
Since this is almost a year ago I dont completely remember but it works fine now. I think I might changed to kadirahq/meteor-up. I remember I had to change the docker image for it to work with meteor 1.4. Like someone is mentioning in the issue previously linked here: |
FYI I reduced the amount of domains in my |
@sunlee-newyork so you install that package in your application and where did you setup that? thanks in advance |
@enzolutions I have server.js that imports each serverside initialization files in its separate Meteor.startup wrapper - importing SSL package before BrowserPolicy |
Hi,
I followed the guide here to setup SSL:
https://voice.kadira.io/meteor-up-let-s-encrypt-based-free-ssl-d17111f69f15
I installed
force-ssl
and deployed withmup
. Everything works beside I got 502 Bad Gateway when trying to reach my application but It is still secured with SSL. I wonder if this is a problem with nginx not redirecting as it should? I added a subdomain to my app and the application worked without SSL.How can I configure nginx or find a solution to this? Thanks.
mup.js
Logs from deploying:
Certificate successfully installed:
installed packages:
Application gives a 502 Bad gateway on root URL.
The text was updated successfully, but these errors were encountered: