almenscorner / intunecd-monitor

IntuneCD front end, monitor configurations and changes in Intune
MIT License
92 stars 8 forks source link

502 Bad Gateway #18

Closed Skorfulose closed 1 year ago

Skorfulose commented 1 year ago

Hi Tobias,

first off: I appreciate your effort here! Your tool looks very much like what we currently miss in our Intune operations.

I deployed the app service using your template, set up the app registration, created the admin role and added to my user. So basically, followed your readme guide. Now I receive a 502 Bad Gateway when browsing my xxx.azurewebsites.net URL, and I don't know where to start troubleshooting. Any hint for me?

Kind regards, Thomas

almenscorner commented 1 year ago

Hi,

Thank you!

Can you open the "Log Stream" on the app service and monitor it while trying to reach the site? it should give you some details about what might be going on.

Skorfulose commented 1 year ago

Thanks for the pointer. Found that sqlalchemy is failing the login to my SQL DB. Need to troubleshoot further...

Skorfulose commented 1 year ago

Turns out a DB password with 32 random chars, incl. specials, doesn't work. Don't know if it was for the length or a special char (no double quotes though). But switching to 16 random with just '-' as specials fixed it 👍