Deployment to App Service failed with EACCESS error

Alex Shevchenko 0 Reputation points
2023-11-15T10:19:17.8633333+00:00

We are deploying .Net Web Application to App Service via Bitbucket pipeline. The deployment started to fail with EACCESS error. How can we troubleshoot it further?

[
   {
      "log_time":"2023-11-14T15:54:03.8972156Z",
      "id":"",
      "message":"Command: \"/home/site/deployments/tools/deploy.sh\"",
      "type":0,
      "details_url":null
   },
   {
      "log_time":"2023-11-14T15:54:04.0215337Z",
      "id":"",
      "message":"Handling Basic Web Site deployment.",
      "type":0,
      "details_url":null
   },
   {
      "log_time":"2023-11-14T15:54:05.0641064Z",
      "id":"",
      "message":"Kudu sync from: '/tmp/zipdeploy/extracted' to: '/home/site/wwwroot'",
      "type":0,
      "details_url":null
   },
   {
      "log_time":"2023-11-14T15:54:05.4252568Z",
      "id":"",
      "message":"Copying file: 'API'",
      "type":0,
      "details_url":null
   },
   {
      "log_time":"2023-11-14T15:54:05.4636361Z",
      "id":"",
      "message":"Copying file: 'API.deps.json'",
      "type":0,
      "details_url":null
   },
   {
      "log_time":"2023-11-14T15:54:05.5025618Z",
      "id":"",
      "message":"Copying file: 'API.dll'",
      "type":0,
      "details_url":null
   },
   {
      "log_time":"2023-11-14T15:54:05.5934648Z",
      "id":"",
      "message":"Copying file: 'API.pdb'",
      "type":0,
      "details_url":null
   },
   {
      "log_time":"2023-11-14T15:54:05.6136007Z",
      "id":"",
      "message":"Copying file: 'API.runtimeconfig.json'",
      "type":0,
      "details_url":null
   },
   {
      "log_time":"2023-11-14T15:54:05.7992186Z",
      "id":"",
      "message":"Error: EACCES: permission denied, write",
      "type":0,
      "details_url":null
   },
   {
      "log_time":"2023-11-14T15:54:05.8192296Z",
      "id":"",
      "message":"An error has occurred during web site deployment.",
      "type":0,
      "details_url":null
   },
   {
      "log_time":"2023-11-14T15:54:05.8369946Z",
      "id":"",
      "message":"Kudu Sync failed",
      "type":0,
      "details_url":null
   },
   {
      "log_time":"2023-11-14T15:54:05.8856933Z",
      "id":"",
      "message":"\\n/opt/Kudu/Scripts/starter.sh \"/home/site/deployments/tools/deploy.sh\"",
      "type":2,
      "details_url":null
   }
]
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,408 questions
{count} votes

1 answer

Sort by: Most helpful
  1. ajkuma 24,971 Reputation points Microsoft Employee
    2023-11-16T19:02:53.12+00:00

    Alex Shevchenko, Typically, the error could be due to file lock issues. Just to isolate, kindly try these steps:

    Test whether stopping the site (via the portal) or disabling Always On (if enabled) unblocks the deployment ( disable and then re-enable).

    Checkout the steps in this wiki Dealing with locked files during deployment -to identify and resolve file lock issue.

    Kindly let us know, I'll follow-up with you further.

    0 comments No comments