내용으로 건너뛰기

AWS App Runner freezing URL

0

Hi everyone,

I’ve deployed a very simple Streamlit “Hello World” application using AWS App Runner. The service shows as “Running” in the console, but when I try to access the URL, the application freezes and doesn’t respond.

I’ve already checked the logs and didn’t find any errors. Observability is also enabled, and I haven't seen anything unusual there either.

Given the simplicity of the app, I wouldn’t expect any major issues — it’s just a minimal Streamlit script displaying some text.

Has anyone experienced a similar issue or could suggest what else I can check or try? I’d really appreciate any insights or recommendations.

Thanks in advance for your help!

질문됨 4달 전71회 조회
1개 답변
0

This issue with AWS App Runner where the service shows as "Running" but the URL doesn't respond is something that several users have encountered. Based on your description, here are some potential causes and solutions:

  1. Health Check Configuration: Even though your service shows as "Running," there might be a mismatch between your application's listening port and the port configured in App Runner. Verify that your Streamlit application is listening on the correct port (typically 8080 for App Runner by default) and that this matches your App Runner configuration.

  2. Account-Specific Issues: In some cases, users have reported that their App Runner deployments failed repeatedly despite proper configuration. This could be due to account-specific quota restrictions. AWS Support has resolved similar issues through what they call an "account refresh." If you've tried other troubleshooting steps without success, contacting AWS Support might be necessary.

  3. Platform Compatibility: If you built your Docker image on a different architecture (like an M1 Mac) than what App Runner uses (typically x86), this could cause issues. Try building with the --platform=linux/amd64 flag if you're using Docker.

  4. Application Startup Time: Streamlit might be taking longer to initialize than the health check timeout allows. Try adjusting the health check timeout and interval settings.

  5. Region-Specific Issues: Some users have reported intermittent issues in specific regions. As a test, you could try deploying your application in a different AWS region to see if the problem persists.

  6. Service Pause/Resume: If your service was previously paused, try explicitly resuming it through the App Runner console by selecting "Actions" and then "Resume," even if it shows as "Running."

  7. Host Header/SNI Issues: App Runner uses the Host header (for HTTP) or SNI (for HTTPS) to route requests. Make sure you're accessing the App Runner URL directly without any proxy or custom domain configuration that might interfere with these headers.

If none of these solutions work, you might want to try deploying a very simple non-Streamlit application (like a basic Flask app) to determine if the issue is specific to Streamlit or more general to your App Runner configuration.
Sources
AWS App Runner not passing health check for a simple python application | AWS re:Post
AWS APP RUNNER 404 possible ap-southeast-1 service level issue | AWS re:Post
Pausing and resuming an App Runner service - AWS App Runner
Why has Aws Runner failed to deploy the image even though it is working fine my local machine and everything configured properly | AWS re:Post

답변함 4달 전
AWS
지원 엔지니어
검토됨 4달 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

관련 콘텐츠