Azure WebApp For Linux Files can not be deleted/accessed

Roy Vousten 1 Reputation point
2020-07-17T12:37:11.403+00:00

I've got a NodeJS (LTS12) based WebApp for Linux in the Europe West region.

It's a app which internally uses some caching in the ./cache directory but it is unable to access/create some files.

It creates files (without any extension) in the ./cache/remote_files directory with a GUID as filename.
12727-untitled.png

When i try to ls -l i can see the file, but if i try to remove the file i get the "File not found" error.
When trying to access it over FTP i get an "access denied" message.

Do you have any workaround/exception? Locally this works perfectly.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,931 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Grmacjon-MSFT 19,151 Reputation points Moderator
    2020-07-23T20:54:56.677+00:00

    Hi Royvousten,

    Apologies for the delay in response. We are sorry to hear you are facing this issue with your Linux WebApp. There are a couple of things you can try since you are getting "File not found" error and "access denied" error.

    -For the "access denied" error, stop running WebApp, use KUDU to change the permissions on the files, and once you have access try deleting the files. To access the Kudu Console, navigate to {yoursite}.scm.azurewebsites.net, and click on Debug Console.

    -In the Kudu console, you could also try SSH your web app, login as the root user, you could delete these files and directories from there. You can see this related SO post for more details.

    -Lastly, you could try scaling up your WebApp to a higher tier if you are currently using the free tier.

    Hope that helps. Please let us know if you have further questions.

    Thanks,

    Grace

    -

    0 comments No comments

  2. Roy Vousten 1 Reputation point
    2020-07-29T19:43:11.117+00:00

    unfortunately i was unable to delete the files after disabling the webapp :(

    The linked SO post mentions this is expeced behaviour (because the remote file system is still Windows based, and NOT linux based).

    Seems like i need another way to host this :(.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.