<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Apps proxy returning 502 despite healthy app runtime in Warehousing &amp; Analytics</title>
    <link>https://community.databricks.com/t5/warehousing-analytics/apps-proxy-returning-502-despite-healthy-app-runtime/m-p/164886#M2665</link>
    <description>&lt;P&gt;I have two Databricks Apps that show RUNNING status and clean deployment logs, but both return 502 Bad Gateway when accessing their public URLs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Error: &lt;/SPAN&gt;&lt;SPAN&gt;Both&lt;/SPAN&gt;&lt;SPAN&gt; apps &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;"502 Bad Gateway"&lt;/SPAN&gt; &lt;SPAN&gt;when&lt;/SPAN&gt;&lt;SPAN&gt; accessed via their public URLs.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Troubleshooting Attempted:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; Stop&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;start&lt;/SPAN&gt;&lt;SPAN&gt; cycle &lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt; &lt;SPAN&gt;both&lt;/SPAN&gt;&lt;SPAN&gt; apps&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; Created fresh app &lt;/SPAN&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;SPAN&gt; new &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt; &lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt; OAuth configuration&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; Verified deployment logs &lt;/SPAN&gt;&lt;SPAN&gt;show&lt;/SPAN&gt; &lt;SPAN&gt;"Deployment successful"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; Verified Streamlit servers running &lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt;&lt;SPAN&gt; port &lt;/SPAN&gt;&lt;SPAN&gt;8080&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;Both&lt;/SPAN&gt;&lt;SPAN&gt; apps exhibit identical &lt;/SPAN&gt;&lt;SPAN&gt;502&lt;/SPAN&gt;&lt;SPAN&gt; behavior&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any thoughts on this would be appreciated!&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
    <pubDate>Tue, 04 Aug 2026 18:43:58 GMT</pubDate>
    <dc:creator>julieglass</dc:creator>
    <dc:date>2026-08-04T18:43:58Z</dc:date>
    <item>
      <title>Apps proxy returning 502 despite healthy app runtime</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/apps-proxy-returning-502-despite-healthy-app-runtime/m-p/164886#M2665</link>
      <description>&lt;P&gt;I have two Databricks Apps that show RUNNING status and clean deployment logs, but both return 502 Bad Gateway when accessing their public URLs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Error: &lt;/SPAN&gt;&lt;SPAN&gt;Both&lt;/SPAN&gt;&lt;SPAN&gt; apps &lt;/SPAN&gt;&lt;SPAN&gt;return&lt;/SPAN&gt; &lt;SPAN&gt;"502 Bad Gateway"&lt;/SPAN&gt; &lt;SPAN&gt;when&lt;/SPAN&gt;&lt;SPAN&gt; accessed via their public URLs.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;Troubleshooting Attempted:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; Stop&lt;/SPAN&gt;&lt;SPAN&gt;/&lt;/SPAN&gt;&lt;SPAN&gt;start&lt;/SPAN&gt;&lt;SPAN&gt; cycle &lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt; &lt;SPAN&gt;both&lt;/SPAN&gt;&lt;SPAN&gt; apps&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; Created fresh app &lt;/SPAN&gt;&lt;SPAN&gt;with&lt;/SPAN&gt;&lt;SPAN&gt; new &lt;/SPAN&gt;&lt;SPAN&gt;name&lt;/SPAN&gt; &lt;SPAN&gt;and&lt;/SPAN&gt;&lt;SPAN&gt; OAuth configuration&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; Verified deployment logs &lt;/SPAN&gt;&lt;SPAN&gt;show&lt;/SPAN&gt; &lt;SPAN&gt;"Deployment successful"&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt;&lt;SPAN&gt; Verified Streamlit servers running &lt;/SPAN&gt;&lt;SPAN&gt;on&lt;/SPAN&gt;&lt;SPAN&gt; port &lt;/SPAN&gt;&lt;SPAN&gt;8080&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;-&lt;/SPAN&gt; &lt;SPAN&gt;Both&lt;/SPAN&gt;&lt;SPAN&gt; apps exhibit identical &lt;/SPAN&gt;&lt;SPAN&gt;502&lt;/SPAN&gt;&lt;SPAN&gt; behavior&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;Any thoughts on this would be appreciated!&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 04 Aug 2026 18:43:58 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/apps-proxy-returning-502-despite-healthy-app-runtime/m-p/164886#M2665</guid>
      <dc:creator>julieglass</dc:creator>
      <dc:date>2026-08-04T18:43:58Z</dc:date>
    </item>
    <item>
      <title>Re: Apps proxy returning 502 despite healthy app runtime</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/apps-proxy-returning-502-despite-healthy-app-runtime/m-p/164913#M2666</link>
      <description>&lt;P&gt;Hi Julie,&lt;/P&gt;&lt;P&gt;Host or port binding mismatch between your Streamlit application and the reverse proxy is likely.&amp;nbsp;Even though the app container starts up and reports RUNNING status, the platform expects the internal server process to listen on 0.0.0.0 and bind to the port defined by the DATABRICKS_APP_PORT environment variable (defaults to port 8000). If Streamlit is explicitly forced to listen on port 8080 or bound locally to 127.0.0.1, the public proxy generally cannot route incoming web traffic to the container socket, resulting in the immediate 502 Bad Gateway error.&amp;nbsp;More details &lt;A href="https://docs.databricks.com/aws/en/dev-tools/databricks-apps/best-practices" target="_blank" rel="noopener"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can remove the port/host ip references or set it to correct values (port 8000, host 0.0.0.0) as arguments in the command&lt;/P&gt;&lt;LI-CODE lang="python"&gt;command:
  - "app.py"
  - "--server.port" # Remove it
  - "8080"          # Remove it&lt;/LI-CODE&gt;&lt;P&gt;You can remove the manually entered ports if mentioned in&amp;nbsp;.streamlit/config.toml too. Check the&amp;nbsp;manual Streamlit Startup Code for incorrect values. Redeploying the app with the configurations should allow the Databricks gateway to connect directly to your Streamlit runtime.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2026 04:07:53 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/apps-proxy-returning-502-despite-healthy-app-runtime/m-p/164913#M2666</guid>
      <dc:creator>balajij8</dc:creator>
      <dc:date>2026-08-05T04:07:53Z</dc:date>
    </item>
    <item>
      <title>Re: Apps proxy returning 502 despite healthy app runtime</title>
      <link>https://community.databricks.com/t5/warehousing-analytics/apps-proxy-returning-502-despite-healthy-app-runtime/m-p/164954#M2668</link>
      <description>&lt;P&gt;Thank you, I will try that.&lt;/P&gt;</description>
      <pubDate>Wed, 05 Aug 2026 15:10:59 GMT</pubDate>
      <guid>https://community.databricks.com/t5/warehousing-analytics/apps-proxy-returning-502-despite-healthy-app-runtime/m-p/164954#M2668</guid>
      <dc:creator>julieglass</dc:creator>
      <dc:date>2026-08-05T15:10:59Z</dc:date>
    </item>
  </channel>
</rss>

