Skip to main content
Community site session details

Community site session details

Session Id :
Power Pages - Power Apps Portals
Unanswered

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

(0) ShareShare
ReportReport
Posted on by

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.
  • Community Power Platform Member Profile Picture
    on at
    Re: 502 Error Web server received an invalid response when restarting Power Apps Portal

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

  • v-siky-msft Profile Picture
    on at
    Re: 502 Error Web server received an invalid response when restarting Power Apps Portal

    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

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

Paul Stork – Community Spotlight

We are honored to recognize Paul Stork as our July 2025 Community…

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard > Power Pages

#1
Lucas001 Profile Picture

Lucas001 60 Super User 2025 Season 1

#2
Fubar Profile Picture

Fubar 55 Super User 2025 Season 1

#3
surya narayanan Profile Picture

surya narayanan 35