# Bad Gateway 502 with Nginx on native Install - Debian

**URL:** <https://forum.collaboraonline.com/t/bad-gateway-502-with-nginx-on-native-install-debian/3129>\
**Category:** Installation & Configuration\
**Created:** [November 6, 2024, 8:17pm UTC](https://forum.collaboraonline.com/t/bad-gateway-502-with-nginx-on-native-install-debian/3129 "2024-11-06T20:17:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![darshan](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.collaboraonline.com/darshan/32/2230_2.png) [@darshan](https://forum.collaboraonline.com/u/darshan)\
**Post date:** [November 7, 2024, 6:05am UTC](https://forum.collaboraonline.com/t/bad-gateway-502-with-nginx-on-native-install-debian/3129/2 "2024-11-07T06:05:45Z")

</div>

hello @superfun welcome to collabora online community forums.

I have seen same type of errors in forum topics. I am sharing one solution here, please try and let me know how things goes.

Probably it is related to the deprecated packages not installed by default so that we need…

> [@502 Bad Gateway in NextCloud after dist-upgrade (--\> Ubuntu 24.04)](https://forum.collaboraonline.com/t/502-bad-gateway-in-nextcloud-after-dist-upgrade-ubuntu-24-04/3017):
>
> TLDR: 502 on ubuntu - look for coolmount in coolwsd log - install coolwsd-deprecated In-depth explanation So here I was getting 502 Bad Gateway whenever trying to open documents or even just connect to https:///hosting/discovery I spent an embarrassing amount of time , reading nginx docs ( yes - I use nginx not Apache) , generating tons of logs, adding hostnames to /etc/hosts apart from localhost etc etc etc to no avail Until i found out what was wrong In my case It was down do an error ari…

Thanks,  
Darshan

---

_[View the full topic](https://forum.collaboraonline.com/t/bad-gateway-502-with-nginx-on-native-install-debian/3129)._
