avivasolutionsnl / sitecore-commerce-docker

Dockerized Sitecore Commerce 9
10 stars 4 forks source link

Commerce build takes long: Attempt to set permissions failed #9

Open joostmeijles opened 6 years ago

joostmeijles commented 6 years ago

Building the Commerce image takes long because of retrying the following 30 times:

Retrying command in 10 seconds
Attempt 29 to set permissions GrantFullReadWriteAccessToFile
Attempt to set permissions failed. Error: System.Management.Automation.MethodInvocationException
Exception calling "SetAccessRule" with "1" argument(s): "This access control list is not in canonical form and therefore cannot be modified."
e-smith commented 6 years ago

Ran into the same issue, and I stumbled upon this: https://fluentbytes.com/how-to-fix-error-this-access-control-list-is-not-in-canonical-form-and-therefore-cannot-be-modified-error-count-1/

In essence:

  1. Create the path if it does not exist, or just use the path if you know it will exist.
  2. Get the access control list of the path.
  3. Set the access control list of the path with the value from step 2 above.

Note: You will need to skip any SIF tasks that remove the path.

Cheers!