powerplatform-actions icon indicating copy to clipboard operation
powerplatform-actions copied to clipboard

install-application action fails with "File not found" error

Open parvezghumra opened this issue 2 years ago • 7 comments

The error is as follows:

image

This looks to caused by the fact that the 'install-application' folder is not present under /dist/actions. Running the corresponding PAC CLI command locally works as expected. So I feel this is to do with the packaging/distribution of the Github Actions.

parvezghumra avatar Jan 23 '24 15:01 parvezghumra

@petrochuk - Can you take a look into this?

snizar007 avatar Jan 23 '24 18:01 snizar007

Hmm. It's explicitly listed as a skipped task here in the gulpfile.mjs. That change was introduced in September 2022 via #242, with the reason given in the PR as:

disabling/skipping the 'install-application' task until the sporadic 403 issue is fixed by the EnvMgmt team

tehcrashxor avatar Feb 01 '24 22:02 tehcrashxor

Thanks @tehcrashxor @snizar007.

Interestingly, when I tried to invoke the PAC CLI directly within the Github runner rather than attempting to use this action (as an interim workaround), I am receiving 403 errors every time if the command attempts to install the application. As you see in this screenshot:

image

But if I run the command locally it works as expected occasionally and fails with the same error sometimes. Same environment, same authentication mechanism and credentials, same version of the PAC CLI:

image

@tehcrashxor Is this the same 403 issue you're referring to in your comment above?

parvezghumra avatar Feb 02 '24 18:02 parvezghumra

Is this the same 403 issue you're referring to in your comment above?

Not sure if it's the same issue as when it was first disabled, but we're looking into it.

Same environment, same authentication mechanism and credentials, same version of the PAC CLI

Just to make sure we cover all the bases on difference between GH Runners and your local machine:

  • Did you use a normal user, or a Service Principal?
  • Is the Github runner using a Windows or Linux agent?

tehcrashxor avatar Feb 02 '24 21:02 tehcrashxor

@tehcrashxor

Using a normal user, I couldn't get the command to work at all with a Service Principal

And so far I've only tested this on a Linux agent

parvezghumra avatar Feb 02 '24 21:02 parvezghumra

@parvezghumra - any update on this? If you no longer have this issue, shall we close this?

snizar007 avatar Feb 07 '24 16:02 snizar007

@snizar007 What update were you expecting from me? @tehcrashxor mentioned above that they were still looking into this

Ultimately we need the github action to be able to install applications as expected. We shouldn't need to fall back to workarounds using the PAC CLI

parvezghumra avatar Feb 07 '24 17:02 parvezghumra