Sitecore / Habitat

Sitecore Modular Architecture Example
Other
413 stars 397 forks source link

Error executing install-xp0.ps1 - Principal IIS AppPool\DefaultAppPool was not found. #390

Closed derekcorreia closed 6 years ago

derekcorreia commented 6 years ago

When executing the PS1 installer, I get the following error:

Get-LocalGroupMember : Principal IIS AppPool\DefaultAppPool was not found.
At C:\projects\Habitat\install-xp0.ps1:87 char:11
+     if (!(Get-LocalGroupMember "Performance Log Users" "IIS AppPool\D ...
+           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (IIS AppPool\DefaultAppPool:String) [Get-LocalGroupMember], PrincipalNot
   FoundException
    + FullyQualifiedErrorId : PrincipalNotFound,Microsoft.PowerShell.Commands.GetLocalGroupMemberCommand

PS Version 5.1.15063.502 Windows 10 SIF 1.2.1

jeanfrancoislarente commented 6 years ago

Script needs to change to remove "Default AppPool" user since the AppPool that is created by SIF is "IIS AppPool\" ie: "IIS AppPool\habitat.dev.local"

derekcorreia commented 6 years ago

Nice catch @jeanfrancoislarente , thank you!

@nickwesselman , I can handle this change in the branch I'm working now, if you want to add this to the project. Thanks!

nickwesselman commented 6 years ago

Doh, thought I had fixed this in my commit yesterday but apparently not. If that change works, yeah go ahead and fix. Please reference issue # in commit. Thanks!

nickwesselman commented 6 years ago

Does this actually need to look at $SitecoreSiteName then? Might not be habitat.dev.local.

derekcorreia commented 6 years ago

That was how I was planning on fixing it, and moving it to the end of the ps script post-installation. Testing now...

jeanfrancoislarente commented 6 years ago

Agreed - habitat.dev.local was the example I provided. It's whatever the site name is going to be.