502 Bad Gateway after upgrading to GitLab 10.3.3


#1

Summary

After omnibus update from 10.2.4 to 10.3.3 Mattermost stoped working.

Steps to reproduce

Upgrade omnibus installation

Expected behavior

It should be working

Observed behavior

Error log (current) is full of this:

2018-01-07_02:05:33.77404 [2018/01/07 03:05:33 CET] [INFO] Server is initializing…
2018-01-07_02:05:33.77404 [2018/01/07 03:05:33 CET] [INFO] Pinging SQL master database
2018-01-07_02:05:33.77806 [2018/01/07 03:05:33 CET] [INFO] Pinging SQL replica-0 database
2018-01-07_02:05:33.91424 [2018/01/07 03:05:33 CET] [INFO] Initializing plugin: jira
2018-01-07_02:05:33.91426 [2018/01/07 03:05:33 CET] [INFO] Initializing plugin: ldapextras
2018-01-07_02:05:33.91426 [2018/01/07 03:05:33 CET] [INFO] Starting up plugins
2018-01-07_02:05:33.91426 [2018/01/07 03:05:33 CET] [INFO] Starting Server…
2018-01-07_02:05:33.91426 [2018/01/07 03:05:33 CET] [INFO] Server is listening on 127.0.0.1:8065
2018-01-07_02:05:33.91427 [2018/01/07 03:05:33 CET] [EROR] Unable to setup forwarding
2018-01-07_02:05:33.91427 [2018/01/07 03:05:33 CET] [CRIT] Error starting server, err:accept tcp 127.0.0.1:8065: use of closed network connection
2018-01-07_02:05:33.92026 [2018/01/07 03:05:33 CET] [INFO] Initializing job API routes
2018-01-07_02:05:34.03917 [2018/01/07 03:05:34 CET] [INFO] API version 3 is scheduled for deprecation. Please see https://api.mattermost.com for details.
2018-01-07_02:05:34.03919 [2018/01/07 03:05:34 CET] [INFO] Starting 4 websocket hubs
2018-01-07_02:05:34.27664 [2018/01/07 03:05:34 CET] [INFO] Starting workers
2018-01-07_02:05:34.27666 [2018/01/07 03:05:34 CET] [INFO] Starting schedulers.
2018-01-07_02:07:06.17108 segment 2018/01/07 03:07:06 error sending request: Post https://api.segment.io/v1/batch: dial tcp 54.148.78.135:443: getsockopt: connection refused
2018-01-07_02:09:33.64117 [2018/01/07 03:09:33 CET] [INFO] Stopping schedulers.
2018-01-07_02:09:33.64120 [2018/01/07 03:09:33 CET] [INFO] Schedulers stopped.
2018-01-07_02:09:33.64121 [2018/01/07 03:09:33 CET] [INFO] Stopped workers
2018-01-07_02:09:33.64122 [2018/01/07 03:09:33 CET] [INFO] Stopping Server…
2018-01-07_02:09:33.64122 [2018/01/07 03:09:33 CET] [INFO] stopping websocket hub connections
2018-01-07_02:09:33.64122 [2018/01/07 03:09:33 CET] [INFO] Shutting down plugins
2018-01-07_02:09:33.64189 [2018/01/07 03:09:33 CET] [INFO] Closing SqlStore
2018-01-07_02:09:34.02900 [2018/01/07 03:09:34 CET] [INFO] Loaded system translations for ‘en’ from '/opt/gitlab/embedded/service/mattermost/i18n/en.json’
2018-01-07_02:09:34.14307 [2018/01/07 03:09:34 CET] [INFO] Current version is 4.4.0 (4.4.5/Thu Dec 7 22:06:43 UTC 2017/3890bc7079bf21330efdc45ae2741a4392d99e3c/none)


#2

Ok solved by setting “Forward80To443” to false. But i don’t know if it is the right way to fix it, or it is just temporary solution. So far it works.