Gitlab 502 all sockets connection refused

Could be you have some processes running as git user? Check this, because sounds like your server has been compromised: Gitlab , git juma - #2 by iwalker