Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enabling WEBSITES_ENABLE_APP_CACHE=true Breaks App Startup on Linux PHP Web App #271

Open
musilondrej opened this issue Feb 5, 2025 · 0 comments

Comments

@musilondrej
Copy link

musilondrej commented Feb 5, 2025

I’m experiencing an issue where enabling WEBSITES_ENABLE_APP_CACHE=true on my Azure Web App (running PHP on Linux) causes the application to fail on startup. The logs indicate that AppCache is enabled but cannot locate the cached build artifact, resulting in a restart loop.

I have tried multiple redeployments using different methods, including GitHub Actions, but the issue persists.

Environment Details:

  • Web App Type: Linux (PHP)
  • App Service Plan: P1v2
  • Region: Germany West Central
  • Deployment Method: GitHub Actions
  • PHP Version: 8.3

When enabling WEBSITES_ENABLE_APP_CACHE=true, my Web App fails to start. The logs show:
Looks like AppCache is enabled but cannot locate the zipped build artifact. AppCache needs a new deployment.

After setting this environment variable, the app enters a restart loop, and Kudu logs indicate that the cached build artifact is missing. A new deployment does not always resolve the issue.

Disabling WEBSITES_ENABLE_APP_CACHE allows the app to start.

Any guidance on how to properly use WEBSITES_ENABLE_APP_CACHE with PHP Web Apps would be appreciated.

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant