azure-functions-core-tools: Azure Functions 2.7.2100-1, func azure functionapp publish fails with Error: Permission denied

Azure functions fails to publish with version 2.7.2100-1

Issue occurred in Azure Devops pipeline at 5pm PST on 2/3/2020

Reproduced error locally.

Current fix is to role back to 2.7.1948-1

Output

With version 2.7.2100-1

Selecting previously unselected package azure-functions-core-tools.
Preparing to unpack .../azure-functions-core-tools_2.7.2100-1_amd64.deb ...
Unpacking azure-functions-core-tools (2.7.2100-1) ...
Setting up dotnet-runtime-deps-2.1 (2.1.15-1) ...
Setting up azure-functions-core-tools (2.7.2100-1) ...

Telemetry
---------
The Azure Functions Core tools collect usage data in order to help us improve your experience.
The data is anonymous and doesn't include any user specific or personal information. The data is collected by Microsoft.

You can opt-out of telemetry by setting the FUNCTIONS_CORE_TOOLS_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

~/work/1/s/<HIDDEN> ~/work/1/s
Getting site publishing info...
Skipping build event for functions project (--no-build).
Permission denied

With version 2.7.1948-1:

Selecting previously unselected package azure-functions-core-tools.
Preparing to unpack .../azure-functions-core-tools_2.7.1948-1_amd64.deb ...
Unpacking azure-functions-core-tools (2.7.1948-1) ...
Setting up dotnet-runtime-deps-2.1 (2.1.15-1) ...
Setting up azure-functions-core-tools (2.7.1948-1) ...

Telemetry
---------
The Azure Functions Core tools collect usage data in order to help us improve your experience.
The data is anonymous and doesn't include any user specific or personal information. The data is collected by Microsoft.

You can opt-out of telemetry by setting the FUNCTIONS_CORE_TOOLS_TELEMETRY_OPTOUT environment variable to '1' or 'true' using your favorite shell.

~/work/1/s/<HIDDEN> ~/work/1/s
Getting site publishing info...
Skipping build event for functions project (--no-build).
Uploading package...
Uploading 164.4 MB []Upload completed successfully.
Deployment completed successfully.

Additional information

  • AzDo Linux build agent
  • Service Principal authentication via AZ CLI

NOTE: 2.7.2100-1 is the current default version on apt

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 18 (11 by maintainers)

Most upvoted comments

@ankitkumarr this should probably be reopened. The apt package provided by the Microsoft apt Repo still has the wrong version. Microsoft is in control of this repo and it is a major blocker for our customers. I understand the latest version has a fix but the current apt version on azure cloud shell and azure devops build agents is not the latest.

Is there a workaround if doing the azure developer courses? Azure Cloud Shell is reporting permission denied when trying to create archive for current directory.

I am seeing a similar issue on version 3.0.2106 on Mac Osx

@brandonh-msft, is this an official dev container? Could you show me where you are downloading from? Once you download, if you add an executable bit to gozip (as shown in earlier comments), the error should go away for now.

Additionally, we published v3 core-tools in apt-get as azure-functions-core-tools-3. The documentation update will follow, but sharing here to unblock you.

Also faced this issue in the Microsoft Learning Cloud Shell sandbox while attempting to follow the Azure Development course.

Hi, we are taking a look and will have a fix released as soon as we can.

In the meanwhile, you can mitigate by running chmod a+x /usr/lib/azure-functions-core-tools/gozip

gozip is an executable that is used and the permission denied error comes from it not have executable permissions. Manually adding that can fix your setup. We will release a new package with the right fix. Thanks!