Azure / Azure/webapps-deploy

Microsoft Azure Build and deploy PHP app to Azure Web App: Laravel App - Unable to create lockable file

Open
#398 4 comments 1 reaction 0 assignees View on GitHub
need-to-triage
Dominant language
TypeScript
Stars
338
Forks
234
Avg merge
53m
Merged PRs (30d)
3

Description

Hello,

We have a Laravel PHP application and we have deployed with the Build and deploy PHP app to Azure Web App workflow.

we have used nginx.

Sometimes we are facing issues related to permissions please find the below detailed error:

Unable to create lockable file: /home/site/wwwroot/storage/framework/cache/data/5a/0f/5a0fce553c194ec423d77dd06617ff2720c4c5c6. Please ensure you have permission to create files in this location.

so the solution is we need to give the permission and ownership using the below command:
chmod -R 775 /home/site/wwwroot/storage
chown -R www-data:www-data /home/site/wwwroot/storage

but after execution, nothing happened, and I was facing the same problem randomly.

Can anyone help with it?

Thanks

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reviewing the Build and deploy PHP app to Azure Web App workflow alongside the reported nginx setup and the commands used on /home/site/wwwroot/storage. Reproduce the intermittent lockable-file error and determine whether the workflow or deployment environment causes the permissions to be reset. Done means a documented, repeatable cause and fix for the Laravel storage permissions issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, laravel, nginx, php
Domain
backend, cloud, devops
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.