- changed status to open
ENOENT While deploying permission sets
Hi Scott,
We are observing a weird issue, literally any metadata can be deployed from the project but the permission sets.
During the deployment using Cmd + S the following error pops: DeployMetadata - Error - ENOENT: no such file or directory, scandir ''
Sadly I can’t recreate it using another project but the current project deploys properly through Gearset.
Steps to recreate:
- Create a project with manifest and fetch permission sets
- Commit and push the project to git
- Clone the repository and set a new connection
- Do a small change in the XML structure of the permission set.
- Deploy to the server
I have provided a log with the deployment debugging
Comments (2)
-
repo owner -
repo owner - changed status to resolved
I'm going to resolve this here since it does appear to be an issue with either the Salesforce CLI or perhaps even the server handling this request. If you find that it's not reproducible outside of IC2, or that there's some issue with the CLI command that IC2 is issuing in this specific case, please reopen with those details and I'll be happy to address it, of course.
- Log in to comment
Hi. That message is coming from the Salesforce CLI command:
which is returning the following:
when trying to deploy using the following
package.xml
file:You should be able to reproduce that behavior outside of IC2 by running that command directly from the command-line.
I would recommend uninstalling and reinstalling the Salesforce CLI in case it's an issue with the install. It's acutally quite common for the CLI to get into a bad state after repeated in-place updates unfortunately, and that class of issues is generally resolved by a scorched earth uninstall/reinstall.
However, it's possible that the error is a legit bug in the CLI or is coming from the server. If so, your best bet is to reproduce clearly using only the CLI and then log a bug in the CLI public issue tracker.