web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Pages / 502 Error Web server r...
Power Pages
Unanswered

502 Error Web server received an invalid response when restarting Power Apps Portal

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I restarted my Power Apps portal which was working fine and when I restarted it I got a 502 server error. I've pasted the error below. I've tried restarting the server multiple times but the error still remains. The only major thing I changed was adding a new image resource to a web form. I don't see why that should influence the root site. Any ideas how to fix this issue?

 

502 - Web server received an invalid response while acting as a gateway or proxy server.
There is a problem with the page you are looking for, and it cannot be displayed. When the Web server (while acting as a gateway or proxy) contacted the upstream content server, it received an invalid response from the content server.
Categories:
I have the same question (0)
  • v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @Anonymous ,

     

    Check this blog: PowerApps Portal Force Restart 

    The Restart command is basically sending an IISRESET command to the Azure App Service powering the portal behind the scenes. then your portal may face a 503 or 502 error.

    The evasive technique is to actually turn off the portal and then turn it back on. Effectively doing an IIS STOP and then IIS START.

    You can actually do this from the PowerApps Portals admin center, Portal Details, scroll to the bottom and see the Change Portal State.
    Now select the Off state, and select Update.
    Navigate to your portal and wait to receive the App Stopped message screen.
    snip_20190918000845.png
    Once you see this screen, switch back to the Portal Details, select the On state and select Update.
     
    Hope this helps.
    Sik
  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    @v-siky-msftthanks for the reply. I tried doing those steps twice. Unfortunately I still get the 502 error.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Pages

#1
rezarizvii Profile Picture

rezarizvii 55

#2
DP_Prabh Profile Picture

DP_Prabh 38

#3
oliver.rodrigues Profile Picture

oliver.rodrigues 30 Most Valuable Professional

Last 30 days Overall leaderboard