mirror of
https://github.com/modoboa/modoboa.git
synced 2026-04-25 08:56:02 +03:00
[GH-ISSUE #1607] 502 Bad Gateway upstream prematurely closed connection while reading response header #1261
Labels
No labels
bug
bug
dependencies
design
documentation
duplicate
enhancement
enhancement
enhancement
feedback-needed
help-needed
help-needed
installer
invalid
looking-for-sponsors
modoboa-contacts
new-ui
new-ui
pr
pull-request
pyconfr
python
question
security
stale
webmail
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/modoboa-modoboa#1261
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @AncalagonTheBlack on GitHub (Oct 30, 2018).
Original GitHub issue: https://github.com/modoboa/modoboa/issues/1607
Impacted versions
Steps to reproduce
run the installer.
Current behavior
trying to open mail.xxxx.net ends with 502 bad gateway.
from upstream, client: 81.92.xx.xxx, server: mail.dxxxxxxx.net, request: "GET / HTTP/2.0", upstream: "uwsgi://unix:/run/uwsgi/app/modoboa_instance/socket
Expected behavior
the site should load normally
Video/Screenshot link (optional)
@AncalagonTheBlack commented on GitHub (Oct 30, 2018):
Log of uswgi:
TueOct 30 12:55:28 2018 - *** Starting uWSGI 2.0.17.1-debian (64bit) on [Tue Oct 30 12:55:28 2018] ***Tue Oct 30 12:55:28 2018 - compiled with version: 8.2.0 on 02 October 2018 08:22:00
Tue Oct 30 12:55:28 2018 - os: Linux-4.9.0-8-amd64 #1 SMP Debian 4.9.110-3+deb9u6 (2018-10-08)
Tue Oct 30 12:55:28 2018 - nodename: xxxxx.net.contaboserver.net
Tue Oct 30 12:55:28 2018 - machine: x86_64
Tue Oct 30 12:55:28 2018 - clock source: unix
Tue Oct 30 12:55:28 2018 - pcre jit disabled
Tue Oct 30 12:55:28 2018 - detected number of CPU cores: 4
Tue Oct 30 12:55:28 2018 - current working directory: /
Tue Oct 30 12:55:28 2018 - writing pidfile to /run/uwsgi/app/modoboa_instance/pid
Tue Oct 30 12:55:28 2018 - detected binary path: /usr/bin/uwsgi-core
Tue Oct 30 12:55:28 2018 - setgid() to 1001
Tue Oct 30 12:55:28 2018 - setuid() to 1001
Tue Oct 30 12:55:28 2018 - chdir() to /srv/modoboa/instance
Tue Oct 30 12:55:28 2018 - your processes number limit is 39927
Tue Oct 30 12:55:28 2018 - your memory page size is 4096 bytes
Tue Oct 30 12:55:28 2018 - detected max file descriptor number: 1024
Tue Oct 30 12:55:28 2018 - VirtualHosting mode enabled.
Tue Oct 30 12:55:28 2018 - lock engine: pthread robust mutexes
Tue Oct 30 12:55:28 2018 - thunder lock: disabled (you can enable it with --thunder-lock)
Tue Oct 30 12:55:28 2018 - uwsgi socket 0 bound to UNIX address /run/uwsgi/app/modoboa_instance/socket fd 3
Tue Oct 30 12:55:28 2018 - Python version: 2.7.15+ (default, Aug 31 2018, 11:56:52) [GCC 8.2.0]
Tue Oct 30 12:55:28 2018 - Set PythonHome to /srv/modoboa/env
Tue Oct 30 12:55:28 2018 - *** Python threads support is disabled. You can enable it with --enable-threads ***
Tue Oct 30 12:55:28 2018 - Python main interpreter initialized at 0x563c03b73360
Tue Oct 30 12:55:28 2018 - your server socket listen backlog is limited to 100 connections
Tue Oct 30 12:55:28 2018 - your mercy for graceful operations on workers is 60 seconds
Tue Oct 30 12:55:28 2018 - mapped 218760 bytes (213 KB) for 2 cores
Tue Oct 30 12:55:28 2018 - *** Operational MODE: preforking ***
Tue Oct 30 12:55:31 2018 - WSGI app 0 (mountpoint='') ready in 3 seconds on interpreter 0x563c03b73360 pid: 28819
Tue Oct 30 12:55:31 2018 - *** uWSGI is running in multiple interpreter mode ***
Tue Oct 30 12:55:31 2018 - spawned uWSGI master process (pid: 28819)
Tue Oct 30 12:55:31 2018 - spawned uWSGI worker 1 (pid: 28916, cores: 1)
Tue Oct 30 12:55:31 2018 - spawned uWSGI worker 2 (pid: 28917, cores: 1)
Tue Oct 30 13:01:29 2018 - WSGI app 1 (mountpoint='mail.xxxxxx.net|') ready in 3 seconds on interpreter 0x563c03f315f0 pid: 28917
Tue Oct 30 13:01:29 2018 - !!! uWSGI process 28917 got Segmentation Fault !!!
Tue Oct 30 13:01:29 2018 - *** backtrace of 28917 ***
/usr/bin/uwsgi(uwsgi_backtrace+0x2a) [0x563c02508d4a]
/usr/bin/uwsgi(uwsgi_segfault+0x23) [0x563c02509133]
/lib/x86_64-linux-gnu/libc.so.6(+0x35fc0) [0x7f6c694f3fc0]
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/.libs/./libssl-8bb9b3dd.so.1.0.2o(ssl3_cleanup_key_block+0xb) [0x7f6c64706cbb]
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/.libs/./libssl-8bb9b3dd.so.1.0.2o(ssl3_clear+0x16) [0x7f6c647045b6]
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/.libs/./libssl-8bb9b3dd.so.1.0.2o(tls1_clear+0x9) [0x7f6c64710229]
/usr/lib/x86_64-linux-gnu/libssl.so.1.1(SSL_new+0x43f) [0x7f6c69d6266f]
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/.libs/libpq-239f9ac8.so.5.10(+0x23399) [0x7f6c6499b399]
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/.libs/libpq-239f9ac8.so.5.10(+0x24935) [0x7f6c6499c935]
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/.libs/libpq-239f9ac8.so.5.10(PQconnectPoll+0xb00) [0x7f6c64986600]
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/.libs/libpq-239f9ac8.so.5.10(+0xf099) [0x7f6c64987099]
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/.libs/libpq-239f9ac8.so.5.10(PQconnectdb+0x1f) [0x7f6c64989e5f]
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/_psycopg.so(+0x124f1) [0x7f6c64bda4f1]
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/_psycopg.so(+0x1327f) [0x7f6c64bdb27f]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x15b57a) [0x7f6c66a8e57a]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x53) [0x7f6c66af2e13]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(_PyObject_CallFunction_SizeT+0xb7) [0x7f6c66af3757]
/srv/modoboa/env/local/lib/python2.7/site-packages/psycopg2/_psycopg.so(+0xc1b8) [0x7f6c64bd41b8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x612d) [0x7f6c66a488bd]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x732) [0x7f6c66a42032]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x195a6c) [0x7f6c66ac8a6c]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x53) [0x7f6c66af2e13]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x106d) [0x7f6c66a437fd]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8e5f) [0x7f6c66a4b5ef]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8e5f) [0x7f6c66a4b5ef]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8e5f) [0x7f6c66a4b5ef]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x732) [0x7f6c66a42032]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6d33) [0x7f6c66a494c3]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8e5f) [0x7f6c66a4b5ef]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x732) [0x7f6c66a42032]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6d33) [0x7f6c66a494c3]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1a18c3) [0x7f6c66ad48c3]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x190906) [0x7f6c66ac3906]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x182cae) [0x7f6c66ab5cae]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x15b57a) [0x7f6c66a8e57a]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x53) [0x7f6c66af2e13]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4f44) [0x7f6c66a476d4]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x8e5f) [0x7f6c66a4b5ef]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x732) [0x7f6c66a42032]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x19599b) [0x7f6c66ac899b]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x53) [0x7f6c66af2e13]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1acb0c) [0x7f6c66adfb0c]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x53) [0x7f6c66af2e13]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x15c830) [0x7f6c66a8f830]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_GetIter+0x1f) [0x7f6c66af3bdf]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1908b8) [0x7f6c66ac38b8]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x182cae) [0x7f6c66ab5cae]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x15b57a) [0x7f6c66a8e57a]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x53) [0x7f6c66af2e13]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x4f44) [0x7f6c66a476d4]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x732) [0x7f6c66a42032]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x195a6c) [0x7f6c66ac8a6c]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x53) [0x7f6c66af2e13]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x106d) [0x7f6c66a437fd]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x732) [0x7f6c66a42032]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6d33) [0x7f6c66a494c3]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x732) [0x7f6c66a42032]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalFrameEx+0x6d33) [0x7f6c66a494c3]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyEval_EvalCodeEx+0x732) [0x7f6c66a42032]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x19599b) [0x7f6c66ac899b]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x53) [0x7f6c66af2e13]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x1acb0c) [0x7f6c66adfb0c]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(PyObject_Call+0x53) [0x7f6c66af2e13]
/usr/lib/x86_64-linux-gnu/libpython2.7.so.1.0(+0x15cf6a) [0x7f6c66a8ff6a]
*** end of backtrace ***
`
@tonioo commented on GitHub (Oct 30, 2018):
@AncalagonTheBlack Are you trying to establish a secured connection with postgres?
@tonioo commented on GitHub (Oct 30, 2018):
@AncalagonTheBlack Looks like a uwsgi bug, not a modoboa one... Have you modified the setup after installation?
@AncalagonTheBlack commented on GitHub (Oct 30, 2018):
Yes thats what i try. And Nope I havent modified anything but i asked the uswgi guys and seems its because i have the wrong openssl version. If you want i can attach the install log here or to pastebin because its verry long.
@AncalagonTheBlack commented on GitHub (Oct 30, 2018):
It was an Uwsgi fault. after building it from source it works
@CooperBarrett commented on GitHub (Nov 26, 2018):
Hello,
Since the last update, I have exactly the same problem.
Could you explain to me how you got to your end?
How did you reinstall usgwi from the source?
Thank you in advance for your help
Sorry for my English, I use an automatic translation