question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Web panel gives 502 bad gateway after install

See original GitHub issue

Impacted versions

  • Distribution: Centos
  • Codename: Centos 7
  • Arch: 64 Bits
  • Database: PostgreSQL

problems that occured during installation which i had to fix: (probably not related to this issue, just to point it out)

  • Instalator continues even when LetsEncrypt cert is not obtained (got cert manually, SSL now valid and working)
  • Nginx config was broken by default (Nginx issue, not your, happened even when i installed nginx before Modoboa - had to add server_names_hash_bucket_size 64; to main config, otherwise nginx wouldnt start

finally after all, nginx is now running, but when trying to access admin panel, i just get 502 error…

From nginx error log:

2018/04/07 19:19:22 [error] 22551#0: *1 upstream prematurely closed connection while reading response header from upstream$

tried some solutions, but i dont know anymore, tried to reinstall too 😢

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
nethonchocommented, Apr 7, 2018

Same issue here

  • Distribution: Ubuntu 16.04.4 x64
  • Database: PostgreSQL

I had to run LetsEncrypt manually also. Got it working with nginx

2018/04/07 17:41:50 [error] 3641#3641: *1 upstream prematurely closed connection while reading response header from upstream,
1reaction
tonioocommented, Apr 13, 2018

@wUFr Either try a fresh install (on a clean system) or remove the virtualenv before restarting the installer:

rm -r /srv/modoboa/env
rm -r /srv/modoboa/.cache/pip
Read more comments on GitHub >

github_iconTop Results From Across the Web

What is a 502 Bad Gateway and how do you fix it? - IT PRO
An Error 502 Bad Gateway means there is a problem with the website's server, rather than your computer, router, or internet connection. It's...
Read more >
How To Fix a 502 Bad Gateway Error - Kinsta
The 502 bad gateway error specifically means that server received an invalid response from an inbound server. Check out these common causes ...
Read more >
How to Fix 502 Bad Gateway Error - Hostinger
This article will go over some troubleshooting steps to follow when a 502 Bad Gateway error occurs, both for the server and client-side....
Read more >
502 bad gateway: how to solve it (2022) - SupportHost
The 502 bad gateway error is a type of HTTP error that notifies the user that there is some kind of problem in...
Read more >
How to Solve 502 Bad Gateway Issues? - KeyCDN Support
Having issues with a 502 Bad Gateway error? This guide gives you practical tips to solve origin not reachable problems.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found