Sitecore/docker-images

Unable to build the sitecore-xp-xconnect:9.3.0-windowsservercore-ltsc2019 image

denchernov opened this issue · 8 comments

Hello,
I'm trying to build images for SC 9.3 but have an issue on the stage of building of sitecore-xp-xconnect:9.3.0-windowsservercore-ltsc2019
It says:
Principal IIS AppPool\DefaultAppPool was not found on the attempt to Add-LocalGroupMember -Group 'Performance Monitor Users
image
Does anybody know how to fix it?

I managed to fix it by running
Import-Module WebAdministration;
before the main RUN statement. I had the problem using 9.2.0 though and it looks like it has been fixed in 9.3.0

@sagi-jason-cox do you have a PR or something to demonstrate what you mean? As I'm running into the same issue. It would be good to get the required fix added back into the repo :)

@sagi-jason-cox for reference, you can see that the WebAdministration module has been added already in the run chain. So I'm not sure that your suggestion would solve it either.

I have proved that my answer was incorrect as I tried to recreate it from scratch and it worked sometimes but then not other times. I have put some debug code in their to list out the users and the user is there but I get the same error message.

I am going to create a separate repo that contains the setup for each version of Sitecore independently as some of the changes to this repo break previously working code.

Interestingly the three recent commits, which didn't change anything related, are now working?

I did also go through and change all the references to be consistent and to get the app pool identity from IIS itself (in case it changes in a previous layer) but that change is potentially academic now.

luke-barnett@1034ff2

Hmmm, my build server just ran into the same problem again (running from master), so it seems to be pretty temporal.

I'll try running my branch overnight to see if it's more consistent, and if so will submit a PR.

I was experiencing the same issue and I was able to solve it importing the WebAdministration module just before the Add-LocalGroupMember command instead of at the beginning of the RUN step:

Import-Module WebAdministration; Add-LocalGroupMember -Group 'Performance Monitor Users' -Member $env:IIS_APPPOOL_IDENTITY;

I don't know why this worked for me. Weird issue.

I know this isn't a solution, but maybe it will help the devs identify the root cause and users to work around the issue.
Simply add the OSVersion parameter and specify a different server core. For example the below command worked for me:

.\build.ps1 -SitecoreVersion "9.3.0" -OSVersion "2004"

To use the updated OS version update the file docker-images\build\windows\tests\9.3.x\.env