Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
denchernov opened this issue Feb 21, 2021 · 8 comments

Comments

@denchernov
Copy link

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?

@sagi-jason-cox
Copy link

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

@luke-barnett
Copy link

@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 :)

@luke-barnett
Copy link

@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.

@sagi-jason-cox
Copy link

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.

@luke-barnett
Copy link

luke-barnett commented May 11, 2021

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

@luke-barnett
Copy link

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.

@afaniuolo
Copy link
Contributor

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.

@gregory-lynn
Copy link

gregory-lynn commented Jun 14, 2021

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants